diff --git a/.gitignore b/.gitignore index fb3771d81..3654d75b5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,27 @@ -# Created by https://www.gitignore.io/api/java,linux,macos,maven,windows,eclipse,netbeans,intellij -# Edit at https://www.gitignore.io/?templates=java,linux,macos,maven,windows,eclipse,netbeans,intellij +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* +/target/ ### Eclipse ### @@ -71,32 +93,56 @@ local.properties .sts4-cache/ + +# End of https://www.gitignore.io/api/eclipse + +# Created by https://www.gitignore.io/api/visualstudiocode + +### VisualStudioCode ### +.vscode/ + +# End of https://www.gitignore.io/api/visualstudiocode + +# Created by https://www.gitignore.io/api/macos + +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + + +# End of https://www.gitignore.io/api/macos + +# Created by https://www.gitignore.io/api/intellij + ### Intellij ### # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 -# User-specific stuff -.idea/**/workspace.xml -.idea/**/tasks.xml -.idea/**/usage.statistics.xml -.idea/**/dictionaries -.idea/**/shelf - -# Generated files -.idea/**/contentModel.xml - -# Sensitive or high-churn files -.idea/**/dataSources/ -.idea/**/dataSources.ids -.idea/**/dataSources.local.xml -.idea/**/sqlDataSources.xml -.idea/**/dynamic.xml -.idea/**/uiDesigner.xml -.idea/**/dbnavigator.xml - -# Gradle -.idea/**/gradle.xml -.idea/**/libraries +.idea/ # Gradle and Maven with auto-import # When using Gradle or Maven with auto-import, you should exclude module files, @@ -109,9 +155,6 @@ local.properties # CMake cmake-build-*/ -# Mongo Explorer plugin -.idea/**/mongoSettings.xml - # File-based project format *.iws @@ -124,9 +167,6 @@ out/ # JIRA plugin atlassian-ide-plugin.xml -# Cursive Clojure plugin -.idea/replstate.xml - # Crashlytics plugin (for Android Studio and IntelliJ) com_crashlytics_export_strings.xml crashlytics.properties diff --git a/dependency-reduced-pom.xml b/dependency-reduced-pom.xml index 38e38510a..2d61d51f5 100644 --- a/dependency-reduced-pom.xml +++ b/dependency-reduced-pom.xml @@ -4,10 +4,6 @@ com.hedera.hashgraph java-sdk hedera-sdk-java -<<<<<<< HEAD - 0.1.0 - http://maven.apache.org -======= 0.2.0 Java SDK for interacting with the Hedera API http://www.hedera.com @@ -29,7 +25,6 @@ scm:git:ssh://github.com:hashgraph/hedera-sdk-java.git http://github.com/hashgraph/hedera-sdk-java ->>>>>>> 073dd1c... Merge pull request #30 from hashgraph/vnext-noexamples ${basedir}/src/main/java @@ -43,12 +38,7 @@ ${project.build.directory} ${basedir}/src/main/resources -<<<<<<< HEAD - log4j.xml - simpleStorage.bin -======= logback.xml ->>>>>>> 073dd1c... Merge pull request #30 from hashgraph/vnext-noexamples @@ -125,34 +115,6 @@ - - com.github.os72 - protoc-jar-maven-plugin - 3.6.0.1 - - - generate-sources - - run - - - com.google.protobuf:protoc:3.6.1 - - ${basedir}/src/main/proto - - - - java - - - grpc-java - io.grpc:protoc-gen-grpc-java:1.14.0 - - - - - - maven-compiler-plugin 3.8.0 @@ -350,7 +312,7 @@ 3.6.1 - 1.14.0 UTF-8 + 1.14.0 diff --git a/examples/pom.xml b/examples/pom.xml index 5037b0015..6df14242c 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -5,11 +5,11 @@ 4.0.0 com.hedera.hashgraph - java-sdk-examples + hedera-sdk-java-examples 0.2.0 jar - hedera-sdk-java-examples + examples Example usage of the java SDK for interacting with the Hedera API http://www.hedera.com @@ -47,5 +47,21 @@ java-sdk 0.2.0 + + + org.ethereum + ethereumj-core + 1.6.3-RELEASE + + + ch.qos.logback + logback-classic + + + org.slf4j + slf4j-api + + + diff --git a/examples/src/main/java/com/hedera/account/AccountAddClaim.java b/examples/src/main/java/com/hedera/account/AccountAddClaim.java deleted file mode 100644 index 77644ceed..000000000 --- a/examples/src/main/java/com/hedera/account/AccountAddClaim.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.hedera.account; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.account.HederaAccount; -import com.hedera.sdk.account.HederaClaim; -import com.hedera.sdk.common.HederaKeyPair; -import com.hedera.sdk.common.HederaTransactionReceipt; -import com.hedera.sdk.common.Utilities; -import com.hedera.sdk.transaction.HederaTransactionResult; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class AccountAddClaim { - public static boolean addClaim(HederaAccount account, HederaClaim claim, HederaKeyPair claimKeyPair) throws Exception { - final Logger logger = LoggerFactory.getLogger(AccountAddClaim.class); - - logger.info(""); - logger.info("# CRYPTO ADD CLAIM"); - logger.info(""); - - // add the claim - HederaTransactionResult claimAddResult = account.addClaim(claim, claimKeyPair); - // was it successful ? - if (claimAddResult.getPrecheckResult() == ResponseCodeEnum.OK) { - // yes, get a receipt for the transaction - HederaTransactionReceipt receipt = Utilities.getReceipt(account.hederaTransactionID, account.txQueryDefaults.node); - if (receipt.transactionStatus == ResponseCodeEnum.SUCCESS) { - // if query successful, print it - logger.info("===>Claim addition successful"); - return true; - } else { - logger.info("Failed with transactionStatus:" + receipt.transactionStatus); - return false; - } - } else if (account.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return false; - } else { - logger.info("Failed with getPrecheckResult:" + claimAddResult.getPrecheckResult()); - return false; - } - } -} diff --git a/examples/src/main/java/com/hedera/account/AccountCreate.java b/examples/src/main/java/com/hedera/account/AccountCreate.java deleted file mode 100644 index 760751e9f..000000000 --- a/examples/src/main/java/com/hedera/account/AccountCreate.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.hedera.account; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.account.HederaAccount; -import com.hedera.sdk.common.HederaKeyPair.KeyType; -import com.hedera.sdk.common.HederaTransactionReceipt; -import com.hedera.sdk.common.Utilities; -import com.hedera.sdk.transaction.HederaTransactionResult; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class AccountCreate { - public static HederaAccount create(HederaAccount account, String newAccountKey, KeyType keyType, long initialBalance) throws Exception { - final Logger logger = LoggerFactory.getLogger(AccountCreate.class); - // new account properties - long shardNum = 0; - long realmNum = 0; - - logger.info(""); - logger.info("CRYPTO CREATE ACCOUNT"); - logger.info(""); - - // create the new account - // account creation transaction - HederaTransactionResult createResult = account.create(shardNum, realmNum, newAccountKey, keyType, initialBalance, null); - // was it successful ? - if (createResult.getPrecheckResult() == ResponseCodeEnum.OK) { - // yes, get a receipt for the transaction - HederaTransactionReceipt receipt = Utilities.getReceipt(account.hederaTransactionID, account.txQueryDefaults.node); - // was that successful ? - if (receipt.transactionStatus == ResponseCodeEnum.SUCCESS) { - // yes, get the new account number from the receipt - account.accountNum = receipt.accountID.accountNum; - // and print it out - logger.info(String.format("===>Your new account number is %d", account.accountNum)); - } else { - logger.info("transactionStatus not SUCCESS: " + receipt.transactionStatus.name()); - return null; - } - } else if (createResult.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return null; - } else { - logger.info("getPrecheckResult not OK: " + createResult.getPrecheckResult().name()); - return null; - } - return account; - } -} diff --git a/examples/src/main/java/com/hedera/account/AccountGetBalance.java b/examples/src/main/java/com/hedera/account/AccountGetBalance.java deleted file mode 100644 index 1d881e4d7..000000000 --- a/examples/src/main/java/com/hedera/account/AccountGetBalance.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.hedera.account; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.account.HederaAccount; -import com.hedera.utilities.ExampleUtilities; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class AccountGetBalance { - public static boolean getBalance(HederaAccount account) throws Exception { - final Logger logger = LoggerFactory.getLogger(AccountGetBalance.class); - - logger.info(""); - logger.info("CRYPTO GET BALANCE"); - logger.info(""); - - // run a get balance query - long balance = account.getBalance(); - if (balance != -1) { - // it was successful, print it - ExampleUtilities.showResult(String.format("** Got balance=%d", balance)); - return true; - } else if (account.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return false; - } else { - // an error occurred - ExampleUtilities.showResult("** Getting balance - precheck ERROR"); - ExampleUtilities.showResult(account.getPrecheckResult().toString()); - return false; - } - } -} diff --git a/examples/src/main/java/com/hedera/account/AccountGetInfo.java b/examples/src/main/java/com/hedera/account/AccountGetInfo.java deleted file mode 100644 index 97ff6c439..000000000 --- a/examples/src/main/java/com/hedera/account/AccountGetInfo.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.hedera.account; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.account.HederaAccount; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class AccountGetInfo { - public static boolean getInfo(HederaAccount account) throws Exception { - final Logger logger = LoggerFactory.getLogger(AccountGetInfo.class); - - logger.info(""); - logger.info("CRYPTO GET INFO"); - logger.info(""); - - // get info for the account - if (account.getInfo()) { - logger.info("===>Got info"); - return true; - } else if (account.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return false; - } else { - logger.info("===>Getting info - precheck ERROR" + account.getPrecheckResult().toString()); - return false; - } - } -} diff --git a/examples/src/main/java/com/hedera/account/AccountGetRecords.java b/examples/src/main/java/com/hedera/account/AccountGetRecords.java deleted file mode 100644 index 8f0522259..000000000 --- a/examples/src/main/java/com/hedera/account/AccountGetRecords.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.hedera.account; - -import java.util.ArrayList; -import java.util.List; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.account.HederaAccount; -import com.hedera.sdk.common.HederaTransactionRecord; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class AccountGetRecords { - public static boolean getRecords(HederaAccount account) throws Exception { - final Logger logger = LoggerFactory.getLogger(AccountGetRecords.class); - - logger.info(""); - logger.info("CRYPTO GET RECORDS"); - logger.info(""); - - // get records for the account - List records = new ArrayList(); - - records = account.getRecords(); - if (records != null) { - logger.info(String.format("===>Got %d records", records.size())); - for (HederaTransactionRecord record : records) { - logger.info("Record transaction hash"); - logger.info(record.transactionHash.toString()); - } - return true; - } else if (account.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return false; - } else { - logger.info("===>Getting records - precheck ERROR" + account.getPrecheckResult().toString()); - return false; - } - - } -} diff --git a/examples/src/main/java/com/hedera/account/AccountSend.java b/examples/src/main/java/com/hedera/account/AccountSend.java deleted file mode 100644 index e9b8f9d4f..000000000 --- a/examples/src/main/java/com/hedera/account/AccountSend.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.hedera.account; - -public final class AccountSend { - public static boolean send(HederaAccount account, HederaAccount toAccount, long amount) throws Exception { - final Logger logger = LoggerFactory.getLogger(AccountSend.class); - - logger.info(""); - logger.info("CRYPTO TRANSFER"); - logger.info(""); - - // make the transfer - HederaTransactionResult transferResult = account.send(toAccount.getHederaAccountID(), amount); - // was it successful ? - if (transferResult.getPrecheckResult() == ResponseCodeEnum.OK) { - // yes, get a receipt for the transaction - HederaTransactionReceipt receipt = Utilities.getReceipt(account.hederaTransactionID, account.txQueryDefaults.node); - if (receipt.transactionStatus == ResponseCodeEnum.SUCCESS) { - // if query successful, print it - ExampleUtilities.showResult("** Transfer successful"); - return true; - } else { - ExampleUtilities.showResult(String.format("** Failed with transactionStatus: %s", receipt.transactionStatus.toString())); - return false; - } - } else if (transferResult.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return false; - } else { - ExampleUtilities.showResult(String.format("** Failed with getPrecheckResult: %s", transferResult.getPrecheckResult().toString())); - return false; - } - } -} diff --git a/examples/src/main/java/com/hedera/account/AccountUpdate.java b/examples/src/main/java/com/hedera/account/AccountUpdate.java deleted file mode 100644 index d4db9d563..000000000 --- a/examples/src/main/java/com/hedera/account/AccountUpdate.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.hedera.account; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.account.HederaAccount; -import com.hedera.sdk.account.HederaAccountUpdateValues; -import com.hedera.sdk.common.HederaTransactionReceipt; -import com.hedera.sdk.common.Utilities; -import com.hedera.sdk.transaction.HederaTransactionResult; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class AccountUpdate { - public static HederaAccount update(HederaAccount account, HederaAccountUpdateValues updates) throws Exception { - final Logger logger = LoggerFactory.getLogger(AccountUpdate.class); - - logger.info(""); - logger.info("CRYPTO UPDATE ACCOUNT"); - logger.info(""); - - // perform the update - HederaTransactionResult updateResult = account.update(updates); - // was it successful ? - if (updateResult.getPrecheckResult() == ResponseCodeEnum.OK) { - // yes, get a receipt for the transaction - HederaTransactionReceipt receipt = Utilities.getReceipt(account.hederaTransactionID, account.txQueryDefaults.node); - logger.info("Ran Query for receipt"); - if (receipt.transactionStatus == ResponseCodeEnum.SUCCESS) { - // if successful, print it - logger.info("===>Update successful"); - // update acount keys if necessary - if (updates.newKey != null) { - account.accountKey = updates.newKey; - } - } else { - logger.info("Failed with transactionStatus:" + receipt.transactionStatus.toString()); - return null; - } - } else if (updateResult.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return null; - } else { - logger.info("Failed with getPrecheckResult:" + updateResult.getPrecheckResult().toString()); - return null; - } - return account; - } -} diff --git a/examples/src/main/java/com/hedera/account/DemoAccount.java b/examples/src/main/java/com/hedera/account/DemoAccount.java deleted file mode 100644 index 65250d465..000000000 --- a/examples/src/main/java/com/hedera/account/DemoAccount.java +++ /dev/null @@ -1,197 +0,0 @@ -package com.hedera.account; - -import java.time.Instant; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import com.hedera.sdk.account.HederaAccount; -import com.hedera.sdk.account.HederaAccountUpdateValues; -import com.hedera.sdk.account.HederaClaim; -import com.hedera.sdk.common.HederaTransactionID; -import com.hedera.sdk.common.HederaTransactionRecord; -import com.hedera.utilities.ExampleUtilities; - -public final class DemoAccount { - - public static void main (String... arguments) throws Exception { - final Logger logger = LoggerFactory.getLogger(DemoAccount.class); - - //DO NOT CHANGE THESE, CHANGE BELOW INSTEAD - boolean create = false; //OK - boolean getBalance = false; //OK - boolean send = false; //NOK - boolean getInfo = false; //OK - boolean update = false; //OK - boolean doAddClaim = false;//OK - boolean getTXRecord = false; - boolean getFastRecord = false; - create = true; - getBalance = true; -// send = true; -// getInfo = true; -// update = true; -// doAddClaim = true; //-- not implemented ? - getTXRecord = true; //-- records temporarily disabled - getFastRecord = true; - - /* - * check my balance - * This populates the account object's balance property - */ - if (getBalance) { - // setup my account - HederaAccount myAccount = new HederaAccount(); - // setup transaction/query defaults (durations, etc...) - myAccount.txQueryDefaults = ExampleUtilities.getTxQueryDefaults(); - // setup my account number from properties file - myAccount.accountNum = myAccount.txQueryDefaults.payingAccountID.accountNum; - - AccountGetBalance.getBalance(myAccount); - ExampleUtilities.showResult(String.format("** My balance=%d tinybar", myAccount.balance())); - } - - /* - * get my account info - * This populates the account object's properties from network information - */ - if (getInfo) { - // setup my account - HederaAccount myAccount = new HederaAccount(); - // setup transaction/query defaults (durations, etc...) - myAccount.txQueryDefaults = ExampleUtilities.getTxQueryDefaults(); - // setup my account number from properties file - myAccount.accountNum = myAccount.txQueryDefaults.payingAccountID.accountNum; - AccountGetInfo.getInfo(myAccount); - } - - /* - * create a new account - */ - if (create) { - // setup new account object - HederaAccount newAccount = new HederaAccount(); - // setup transaction/query defaults (durations, etc...) - // note: This txQueryDefaults contains a payingAccountID which is the account paying for the transaction - newAccount.txQueryDefaults = ExampleUtilities.getTxQueryDefaults(); - - // optionally generate a record for this transaction - newAccount.txQueryDefaults.generateRecord = getTXRecord; - // create a new keypair - HederaKeyPair newAccountKey = new HederaKeyPair(KeyType.ED25519); - ExampleUtilities.showResult(String.format("** New account public key = %s\n** New account private/secret key %s=",newAccountKey.getPublicKeyHex(), newAccountKey.getSecretKeyHex())); - // create a new account with a balance of 10000000 tinybar, using the above generated public key - newAccount = AccountCreate.create(newAccount, newAccountKey.getPublicKeyHex(), newAccountKey.getKeyType(), 10000000); - - if (newAccount == null) { - ExampleUtilities.showResult("** ACCOUNT CREATE FAILED"); - throw new Exception("Account create failure"); - } else { - // the helper function (AccountCreate) populated the newAccount object's accountNum from the transaction receipt it - // obtained. - // Note: The HederaAccount.create only sends the transaction to the network, obtaining a receipt/record to recover the - // new account number is a separate (and asynchronous) operation - // the newly created account had its - - // get a fast record - if (getFastRecord) { - HederaTransactionID txID = newAccount.hederaTransactionID; - HederaTransactionRecord txRecord = new HederaTransactionRecord(txID, newAccount.txQueryDefaults); - } - // get info for the newly created account - if (getInfo) { - AccountGetInfo.getInfo(newAccount); - } - - // optionally retrieve a record for the transaction - if (getTXRecord) { - HederaTransactionID txID = newAccount.hederaTransactionID; - HederaTransactionRecord txRecord = new HederaTransactionRecord(txID, newAccount.txQueryDefaults.node.transactionGetRecordsQueryFee, newAccount.txQueryDefaults); - // stop getting records unnecessarily - getTXRecord = false; - } - - if (send) { - // send some crypto from my account to the new account - // setup my account - HederaAccount myAccount = new HederaAccount(); - // setup transaction/query defaults (durations, etc...) - myAccount.txQueryDefaults = ExampleUtilities.getTxQueryDefaults(); - // setup my account number from properties file - myAccount.accountNum = myAccount.txQueryDefaults.payingAccountID.accountNum; - - logger.info("Start Time" + Instant.now()); - AccountSend.send(myAccount, newAccount, 100); - - logger.info("End Time" + Instant.now()); - // get balance for my account - if (getBalance) { - AccountGetBalance.getBalance(myAccount); - ExampleUtilities.showResult(String.format("** My balance=%d tinybar", myAccount.balance())); - } - // get balance for the new account - if (getBalance) { - // let's make the account pay for it's own transactions and queries - newAccount.txQueryDefaults.payingAccountID = newAccount.getHederaAccountID(); - newAccount.txQueryDefaults.payingKeyPair = newAccountKey; - AccountGetBalance.getBalance(newAccount); - ExampleUtilities.showResult(String.format("** New account balance=%d tinybar", newAccount.balance())); - } - } - if (update) { - // update the new account with some changes properties - // note: the original keypair for the newAccount object needs to be reset - // get information only recovers the public key, and the private/secret key - // is necessary here to sign for and therefore approve the change - newAccount.accountKey = newAccountKey; - - // setup an object to contain values to update - HederaAccountUpdateValues updates = new HederaAccountUpdateValues(); - - // create a new key - HederaKeyPair ed25519Key = new HederaKeyPair(KeyType.ED25519); - // set the new key for the account - updates.newKey = ed25519Key; - // new proxy account details - updates.proxyAccountShardNum = 0; - updates.proxyAccountRealmNum = 0; - updates.proxyAccountAccountNum = 1; - // new proxy fraction - updates.proxyFraction = 2; - // new threshold for sending - updates.sendRecordThreshold = 4000; - // new threshold for receiving - updates.receiveRecordThreshold = 3000; - // new auto renew period - updates.autoRenewPeriodSeconds = 10; - updates.autoRenewPeriosNanos = 20; - // new expiration time - updates.expirationTimeSeconds = 200; - updates.expirationTimeNanos = 100; - - newAccount = AccountUpdate.update(newAccount, updates); - if (newAccount != null) { - // need to update the paying key pair to be the new account's key - newAccount.txQueryDefaults.payingKeyPair = ed25519Key; - AccountGetInfo.getInfo(newAccount); - } else { - ExampleUtilities.showResult("** ACCOUNT UPDATE FAILED - account is now null"); - } - } - if (doAddClaim) { - HederaKeyPair claimKeyPair = new HederaKeyPair(KeyType.ED25519); - HederaKeyPair claimKey = new HederaKeyPair(claimKeyPair.getKeyType(), claimKeyPair.getPublicKey()); - - // Create a new claim object - HederaClaim claim; - claim = new HederaClaim(newAccount.shardNum, newAccount.realmNum, newAccount.accountNum, "ClaimHash".getBytes("UTF-8")); - // add a key to the claim - claim.addKey(claimKey); - // add a claim - if (AccountAddClaim.addClaim(newAccount,claim, claimKeyPair)) { - - } - } - } - } - } -} diff --git a/examples/src/main/java/com/hedera/account/DemoAccountAsync.java b/examples/src/main/java/com/hedera/account/DemoAccountAsync.java deleted file mode 100644 index 52301b597..000000000 --- a/examples/src/main/java/com/hedera/account/DemoAccountAsync.java +++ /dev/null @@ -1,116 +0,0 @@ -package com.hedera.account; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.account.HederaAccount; -import com.hedera.sdk.common.HederaKeyPair; -import com.hedera.sdk.common.HederaKeyPair.KeyType; -import com.hedera.sdk.common.HederaTransactionAndQueryDefaults; -import com.hedera.sdk.common.HederaTransactionState; -import com.hedera.sdk.transaction.HederaTransactionResult; -import com.hedera.utilities.ExampleUtilities; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class DemoAccountAsync { - - public static void main (String... arguments) throws Exception { - final Logger logger = LoggerFactory.getLogger(DemoAccountAsync.class); - - // setup a set of defaults for query and transactions - HederaTransactionAndQueryDefaults txQueryDefaults = new HederaTransactionAndQueryDefaults(); - txQueryDefaults = ExampleUtilities.getTxQueryDefaults(); - - // new account objects - HederaAccount account = new HederaAccount(); - HederaAccount accountXferTo = new HederaAccount(); - - // setup transaction/query defaults (durations, etc...) - account.txQueryDefaults = txQueryDefaults; - accountXferTo.txQueryDefaults = txQueryDefaults; - - // create an account - HederaKeyPair newAccountKey = new HederaKeyPair(KeyType.ED25519); - HederaKeyPair accountXferToKey = new HederaKeyPair(KeyType.ED25519); - - account = AccountCreate.create(account, newAccountKey.getPublicKeyHex(), newAccountKey.getKeyType(), 1000000); - if (account == null) { - logger.info("*******************************************"); - logger.info("FIRST ACCOUNT CREATE FAILED"); - logger.info("*******************************************"); - throw new Exception("Account create failure"); - } - - // the paying account is now the new account - txQueryDefaults.payingAccountID = account.getHederaAccountID(); - txQueryDefaults.payingKeyPair = newAccountKey; - - // create a new account to transfer funds to - accountXferTo = AccountCreate.create(accountXferTo, accountXferToKey.getPublicKeyHex(), newAccountKey.getKeyType(), 10000); - if (accountXferTo == null) { - logger.info("*******************************************"); - logger.info("SECOND ACCOUNT CREATE FAILED"); - logger.info("*******************************************"); - throw new Exception("Account create failure"); - } - - HederaTransactionState transactionState = new HederaTransactionState(); - // define and start a thread to query for receipts asynchronously - class GetReceipts extends Thread - { - @Override - public void run() - { - while (true) { - try { - transactionState.refresh(); - } catch (InterruptedException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } - try { - Thread.sleep(2000); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - } - } - - GetReceipts getReceipts = new GetReceipts(); - getReceipts.start(); - - logger.info("************************************"); - logger.info("* RRRRR U U N N"); - logger.info("* R R U U NN N"); - logger.info("* RRRRR U U N N N"); - logger.info("* R R U U N N N"); - logger.info("* R R UUUUU N N"); - logger.info("************************************"); - - for (int i=1; i <= 20; i++) { - // make the transfer - HederaTransactionResult transferResult = account.send(accountXferTo.getHederaAccountID(), 20 * i); - // was it successful ? - if (transferResult.getPrecheckResult() == ResponseCodeEnum.OK) { - // yes, add Transaction to state for receipt collection - transactionState.setTransaction(account.hederaTransactionID, account.txQueryDefaults.node); - } - } - - logger.info("************************************"); - logger.info("* DDDDD OOOOO N N EEEEEE"); - logger.info("* D D O O NN N E "); - logger.info("* D D O O N N N EEE "); - logger.info("* D D O O N N N E "); - logger.info("* DDDDD OOOOO N N EEEEEE"); - logger.info("************************************"); - - while (true) { - if (transactionState.getCount() == 0) { - getReceipts.stop(); - break; - } - } - } -} \ No newline at end of file diff --git a/examples/src/main/java/com/hedera/contracts/ContractCall.java b/examples/src/main/java/com/hedera/contracts/ContractCall.java deleted file mode 100644 index e8d6110b5..000000000 --- a/examples/src/main/java/com/hedera/contracts/ContractCall.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.hedera.contracts; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.common.HederaTransactionReceipt; -import com.hedera.sdk.common.Utilities; -import com.hedera.sdk.contract.HederaContract; -import com.hedera.sdk.transaction.HederaTransactionResult; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class ContractCall { - public static boolean call(HederaContract contract, long gas, long amount, byte[] functionParameters) throws Exception { - final Logger logger = LoggerFactory.getLogger(ContractCall.class); - logger.info(""); - logger.info("CONTRACT CALL"); - logger.info(""); - - // call the smart contract - // smart contract call transaction - HederaTransactionResult callResult = contract.call(gas, amount, functionParameters); - // was it successful ? - if (callResult.getPrecheckResult() == ResponseCodeEnum.OK) { - // yes, get a receipt for the transaction - HederaTransactionReceipt receipt = Utilities.getReceipt(contract.hederaTransactionID, - contract.txQueryDefaults.node); - // was that successful ? - if (receipt.transactionStatus == ResponseCodeEnum.SUCCESS) { - // and print it out - logger.info(String.format("===>Smart Contract call success")); - return true; - } else { - logger.info("Failed with transactionStatus:" + receipt.transactionStatus.toString()); - return false; - } - } else if (contract.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return false; - } else { - logger.info("Failed with getPrecheckResult:" + contract.getPrecheckResult()); - return false; - } - } - -} diff --git a/examples/src/main/java/com/hedera/contracts/ContractCreate.java b/examples/src/main/java/com/hedera/contracts/ContractCreate.java deleted file mode 100644 index 247ddfaa2..000000000 --- a/examples/src/main/java/com/hedera/contracts/ContractCreate.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.hedera.contracts; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.common.HederaDuration; -import com.hedera.sdk.common.HederaFileID; -import com.hedera.sdk.common.HederaTransactionReceipt; -import com.hedera.sdk.common.HederaTransactionRecord; -import com.hedera.sdk.common.Utilities; -import com.hedera.sdk.contract.HederaContract; -import com.hedera.sdk.transaction.HederaTransactionResult; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class ContractCreate { - public static HederaContract create(HederaContract contract, HederaFileID fileID, long gas, long initialBalance) throws Exception { - return create(contract, fileID, gas, initialBalance, new byte[0]); - } - - public static HederaContract create(HederaContract contract, HederaFileID fileID, long gas, long initialBalance, byte[] constParams) throws Exception { - final Logger logger = LoggerFactory.getLogger(HederaContract.class); - // new contract - long shardNum = 0; - long realmNum = 0; - byte[] constructorParameters = constParams; - HederaDuration autoRenewPeriod = new HederaDuration(60, 10); - - contract.txQueryDefaults.generateRecord = true; - - logger.info(""); - logger.info("CONTRACT CREATE"); - logger.info(""); - - // create the new contract - // contract creation transaction - HederaTransactionResult createResult = contract.create(shardNum, realmNum, fileID, initialBalance, gas, - constructorParameters, autoRenewPeriod); - // was it successful ? - if (createResult.getPrecheckResult() == ResponseCodeEnum.OK) { - // yes, get a receipt for the transaction - HederaTransactionReceipt receipt = Utilities.getReceipt(contract.hederaTransactionID, - contract.txQueryDefaults.node); - // was that successful ? - if (receipt.transactionStatus == ResponseCodeEnum.SUCCESS) { - contract.contractNum = receipt.contractID.contractNum; - // and print it out - logger.info(String.format("===>Your new contract number is %d", contract.contractNum)); - HederaTransactionRecord record = new HederaTransactionRecord(contract.hederaTransactionID, contract.txQueryDefaults.node.contractGetRecordsQueryFee, contract.txQueryDefaults); - } else { - logger.info("Failed with transactionStatus:" + receipt.transactionStatus.toString()); - return null; - } - } else if (contract.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return null; - } else { - logger.info("getPrecheckResult not OK: " + createResult.getPrecheckResult().name()); - return null; - } - return contract; - } -} diff --git a/examples/src/main/java/com/hedera/contracts/ContractGetBytecode.java b/examples/src/main/java/com/hedera/contracts/ContractGetBytecode.java deleted file mode 100644 index 259369cbf..000000000 --- a/examples/src/main/java/com/hedera/contracts/ContractGetBytecode.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.hedera.contracts; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.contract.HederaContract; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class ContractGetBytecode { - public static boolean getByteCode(HederaContract contract) throws Exception { - final Logger logger = LoggerFactory.getLogger(ContractGetBytecode.class); - - logger.info(""); - logger.info("CONTRACT GET BYTECODE"); - logger.info(""); - - // run a get bytecode - byte[] bytecode = contract.getByteCode(); - if (bytecode != null) { - // it was successful, print it - logger.info("===>Got bytecode=" + bytecode.toString()); - return true; - } else if (contract.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return false; - } else { - // an error occurred - logger.info("===>Getting bytecode - precheck ERROR"); - logger.info(contract.getPrecheckResult().toString()); - return false; - } - } - -} diff --git a/examples/src/main/java/com/hedera/contracts/ContractGetInfo.java b/examples/src/main/java/com/hedera/contracts/ContractGetInfo.java deleted file mode 100644 index b46b348f1..000000000 --- a/examples/src/main/java/com/hedera/contracts/ContractGetInfo.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.hedera.contracts; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.contract.HederaContract; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class ContractGetInfo { - public static boolean getInfo(HederaContract contract) throws Exception { - final Logger logger = LoggerFactory.getLogger(ContractGetInfo.class); - - logger.info(""); - logger.info("CONTRACT GET INFO"); - logger.info(""); - - // get info for the contract - if (contract.getInfo()) { - logger.info("===>Got info"); - return true; - } else if (contract.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return false; - } else { - logger.info("===>Getting info - precheck ERROR " + contract.getPrecheckResult()); - return false; - } - } - -} diff --git a/examples/src/main/java/com/hedera/contracts/ContractRunLocal.java b/examples/src/main/java/com/hedera/contracts/ContractRunLocal.java deleted file mode 100644 index e6eebdc61..000000000 --- a/examples/src/main/java/com/hedera/contracts/ContractRunLocal.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.hedera.contracts; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.contract.HederaContract; -import com.hedera.sdk.contract.HederaContractFunctionResult; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class ContractRunLocal { - public static HederaContractFunctionResult runLocal(HederaContract contract, long gas, long maxResultSize, byte[] function) throws Exception { - final Logger logger = LoggerFactory.getLogger(ContractRunLocal.class); - logger.info(""); - logger.info("CONTRACT RUN LOCAL"); - logger.info(""); - HederaContractFunctionResult functionResult = new HederaContractFunctionResult(); - // run a call local query - functionResult = contract.callLocal(gas, function, maxResultSize); - if (functionResult != null) { - // it was successful, print it - logger.info("===>Got functionResult=" + functionResult.contractCallResult()); - logger.info("===>Got error message=" + functionResult.errorMessage()); - logger.info("===>Got gas used=" + functionResult.gasUsed()); - logger.info("===>Got bloom=" + functionResult.bloom()); - logger.info("===>Got contract num=" + functionResult.contractID().contractNum); - } else if (contract.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return null; - } else { - // an error occurred - logger.info("===>Running local function - precheck ERROR " + contract.getPrecheckResult()); - return null; - } - return functionResult; - } - -} diff --git a/examples/src/main/java/com/hedera/contracts/ContractUpdate.java b/examples/src/main/java/com/hedera/contracts/ContractUpdate.java deleted file mode 100644 index 0ce8f0eb6..000000000 --- a/examples/src/main/java/com/hedera/contracts/ContractUpdate.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.hedera.contracts; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.common.HederaDuration; -import com.hedera.sdk.common.HederaTimeStamp; -import com.hedera.sdk.common.HederaTransactionReceipt; -import com.hedera.sdk.common.Utilities; -import com.hedera.sdk.contract.HederaContract; -import com.hedera.sdk.transaction.HederaTransactionResult; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class ContractUpdate { - public static HederaContract update(HederaContract contract, HederaTimeStamp expirationTime, HederaDuration autoRenewDuration) throws Exception { - final Logger logger = LoggerFactory.getLogger(ContractUpdate.class); - logger.info(""); - logger.info("CONTRACT UPDATE"); - logger.info(""); - - // update the smart contract - // smart contract update transaction - HederaTransactionResult updateResult = contract.update(expirationTime, autoRenewDuration); - // was it successful ? - if (updateResult.getPrecheckResult() == ResponseCodeEnum.OK) { - // yes, get a receipt for the transaction - HederaTransactionReceipt receipt = Utilities.getReceipt(contract.hederaTransactionID, - contract.txQueryDefaults.node); - // was that successful ? - if (receipt.transactionStatus == ResponseCodeEnum.SUCCESS) { - // and print it out - logger.info(String.format("===>Smart Contract update success")); - } else { - logger.info("Failed with transactionStatus:" + receipt.transactionStatus); - return null; - } - } else if (contract.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return null; - } else { - logger.info("getPrecheckResult not OK: " + updateResult.getPrecheckResult().name()); - return null; - } - return contract; - } -} diff --git a/examples/src/main/java/com/hedera/contracts/DemoContract.java b/examples/src/main/java/com/hedera/contracts/DemoContract.java deleted file mode 100644 index f9f6774a1..000000000 --- a/examples/src/main/java/com/hedera/contracts/DemoContract.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.hedera.contracts; - -import java.io.ByteArrayOutputStream; -import java.io.InputStream; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import com.hedera.account.AccountCreate; -import com.hedera.file.FileCreate; -import com.hedera.sdk.account.HederaAccount; -import com.hedera.sdk.common.HederaDuration; -import com.hedera.sdk.common.HederaKeyPair; -import com.hedera.sdk.common.HederaKeyPair.KeyType; -import com.hedera.sdk.common.HederaTimeStamp; -import com.hedera.sdk.common.HederaTransactionAndQueryDefaults; -import com.hedera.sdk.contract.HederaContract; -import com.hedera.sdk.contract.HederaContractFunctionResult; -import com.hedera.sdk.file.HederaFile; -import com.hedera.utilities.ExampleUtilities; - -public final class DemoContract { - final static Logger logger = LoggerFactory.getLogger(DemoContract.class); - - public static void main(String... arguments) throws Exception { - - // setup a set of defaults for query and transactions - HederaTransactionAndQueryDefaults txQueryDefaults = new HederaTransactionAndQueryDefaults(); - txQueryDefaults = ExampleUtilities.getTxQueryDefaults(); - - // my account - HederaAccount myAccount = new HederaAccount(); - // setup transaction/query defaults (durations, etc...) - myAccount.txQueryDefaults = txQueryDefaults; - myAccount.accountNum = myAccount.txQueryDefaults.payingAccountID.accountNum; - txQueryDefaults.fileWacl = myAccount.txQueryDefaults.payingKeyPair; - - // create a file - // new file object - HederaFile file = new HederaFile(); - // setup transaction/query defaults (durations, etc...) - file.txQueryDefaults = txQueryDefaults; - - // get file contents - InputStream is = DemoContract.class.getResourceAsStream("/main/resources/simpleStorage.bin"); - ByteArrayOutputStream buffer = new ByteArrayOutputStream(); - int nRead; - byte[] data = new byte[4096]; - while ((nRead = is.read(data, 0, data.length)) != -1) { - buffer.write(data, 0, nRead); - } - - buffer.flush(); - byte[] fileContents = buffer.toByteArray(); - - // create a file with contents - file = FileCreate.create(file, fileContents); - - // new contract object - HederaContract contract = new HederaContract(); - // setup transaction/query defaults (durations, etc...) - contract.txQueryDefaults = txQueryDefaults; - - // create a contract - long gas = 71000; - contract = ContractCreate.create(contract, file.getFileID(), gas, 0); - //contract = create(contract, file.getFileID(), 1); - if (contract != null) { - // update the contract - HederaTimeStamp expirationTime = new HederaTimeStamp(100, 10); - HederaDuration autoRenewDuration = new HederaDuration(10, 20); - - contract = ContractUpdate.update(contract, expirationTime, autoRenewDuration); - - if (contract != null) { - // getinfo - ContractGetInfo.getInfo(contract); - // get bytecode - ContractGetBytecode.getByteCode(contract); - // call - final String SC_SET_ABI = "{\"constant\":false,\"inputs\":[{\"name\":\"x\",\"type\":\"uint256\"}],\"name\":\"set\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}"; - gas = 42000; - long amount = 0; - byte[] functionParameters = SoliditySupport.encodeSet(10,SC_SET_ABI); - - ContractCall.call(contract, gas, amount, functionParameters); - // call local - String SC_GET_ABI = "{\"constant\":true,\"inputs\":[],\"name\":\"get\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}"; - - byte[] function = SoliditySupport.encodeGetValue(SC_GET_ABI); - long localGas = 25000; - long maxResultSize = 5000; - HederaContractFunctionResult functionResult = ContractRunLocal.runLocal(contract, localGas, maxResultSize, function); - int decodeResult = SoliditySupport.decodeGetValueResult(functionResult.contractCallResult(),SC_GET_ABI); - logger.info(String.format("===>Decoded functionResult= %d", decodeResult)); - } - } - } -} \ No newline at end of file diff --git a/examples/src/main/java/com/hedera/contracts/SoliditySupport.java b/examples/src/main/java/com/hedera/contracts/SoliditySupport.java deleted file mode 100644 index ce32b69a8..000000000 --- a/examples/src/main/java/com/hedera/contracts/SoliditySupport.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.hedera.contracts; - -import java.math.BigInteger; - -import org.ethereum.core.CallTransaction; - -public final class SoliditySupport { - // support for smart contract functions - public static CallTransaction.Function getGetValueFunction(String getABI) { - String funcJson = getABI.replaceAll("'", "\""); - CallTransaction.Function function = CallTransaction.Function.fromJsonInterface(funcJson); - return function; - } - public static CallTransaction.Function getSetFunction(String setABI) { - String funcJson = setABI.replaceAll("'", "\""); - CallTransaction.Function function = CallTransaction.Function.fromJsonInterface(funcJson); - return function; - } - public static byte[] encodeGetValue(String getABI) { - CallTransaction.Function function = getGetValueFunction(getABI); - byte[] encodedFunc = function.encode(); - return encodedFunc; - } - public static byte[] encodeSet(int valueToAdd, String setABI) { - CallTransaction.Function function = getSetFunction(setABI); - byte[] encodedFunc = function.encode(valueToAdd); - - return encodedFunc; - } - public static int decodeGetValueResult(byte[] value, String getABI) { - int decodedReturnedValue = 0; - CallTransaction.Function function = getGetValueFunction(getABI); - Object[] retResults = function.decodeResult(value); - if (retResults != null && retResults.length > 0) { - BigInteger retBi = (BigInteger) retResults[0]; - decodedReturnedValue = retBi.intValue(); - } - return decodedReturnedValue; - } - -} diff --git a/examples/src/main/java/com/hedera/examples/fileWrappers/FileCreate.java b/examples/src/main/java/com/hedera/examples/fileWrappers/FileCreate.java index bd8890729..a1f019c26 100644 --- a/examples/src/main/java/com/hedera/examples/fileWrappers/FileCreate.java +++ b/examples/src/main/java/com/hedera/examples/fileWrappers/FileCreate.java @@ -19,7 +19,7 @@ public static HederaFile create(HederaFile file, byte[] contents) throws Excepti ExampleUtilities.showResult("** FILE CREATE"); - int fileChunkSize = 3000; + int fileChunkSize = 1000; int position = fileChunkSize; byte[] fileChunk = Arrays.copyOfRange(contents, 0, Math.min(fileChunkSize, contents.length)); diff --git a/examples/src/main/java/com/hedera/file/DemoFile.java b/examples/src/main/java/com/hedera/file/DemoFile.java deleted file mode 100644 index b24e43bbe..000000000 --- a/examples/src/main/java/com/hedera/file/DemoFile.java +++ /dev/null @@ -1,151 +0,0 @@ -package com.hedera.file; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import com.hedera.sdk.account.HederaAccount; -import com.hedera.sdk.common.HederaKeyPair; -import com.hedera.sdk.common.HederaKeyPair.KeyType; -import com.hedera.sdk.file.HederaFile; -import com.hedera.utilities.*; -import com.hedera.sdk.common.HederaTransactionAndQueryDefaults; - -public final class DemoFile { - final static Logger logger = LoggerFactory.getLogger(DemoFile.class); - - public static void main (String... arguments) throws Exception { - - boolean doCreate = false; - boolean doGetInfo = false; - boolean doAppend = false; - boolean doUpdate = false; - boolean doGetContents = false; - boolean doDelete = false; - - // setup a set of defaults for query and transactions - HederaTransactionAndQueryDefaults txQueryDefaults = new HederaTransactionAndQueryDefaults(); - txQueryDefaults = ExampleUtilities.getTxQueryDefaults(); - - HederaAccount myAccount = new HederaAccount(); - // setup transaction/query defaults (durations, etc...) - myAccount.txQueryDefaults = txQueryDefaults; - // setup account number - myAccount.accountNum = myAccount.txQueryDefaults.payingAccountID.accountNum; - - // new file object - HederaFile file = new HederaFile(); - // setup transaction/query defaults (durations, etc...) - txQueryDefaults.fileWacl = new HederaKeyPair(KeyType.ED25519); - file.txQueryDefaults = txQueryDefaults; - - doCreate = true; //OK - doGetInfo = true; //OK - doGetContents = true; //OK - doAppend = true; //OK - doUpdate = true; //OK - doDelete = true; //OK - - // create a file - if (doCreate) { - String fileContents = "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789" + - "-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789"; - file = FileCreate.create(file, fileContents.getBytes()); - } - if (file != null) { - if (doGetInfo) { - FileGetInfo.getInfo(file); - } - if (doAppend) { - // append to a file - FileAppend.append(file,"Appended contents".getBytes()); - // get file contents - if (doGetContents) { - FileGetContents.getContents(file); - } - } - if (doUpdate) { - file = FileUpdate.update(file, 10, 2, "Updated contents".getBytes()); - // get file contents - if (doGetContents) { - FileGetContents.getContents(file); - } - } - // get file contents - if (doGetContents) { - FileGetContents.getContents(file); - } - // get file info - if (doGetInfo) { - FileGetInfo.getInfo(file); - } - // delete the file - if (doDelete) { - FileDelete.delete(file); - } - } - } - -} \ No newline at end of file diff --git a/examples/src/main/java/com/hedera/file/FileAppend.java b/examples/src/main/java/com/hedera/file/FileAppend.java deleted file mode 100644 index a13346f3e..000000000 --- a/examples/src/main/java/com/hedera/file/FileAppend.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.hedera.file; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.common.HederaTransactionReceipt; -import com.hedera.sdk.common.Utilities; -import com.hedera.sdk.file.HederaFile; -import com.hedera.sdk.transaction.HederaTransactionResult; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class FileAppend { - public static boolean append(HederaFile file, byte[] newContents) throws Exception { - final Logger logger = LoggerFactory.getLogger(FileAppend.class); - logger.info(""); - logger.info("FILE APPEND"); - logger.info(""); - - // append to the file - // file append transaction - HederaTransactionResult appendResult = file.append(newContents); - // was it successful ? - if (appendResult.getPrecheckResult() == ResponseCodeEnum.OK) { - // yes, get a receipt for the transaction - HederaTransactionReceipt receipt = Utilities.getReceipt(file.hederaTransactionID, file.txQueryDefaults.node); - // was that successful ? - if (receipt.transactionStatus == ResponseCodeEnum.SUCCESS) { - // and print it out - logger.info(String.format("===>File append success")); - return true; - } else { - logger.info("Failed with transactionStatus:" + receipt.transactionStatus); - return false; - } - } else if (file.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return false; - } else { - logger.info("Failed with getPrecheckResult:" + appendResult.getPrecheckResult().toString()); - return false; - } - } - -} diff --git a/examples/src/main/java/com/hedera/file/FileCreate.java b/examples/src/main/java/com/hedera/file/FileCreate.java deleted file mode 100644 index 718acc5b1..000000000 --- a/examples/src/main/java/com/hedera/file/FileCreate.java +++ /dev/null @@ -1,76 +0,0 @@ -package com.hedera.file; - -import java.util.Arrays; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.common.HederaTransactionReceipt; -import com.hedera.sdk.common.Utilities; -import com.hedera.sdk.file.HederaFile; -import com.hedera.sdk.transaction.HederaTransactionResult; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class FileCreate { - public static HederaFile create(HederaFile file, byte[] contents) throws Exception { - final Logger logger = LoggerFactory.getLogger(FileCreate.class); - // new file - long shardNum = 0; - long realmNum = 0; - - logger.info(""); - logger.info("FILE CREATE"); - logger.info(""); - - int fileChunkSize = 3000; - int position = fileChunkSize; - - byte[] fileChunk = Arrays.copyOfRange(contents, 0, Math.min(fileChunkSize, contents.length)); - logger.info(""); - logger.info("fileChunk:" + Math.min(fileChunkSize, contents.length)); - - // create the new file - // file creation transaction - HederaTransactionResult createResult = file.create(shardNum, realmNum, fileChunk, null); - // was it successful ? - if (createResult.getPrecheckResult() == ResponseCodeEnum.OK) { - // yes, get a receipt for the transaction - HederaTransactionReceipt receipt = Utilities.getReceipt(file.hederaTransactionID, file.txQueryDefaults.node); - // was that successful ? - if (receipt.transactionStatus == ResponseCodeEnum.SUCCESS) { - // yes, get the new account number from the receipt - file.fileNum = receipt.fileID.fileNum; - // and print it out - logger.info("===>Your new file number is " + file.fileNum); - - while (position <= contents.length) { - - int toPosition = Math.min(position + fileChunkSize, contents.length + 1); - byte[] appendChunk = Arrays.copyOfRange(contents, position, toPosition); - - logger.info("Appending remaining data"); - if (file.append(appendChunk) != null) { - position += fileChunkSize; - } else if (file.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return null; - } else { - System.err.println("Appending Failure"); - System.exit(0); - } - } - } else { - logger.info("Failed with transactionStatus:" + receipt.transactionStatus); - return null; - } - } else if (file.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return null; - } else { - logger.info("Failed with getPrecheckResult:" + createResult.getPrecheckResult()); - return null; - } - return file; - } - -} diff --git a/examples/src/main/java/com/hedera/file/FileDelete.java b/examples/src/main/java/com/hedera/file/FileDelete.java deleted file mode 100644 index 57705c337..000000000 --- a/examples/src/main/java/com/hedera/file/FileDelete.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.hedera.file; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.common.HederaTransactionReceipt; -import com.hedera.sdk.common.Utilities; -import com.hedera.sdk.file.HederaFile; -import com.hedera.sdk.transaction.HederaTransactionResult; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class FileDelete { - public static boolean delete(HederaFile file) throws Exception { - final Logger logger = LoggerFactory.getLogger(FileDelete.class); - logger.info(""); - logger.info("DELETE FILE"); - logger.info(""); - - // delete the file - HederaTransactionResult deleteResult = file.delete(); - // was it successful ? - if (deleteResult.getPrecheckResult() == ResponseCodeEnum.OK) { - // yes, get a receipt for the transaction - HederaTransactionReceipt receipt = Utilities.getReceipt(file.hederaTransactionID, file.txQueryDefaults.node); - if (receipt.transactionStatus == ResponseCodeEnum.SUCCESS) { - // if query successful, print it - logger.info("===>Deletion successful"); - return true; - } else { - logger.info("Failed with transactionStatus:" + receipt.transactionStatus); - return false; - } - } else if (file.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return false; - } else { - logger.info("Failed with getPrecheckResult:" + deleteResult.getPrecheckResult()); - return false; - } - } - -} diff --git a/examples/src/main/java/com/hedera/file/FileGetContents.java b/examples/src/main/java/com/hedera/file/FileGetContents.java deleted file mode 100644 index cba0f4644..000000000 --- a/examples/src/main/java/com/hedera/file/FileGetContents.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.hedera.file; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.file.HederaFile; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class FileGetContents { - public static boolean getContents(HederaFile file) throws Exception { - final Logger logger = LoggerFactory.getLogger(FileGetContents.class); - - logger.info(""); - logger.info("FILE GET CONTENTS"); - logger.info(""); - - // run a get contents query - byte[] contents = file.getContents(); - if (contents != null) { - // it was successful, print it - logger.info("===>Got contents="); - logger.info(new String(contents,"UTF-8")); - return true; - } else if (file.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return false; - } else { - // an error occurred - logger.info("===>Getting contents - precheck ERROR" + file.getPrecheckResult()); - return false; - } - } - -} diff --git a/examples/src/main/java/com/hedera/file/FileGetInfo.java b/examples/src/main/java/com/hedera/file/FileGetInfo.java deleted file mode 100644 index 92fc5ad87..000000000 --- a/examples/src/main/java/com/hedera/file/FileGetInfo.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.hedera.file; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.file.HederaFile; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class FileGetInfo { - public static boolean getInfo(HederaFile file) throws Exception { - final Logger logger = LoggerFactory.getLogger(FileGetInfo.class); - - logger.info(""); - logger.info("FILE GET INFO"); - logger.info(""); - - // get info for the file - if (file.getInfo()) { - logger.info("===>Got info"); - return true; - } else if (file.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return false; - } else { - logger.info("===>Getting info - precheck ERROR " + file.getPrecheckResult()); - return false; - } - - } -} diff --git a/examples/src/main/java/com/hedera/file/FileUpdate.java b/examples/src/main/java/com/hedera/file/FileUpdate.java deleted file mode 100644 index a109a199f..000000000 --- a/examples/src/main/java/com/hedera/file/FileUpdate.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.hedera.file; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.hedera.sdk.common.HederaTransactionReceipt; -import com.hedera.sdk.common.Utilities; -import com.hedera.sdk.file.HederaFile; -import com.hedera.sdk.transaction.HederaTransactionResult; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; - -public final class FileUpdate { - public static HederaFile update(HederaFile file, long expireSeconds, int expireNanos, byte[] newContents) throws Exception { - final Logger logger = LoggerFactory.getLogger(FileUpdate.class); - logger.info(""); - logger.info("FILE UPDATE"); - logger.info(""); - - // update the file - // file update transaction - HederaTransactionResult updateResult = file.update(expireSeconds, expireNanos, newContents); - // was it successful ? - if (updateResult.getPrecheckResult() == ResponseCodeEnum.OK) { - // yes, get a receipt for the transaction - HederaTransactionReceipt receipt = Utilities.getReceipt(file.hederaTransactionID, file.txQueryDefaults.node); - // was that successful ? - if (receipt.transactionStatus == ResponseCodeEnum.SUCCESS) { - // and print it out - logger.info(String.format("===>File update success")); - } else { - logger.info("Failed with transactionStatus:" + receipt.transactionStatus); - return null; - } - } else if (updateResult.getPrecheckResult() == ResponseCodeEnum.BUSY) { - logger.info("system busy, try again later"); - return null; - } else { - logger.info("Failed with getPrecheckResult:" + updateResult.getPrecheckResult()); - return null; - } - return file; - } - -} diff --git a/examples/src/main/java/com/hedera/utilities/ExampleUtilities.java b/examples/src/main/java/com/hedera/utilities/ExampleUtilities.java deleted file mode 100644 index c92a92c32..000000000 --- a/examples/src/main/java/com/hedera/utilities/ExampleUtilities.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.hedera.utilities; - -import java.io.FileInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.security.spec.InvalidKeySpecException; -import java.util.Properties; - -import org.apache.commons.codec.DecoderException; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import com.hedera.sdk.common.HederaAccountID; -import com.hedera.sdk.common.HederaDuration; -import com.hedera.sdk.common.HederaTransactionAndQueryDefaults; -import com.hedera.sdk.common.HederaKeyList; -import com.hedera.sdk.common.HederaKeyPair; -import com.hedera.sdk.common.HederaKeyPair.KeyType; -import com.hedera.sdk.node.HederaNode; - -public class ExampleUtilities { - final Logger logger = LoggerFactory.getLogger(ExampleUtilities.class); - public static String nodeAddress = ""; - public static int nodePort = 0; - - public static long nodeAccountShard = 0; - public static long nodeAccountRealm = 0; - public static long nodeAccountNum = 0; - - public static String pubKey = ""; - public static String privKey = ""; - public static String keyType = ""; - - public static long payAccountShard = 0; - public static long payAccountRealm = 0; - public static long payAccountNum = 0; - - public static void getNodeDetails() { - - // load application properties - Properties applicationProperties = new Properties(); - InputStream propertiesInputStream = null; - - try { - - propertiesInputStream = new FileInputStream("node.properties"); - - // load a properties file - applicationProperties.load(propertiesInputStream); - - // get the property value and print it out - nodeAddress = applicationProperties.getProperty("nodeaddress"); - nodePort = Integer.parseInt(applicationProperties.getProperty("nodeport")); - - nodeAccountShard = Long.parseLong(applicationProperties.getProperty("nodeAccountShard")); - nodeAccountRealm = Long.parseLong(applicationProperties.getProperty("nodeAccountRealm")); - nodeAccountNum = Long.parseLong(applicationProperties.getProperty("nodeAccountNum")); - - pubKey = applicationProperties.getProperty("pubkey"); - privKey = applicationProperties.getProperty("privkey"); - keyType = applicationProperties.getProperty("keyType"); - - payAccountShard = Long.parseLong(applicationProperties.getProperty("payingAccountShard")); - payAccountRealm = Long.parseLong(applicationProperties.getProperty("payingAccountRealm")); - payAccountNum = Long.parseLong(applicationProperties.getProperty("payingAccountNum")); - - } catch (IOException ex) { - ex.printStackTrace(); - System.exit(1); - } finally { - if (propertiesInputStream != null) { - try { - propertiesInputStream.close(); - } catch (IOException e) { - e.printStackTrace(); - } - } - } - } - - public static HederaTransactionAndQueryDefaults getTxQueryDefaults() throws InvalidKeySpecException, DecoderException { - // setup a set of defaults for query and transactions - HederaTransactionAndQueryDefaults txQueryDefaults = new HederaTransactionAndQueryDefaults(); - - // Get node details - ExampleUtilities.getNodeDetails(); - - // setup node account ID - HederaAccountID nodeAccountID = new HederaAccountID(ExampleUtilities.nodeAccountShard, ExampleUtilities.nodeAccountRealm, ExampleUtilities.nodeAccountNum); - // setup node - HederaNode node = new HederaNode(ExampleUtilities.nodeAddress, ExampleUtilities.nodePort, nodeAccountID); - - // setup paying account - HederaAccountID payingAccountID = new HederaAccountID(ExampleUtilities.payAccountShard, ExampleUtilities.payAccountRealm, ExampleUtilities.payAccountNum); - - // setup paying keypair - if (keyType == null) { - keyType = "SINGLE"; - } - if (keyType.equals("LIST")) { - // create a new key list - HederaKeyPair payingKeyPair = new HederaKeyPair(KeyType.ED25519, ExampleUtilities.pubKey, ExampleUtilities.privKey); - HederaKeyList keyList = new HederaKeyList(); - keyList.addKey(payingKeyPair); - txQueryDefaults.payingKeyPair = new HederaKeyPair(keyList); - } else { - txQueryDefaults.payingKeyPair = new HederaKeyPair(KeyType.ED25519, ExampleUtilities.pubKey, ExampleUtilities.privKey); - } - - txQueryDefaults.memo = "Demo memo"; - txQueryDefaults.node = node; - txQueryDefaults.payingAccountID = payingAccountID; - txQueryDefaults.transactionValidDuration = new HederaDuration(120, 0); - - return txQueryDefaults; - } - public static void showResult(String result) { - String stars = "***********************************************************************************************"; - String log = String.format("%s\n%s\n%s\n%s\n%s", "", stars, result, stars, ""); - logger.info(log); - } -} diff --git a/examples/src/main/resources/logback.xml b/examples/src/main/resources/logback.xml index 313ab2439..ae32948ef 100644 --- a/examples/src/main/resources/logback.xml +++ b/examples/src/main/resources/logback.xml @@ -11,7 +11,7 @@ - + \ No newline at end of file diff --git a/examples/src/main/resources/simpleStorage.bin b/examples/src/main/resources/simpleStorage.bin deleted file mode 100644 index 14249b376..000000000 --- a/examples/src/main/resources/simpleStorage.bin +++ /dev/null @@ -1 +0,0 @@ -6060604052341561000f57600080fd5b60bb8061001d6000396000f30060606040526004361060485763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166360fe47b18114604d5780636d4ce63c146062575b600080fd5b3415605757600080fd5b60606004356084565b005b3415606c57600080fd5b60726089565b60405190815260200160405180910390f35b600055565b600054905600a165627a7a7230582072a5864a3117a6e2b49814ad58ad464948107c84f5ec0db02b91e0f26a4a0fcc0029 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 675937854..d5e2576a4 100644 --- a/pom.xml +++ b/pom.xml @@ -4,79 +4,48 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.hedera.hashgraph - java-sdk - 0.2.0 - jar + com.hedera.hashgraph + java-sdk-full + 0.2.0 + pom - hedera-sdk-java - Java SDK for interacting with the Hedera API - http://www.hedera.com + + sdk + examples + - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - + hedera-sdk-java-full + Java SDK for interacting with the Hedera API + http://www.hedera.com - - - Hedera Hashgraph - http://www.hedera.com - - + + + Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + - - scm:git:git://github.com/hashgraph/hedera-sdk-java.git - scm:git:ssh://github.com:hashgraph/hedera-sdk-java.git - http://github.com/hashgraph/hedera-sdk-java - + + + Hedera Hashgraph + http://www.hedera.com + + - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - + + scm:git:git://github.com/hashgraph/hedera-sdk-java.git + scm:git:ssh://github.com:hashgraph/hedera-sdk-java.git + http://github.com/hashgraph/hedera-sdk-java + - - UTF-8 - 1.14.0 - 3.6.1 - - - - artifactory-central - Swirlds Artifactory-releases - https://art.swirlds.com/artifactory/swirlds - - true - - - - - ${basedir}/src/main/java - - - src - - **/*.java - - - - ${basedir}/src/main/resources - ${project.build.directory} - - logback.xml - - - + + UTF-8 + 1.14.0 + 3.6.1 + 10 + 10 + diff --git a/sdk/pom.xml b/sdk/pom.xml index f8bc855f8..17176ee80 100644 --- a/sdk/pom.xml +++ b/sdk/pom.xml @@ -1,5 +1,5 @@ - + 4.0.0 @@ -185,6 +185,14 @@ org.slf4j slf4j-api + + com.google.guava + guava + + + org.apache.httpcomponents + httpcore + @@ -236,157 +244,6 @@ - - - org.apache.maven.plugins - maven-source-plugin - - - attach-sources - - jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - ${maven.compiler.source} - ${maven.compiler.target} - - - - org.apache.maven.plugins - maven-javadoc-plugin - - com.hedera.sdk.api.proto.* - com.hedera.sdk.muquit.* - test.com.hedera.* - net.i2p.* - org.json.* - - - - attach-javadocs - - jar - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - - org.junit.platform - junit-platform-surefire-provider - 1.1.0 - - - org.junit.jupiter - junit-jupiter-engine - 5.2.0 - - - - - org.apache.maven.plugins - maven-deploy-plugin - - internal.repo::default::file://${project.build.directory}/mvn-repo - - - - - default-deploy - deploy - - deploy - - - - - - - - - - - org.apache.maven.plugins - maven-project-info-reports-plugin - 2.8 - - false - - - - - - - - - shade - - - - org.apache.maven.plugins - maven-shade-plugin - 3.2.0 - - - - junit:junit - *:xml-apis - org.apache.maven:lib:tests - - - - - - package - - shade - - - - - - - - - org.apache.maven.plugins @@ -522,4 +379,4 @@ - \ No newline at end of file + diff --git a/sdk/src/main/java/com/hedera/sdk/account/HederaAccount.java b/sdk/src/main/java/com/hedera/sdk/account/HederaAccount.java index ebcc561f6..022b9bdbe 100644 --- a/sdk/src/main/java/com/hedera/sdk/account/HederaAccount.java +++ b/sdk/src/main/java/com/hedera/sdk/account/HederaAccount.java @@ -4,10 +4,7 @@ import java.security.InvalidParameterException; import java.util.ArrayList; import java.util.List; - -import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import com.google.protobuf.ByteString; import com.hedera.sdk.common.HederaAccountID; import com.hedera.sdk.common.HederaDuration; @@ -51,7 +48,7 @@ * Class to manage a cryptocurrency account */ public class HederaAccount implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaAccount.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaAccount.class); private static final long serialVersionUID = 1; private HederaNode node = null; // keys for signatures @@ -101,7 +98,7 @@ public class HederaAccount implements Serializable { * the key that must sign each transfer out of the account. If receiverSigRequired is true, then it must also sign any transfer into the account. */ public HederaKeyPair newAccountKey = null; - /** + /** * The initial balance when creating a new account */ public long initialBalance = 0; @@ -114,13 +111,13 @@ public long balance() { } /** * the {@link HederaAccountID} to proxy tokens to - * If proxyAccountID is null, or is an invalid account, or is an account that isn't a node, then this account is - * automatically proxy staked to a node chosen by the network, but without earning payments. - * If the proxyAccountID account refuses to accept proxy staking at the given fraction, + * If proxyAccountID is null, or is an invalid account, or is an account that isn't a node, then this account is + * automatically proxy staked to a node chosen by the network, but without earning payments. + * If the proxyAccountID account refuses to accept proxy staking at the given fraction, * or if it is not currently running a node, then it will behave as if both proxyAccountID and proxyFraction were null. */ public HederaAccountID proxyAccountID = new HederaAccountID(0, 0, 0); - /** + /** * payments earned from proxy staking are shared between the node and this account, with proxyFraction / 10000 going to this account */ public int proxyFraction = 0; @@ -137,14 +134,14 @@ public long balance() { */ public long receiveRecordThreshold = Long.MAX_VALUE; /** - * if true, this account's key must sign any transaction depositing into this account (in addition to all withdrawals). + * if true, this account's key must sign any transaction depositing into this account (in addition to all withdrawals). * This field is immutable; it cannot be changed by a CryptoUpdate transaction. */ public boolean receiverSigRequired = false; /** - * the account is charged to extend its expiration date every this many seconds. If it doesn't have enough, + * the account is charged to extend its expiration date every this many seconds. If it doesn't have enough, * it extends as long as possible. If it is empty when it expires, then it is deleted. - * Defaults to 60 * 60 * 24 * 30 = 30 days (60s * 60m * 24h * 30d) + * Defaults to 60 * 60 * 24 * 30 = 30 days (60s * 60m * 24h * 30d) */ public HederaDuration autoRenewPeriod = new HederaDuration(60 * 60 * 24 * 30, 0); // 30 days /** @@ -154,7 +151,7 @@ public long balance() { /** * The expiration time of the account as a result of a query */ - public HederaTimeStamp expirationTime = null; + public HederaTimeStamp expirationTime = null; /** * sets the node to communicate with * @param node the node to communicate with @@ -170,7 +167,7 @@ public String getSolidityContractAccountID() { return this.solidityContractAccountID; } /** - * true if the account has been deleted + * true if the account has been deleted * set as a result of a query * @return boolean */ @@ -192,7 +189,7 @@ public HederaProxyStakers getProxyStakers() { return stakers; } /** - * Sets the hederaAccountID values (shard, realm, accountNum) + * Sets the hederaAccountID values (shard, realm, accountNum) * from a HederaAccountID * @param accountID (The HederaAccountID from which to set the properties) */ @@ -202,7 +199,7 @@ public void setHederaAccountID(HederaAccountID accountID) { this.accountNum = accountID.accountNum; } /** - * Gets the shard, realm and accountNum of this account in the form + * Gets the shard, realm and accountNum of this account in the form * of a HederaAccountID * @return {@link HederaAccountID} */ @@ -237,7 +234,7 @@ public HederaAccount(HederaTransactionID transactionID) { } /** * gets the {@link ResponseCodeEnum} as a result of a transaction - * @return {@link ResponseCodeEnum} + * @return {@link ResponseCodeEnum} */ public ResponseCodeEnum getPrecheckResult() { return this.precheckResult; @@ -266,10 +263,10 @@ public byte[] getStateProof() { * @param memo String memo to include in the transaction * @return {@link TransactionBody} */ - public TransactionBody bodyToSignForCreate(HederaTransactionID transactionID, HederaAccountID nodeAccount, - long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, + public TransactionBody bodyToSignForCreate(HederaTransactionID transactionID, HederaAccountID nodeAccount, + long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, String memo) { - + HederaTransactionBody transactionBody = new HederaTransactionBody( TransactionType.CRYPTOCREATEACCOUNT , transactionID @@ -293,10 +290,10 @@ public TransactionBody bodyToSignForCreate(HederaTransactionID transactionID, He * @param accountAmounts hte list of accounts and amounts to transfer * @return {@link TransactionBody} */ - public TransactionBody bodyToSignForTransfer(HederaTransactionID transactionID, HederaAccountID nodeAccount, - long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, + public TransactionBody bodyToSignForTransfer(HederaTransactionID transactionID, HederaAccountID nodeAccount, + long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, String memo, ArrayList accountAmounts) { - + HederaTransactionBody transactionBody = new HederaTransactionBody( TransactionType.CRYPTOTRANSFER , transactionID @@ -320,10 +317,10 @@ public TransactionBody bodyToSignForTransfer(HederaTransactionID transactionID, * @param transferAccountID the {@link HederaAccountID} to transfer remaining funds to * @return {@link TransactionBody} */ - public TransactionBody bodyToSignForDelete(HederaTransactionID transactionID, HederaAccountID nodeAccount, - long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, + public TransactionBody bodyToSignForDelete(HederaTransactionID transactionID, HederaAccountID nodeAccount, + long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, String memo, HederaAccountID transferAccountID) { - + HederaTransactionBody transactionBody = new HederaTransactionBody( TransactionType.CRYPTODELETE , transactionID @@ -346,10 +343,10 @@ public TransactionBody bodyToSignForDelete(HederaTransactionID transactionID, He * @param memo String memo to include in the transaction * @return {@link TransactionBody} */ - public TransactionBody bodyToSignForUpdate(HederaTransactionID transactionID, HederaAccountID nodeAccount, - long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, + public TransactionBody bodyToSignForUpdate(HederaTransactionID transactionID, HederaAccountID nodeAccount, + long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, String memo) { - + HederaTransactionBody transactionBody = new HederaTransactionBody( TransactionType.CRYPTOUPDATEACCOUNT , transactionID @@ -373,10 +370,10 @@ public TransactionBody bodyToSignForUpdate(HederaTransactionID transactionID, He * @param claim the {@link HederaClaim} to add * @return {@link TransactionBody} */ - public TransactionBody bodyToSignForAddClaim(HederaTransactionID transactionID, HederaAccountID nodeAccount, - long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, + public TransactionBody bodyToSignForAddClaim(HederaTransactionID transactionID, HederaAccountID nodeAccount, + long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, String memo, HederaClaim claim) { - + HederaTransactionBody transactionBody = new HederaTransactionBody( TransactionType.CRYPTOADDCLAIM , transactionID @@ -400,10 +397,10 @@ public TransactionBody bodyToSignForAddClaim(HederaTransactionID transactionID, * @param claim the {@link HederaClaim} to delete * @return {@link TransactionBody} */ - public TransactionBody bodyToSignForDeleteClaim(HederaTransactionID transactionID, HederaAccountID nodeAccount, - long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, + public TransactionBody bodyToSignForDeleteClaim(HederaTransactionID transactionID, HederaAccountID nodeAccount, + long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, String memo, HederaClaim claim) { - + HederaTransactionBody transactionBody = new HederaTransactionBody( TransactionType.CRYPTODELETECLAIM , transactionID @@ -417,7 +414,7 @@ public TransactionBody bodyToSignForDeleteClaim(HederaTransactionID transactionI return transactionBody.getProtobuf(); } /** - * This method runs a transaction to create an account + * This method runs a transaction to create an account * @param transactionID the {@link HederaTransactionID} for the transaction * @param nodeAccount the {@link HederaAccountID} of the account of the node to which the transaction is submitted * @param transactionFee the fee paid by the client to run the transaction @@ -431,7 +428,7 @@ public TransactionBody bodyToSignForDeleteClaim(HederaTransactionID transactionI public HederaTransactionResult create(HederaTransactionID transactionID, HederaAccountID nodeAccount , long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord , String memo, HederaSignatureList sigsForTransaction) throws InterruptedException { - + // build the body HederaTransaction transaction = new HederaTransaction(); transaction.body = new HederaTransactionBody( @@ -444,8 +441,8 @@ public HederaTransactionResult create(HederaTransactionID transactionID, HederaA , memo , this.getCreateTransactionBody()); // add the signatures - transaction.keySignatureList = sigsForTransaction; - + transaction.signatureList = sigsForTransaction; + // issue the transaction Utilities.throwIfNull("Node", this.node); HederaTransactionResult hederaTransactionResult = this.node.accountCreate(transaction); @@ -454,7 +451,7 @@ public HederaTransactionResult create(HederaTransactionID transactionID, HederaA return hederaTransactionResult; } /** - * This method runs a transaction to transfer cryptocurrency between accounts + * This method runs a transaction to transfer cryptocurrency between accounts * @param transactionID the {@link HederaTransactionID} for the transaction * @param nodeAccount the {@link HederaAccountID} of the account of the node to which the transaction is submitted * @param transactionFee the fee paid by the client to run the transaction @@ -469,7 +466,7 @@ public HederaTransactionResult create(HederaTransactionID transactionID, HederaA public HederaTransactionResult transfer(HederaTransactionID transactionID, HederaAccountID nodeAccount , long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord , String memo, HederaSignatureList sigsForTransaction, ArrayList accountAmounts) throws InterruptedException { - + // build the body HederaTransaction transaction = new HederaTransaction(); transaction.body = new HederaTransactionBody( @@ -482,8 +479,8 @@ public HederaTransactionResult transfer(HederaTransactionID transactionID, Heder , memo , this.getTransferTransactionBody(accountAmounts)); // add the signatures - transaction.keySignatureList = sigsForTransaction; - + transaction.signatureList = sigsForTransaction; + // issue the transaction Utilities.throwIfNull("Node", this.node); HederaTransactionResult hederaTransactionResult = this.node.accountTransfer(transaction); @@ -493,7 +490,7 @@ public HederaTransactionResult transfer(HederaTransactionID transactionID, Heder } /** - * This method runs a transaction to update an account + * This method runs a transaction to update an account * @param transactionID the {@link HederaTransactionID} for the transaction * @param nodeAccount the {@link HederaAccountID} of the account of the node to which the transaction is submitted * @param transactionFee the fee paid by the client to run the transaction @@ -507,7 +504,7 @@ public HederaTransactionResult transfer(HederaTransactionID transactionID, Heder public HederaTransactionResult update(HederaTransactionID transactionID, HederaAccountID nodeAccount , long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord , String memo, HederaSignatureList sigsForTransaction) throws InterruptedException { - + // build the body HederaTransaction transaction = new HederaTransaction(); transaction.body = new HederaTransactionBody( @@ -520,8 +517,8 @@ public HederaTransactionResult update(HederaTransactionID transactionID, HederaA , memo , this.getUpdateTransactionBody()); // add the signatures - transaction.keySignatureList = sigsForTransaction; - + transaction.signatureList = sigsForTransaction; + // issue the transaction Utilities.throwIfNull("Node", this.node); HederaTransactionResult hederaTransactionResult = this.node.accountUpdate(transaction); @@ -531,7 +528,7 @@ public HederaTransactionResult update(HederaTransactionID transactionID, HederaA return hederaTransactionResult; } /** - * This method runs a transaction to add a claim to an account + * This method runs a transaction to add a claim to an account * @param transactionID the {@link HederaTransactionID} for the transaction * @param nodeAccount the {@link HederaAccountID} of the account of the node to which the transaction is submitted * @param transactionFee the fee paid by the client to run the transaction @@ -546,7 +543,7 @@ public HederaTransactionResult update(HederaTransactionID transactionID, HederaA public HederaTransactionResult addClaim(HederaTransactionID transactionID, HederaAccountID nodeAccount , long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord , String memo, HederaSignatureList sigsForTransaction, HederaClaim claim) throws InterruptedException { - + // build the body HederaTransaction transaction = new HederaTransaction(); transaction.body = new HederaTransactionBody( @@ -560,7 +557,7 @@ public HederaTransactionResult addClaim(HederaTransactionID transactionID, Heder , this.getAddClaimTransactionBody(claim)); // add the signatures transaction.signatureList = sigsForTransaction; - + // issue the transaction Utilities.throwIfNull("Node", this.node); HederaTransactionResult hederaTransactionResult = this.node.addClaim(transaction); @@ -571,7 +568,7 @@ public HederaTransactionResult addClaim(HederaTransactionID transactionID, Heder } /** - * Runs a query to get the account balance of the given account + * Runs a query to get the account balance of the given account * If successful, the method populates the balance property of the account, cost and state proof if requested * @param payment a {@link HederaTransaction} message to indicate how this query will be paid for, this can be null for Cost queries * @param responseType the type of response requested from the query @@ -580,7 +577,7 @@ public HederaTransactionResult addClaim(HederaTransactionID transactionID, Heder */ public boolean getBalance(HederaTransaction payment, HederaQueryHeader.QueryResponseType responseType) throws InterruptedException { boolean result = true; - + // build the query // Header HederaQueryHeader queryHeader = new HederaQueryHeader(); @@ -588,18 +585,18 @@ public boolean getBalance(HederaTransaction payment, HederaQueryHeader.QueryResp queryHeader.payment = payment; queryHeader.responseType = responseType; } - + // get contents query CryptoGetAccountBalanceQuery.Builder queryBalance = CryptoGetAccountBalanceQuery.newBuilder(); - + queryBalance.setAccountID(this.getHederaAccountID().getProtobuf()); queryBalance.setHeader(queryHeader.getProtobuf()); - + // the query itself HederaQuery query = new HederaQuery(); query.queryType = QueryType.CRYPTOGETACCOUNTBALANCE; query.queryData = queryBalance.build(); - + // query now set, send to network Utilities.throwIfNull("Node", this.node); Response response = this.node.getAccountBalance(query); @@ -610,7 +607,7 @@ public boolean getBalance(HederaTransaction payment, HederaQueryHeader.QueryResp } CryptoGetAccountBalanceResponse.Builder queryResponse = response.getCryptogetAccountBalance().toBuilder(); - + // check response header first ResponseHeader.Builder responseHeader = queryResponse.getHeaderBuilder(); @@ -623,12 +620,12 @@ public boolean getBalance(HederaTransaction payment, HederaQueryHeader.QueryResp } else { result = false; } - + return result; } /** * Gets the balance of the account, requesting only an answer - * If successful, the method populates the balance property of the account and cost + * If successful, the method populates the balance property of the account and cost * @param payment the {@link HederaTransaction} payload containing payment information for the query * @return {@link Boolean} indicating if query was successful or not * @throws InterruptedException should a communication error occur with the node @@ -638,7 +635,7 @@ public boolean getBalanceAnswerOnly(HederaTransaction payment) throws Interrupte } /** * Gets the balance of the account, requesting only an answer - * If successful, the method populates the balance property of the account, cost and stateproof + * If successful, the method populates the balance property of the account, cost and stateproof * @param payment the {@link HederaTransaction} payload containing payment information for the query * @return {@link Boolean} indicating if query was successful or not * @throws InterruptedException should a communication error occur with the node @@ -648,7 +645,7 @@ public boolean getBalanceStateProof(HederaTransaction payment) throws Interrupte } /** * Gets the cost of enquiring for balance of the account, requesting only an answer - * If successful, the method populates the cost property + * If successful, the method populates the cost property * @return {@link Boolean} indicating if query was successful or not * @throws InterruptedException should a communication error occur with the node */ @@ -657,16 +654,16 @@ public boolean getBalanceCostAnswer() throws InterruptedException { } /** * Gets the cost of enquiring for balance of the account, requesting a state proof - * If successful, the method populates the cost property + * If successful, the method populates the cost property * @return {@link Boolean} indicating if query was successful or not * @throws InterruptedException should a communication error occur with the node */ public boolean getBalanceAnswerStateProof() throws InterruptedException { return getBalance(null, HederaQueryHeader.QueryResponseType.COST_ANSWER_STATE_PROOF); } - + /** - * Runs a query to get records attached to an account + * Runs a query to get records attached to an account * If successful, the method sets the records property, cost and state proof if requested * @param payment a {@link HederaTransaction} message to indicate how this query will be paid for, this can be null for Cost queries * @param responseType the type of response requested from the query @@ -677,7 +674,7 @@ public boolean getRecords(HederaTransaction payment, HederaQueryHeader.QueryResp return getRecords(payment, responseType, this.getHederaAccountID()); } /** - * Runs a query to get records attached to an account + * Runs a query to get records attached to an account * If successful, the method sets the records property, cost and state proof if requested * @param payment a {@link HederaTransaction} message to indicate how this query will be paid for, this can be null for Cost queries * @param responseType the type of response requested from the query @@ -687,7 +684,7 @@ public boolean getRecords(HederaTransaction payment, HederaQueryHeader.QueryResp */ public boolean getRecords(HederaTransaction payment, HederaQueryHeader.QueryResponseType responseType, HederaAccountID accountID) throws InterruptedException { boolean result = true; - + // build the query // Header HederaQueryHeader queryHeader = new HederaQueryHeader(); @@ -695,18 +692,18 @@ public boolean getRecords(HederaTransaction payment, HederaQueryHeader.QueryResp queryHeader.payment = payment; queryHeader.responseType = responseType; } - + // get contents query CryptoGetAccountRecordsQuery.Builder queryRecords = CryptoGetAccountRecordsQuery.newBuilder(); - + queryRecords.setAccountID(accountID.getProtobuf()); queryRecords.setHeader(queryHeader.getProtobuf()); - + // the query itself HederaQuery query = new HederaQuery(); query.queryType = QueryType.CRYPTOGETACCOUNTRECORDS; query.queryData = queryRecords.build(); - + // query now set, send to network Utilities.throwIfNull("Node", this.node); Response response = this.node.getAccountRecords(query); @@ -715,7 +712,7 @@ public boolean getRecords(HederaTransaction payment, HederaQueryHeader.QueryResp return false; } CryptoGetAccountRecordsResponse.Builder queryResponse = response.getCryptoGetAccountRecords().toBuilder(); - + // check response header first ResponseHeader.Builder responseHeader = queryResponse.getHeaderBuilder(); @@ -723,24 +720,24 @@ public boolean getRecords(HederaTransaction payment, HederaQueryHeader.QueryResp if (this.precheckResult == ResponseCodeEnum.OK) { this.records = new ArrayList(); - + for (int i=0; i < queryResponse.getRecordsCount(); i++) { HederaTransactionRecord record = new HederaTransactionRecord(queryResponse.getRecords(i)); this.records.add(record); } - + this.cost = responseHeader.getCost(); this.stateProof = responseHeader.getStateProof().toByteArray(); } else { this.records = null; result = false; } - + return result; } /** - * Runs a query to get records attached to an account without a state proof - * If successful, the method sets the records property and cost + * Runs a query to get records attached to an account without a state proof + * If successful, the method sets the records property and cost * @param payment a {@link HederaTransaction} message to indicate how this query will be paid for, this can be null for Cost queries * @return {@link Boolean} indicating success or failure of the query * @throws InterruptedException should an exception occur during communication with the node @@ -749,8 +746,8 @@ public boolean getRecordsAnswerOnly(HederaTransaction payment) throws Interrupte return getRecords(payment, QueryResponseType.ANSWER_ONLY); } /** - * Runs a query to get records attached to an account with a state proof - * If successful, the method sets the records property, cost and state proof + * Runs a query to get records attached to an account with a state proof + * If successful, the method sets the records property, cost and state proof * @param payment a {@link HederaTransaction} message to indicate how this query will be paid for, this can be null for Cost queries * @return {@link Boolean} indicating success or failure of the query * @throws InterruptedException should an exception occur during communication with the node @@ -759,8 +756,8 @@ public boolean getRecordsStateProof(HederaTransaction payment) throws Interrupte return getRecords(payment, HederaQueryHeader.QueryResponseType.ANSWER_STATE_PROOF); } /** - * Runs a query to find out the cost of getting records attached to an account without a state proof - * If successful, the method sets the cost + * Runs a query to find out the cost of getting records attached to an account without a state proof + * If successful, the method sets the cost * @return {@link Boolean} indicating success or failure of the query * @throws InterruptedException should an exception occur during communication with the node */ @@ -768,8 +765,8 @@ public boolean getRecordsCostAnswer() throws InterruptedException { return getRecords(null, HederaQueryHeader.QueryResponseType.COST_ANSWER); } /** - * Runs a query to find out the cost of getting records attached to an account with a state proof - * If successful, the method sets the cost + * Runs a query to find out the cost of getting records attached to an account with a state proof + * If successful, the method sets the cost * @return {@link Boolean} indicating success or failure of the query * @throws InterruptedException should an exception occur during communication with the node */ @@ -777,7 +774,7 @@ public boolean getRecordsAnswerStateProof() throws InterruptedException { return getRecords(null, HederaQueryHeader.QueryResponseType.COST_ANSWER_STATE_PROOF); } /** - * Runs a query to get information for a given account + * Runs a query to get information for a given account * If successful, the method populates the properties this object depending on the type of answer requested * @param payment a {@link HederaTransaction} message to indicate how this query will be paid for, this can be null for Cost queries * @param responseType the type of response requested from the query @@ -786,7 +783,7 @@ public boolean getRecordsAnswerStateProof() throws InterruptedException { */ public boolean getInfo(HederaTransaction payment, HederaQueryHeader.QueryResponseType responseType) throws InterruptedException { boolean result = true; - + // build the query // Header HederaQueryHeader queryHeader = new HederaQueryHeader(); @@ -794,17 +791,17 @@ public boolean getInfo(HederaTransaction payment, HederaQueryHeader.QueryRespons queryHeader.payment = payment; queryHeader.responseType = responseType; } - + // get info query CryptoGetInfoQuery.Builder accountGetInfoQuery = CryptoGetInfoQuery.newBuilder(); accountGetInfoQuery.setAccountID(this.getHederaAccountID().getProtobuf()); accountGetInfoQuery.setHeader(queryHeader.getProtobuf()); - + // the query itself HederaQuery query = new HederaQuery(); query.queryType = QueryType.CRYPTOGETINFO; query.queryData = accountGetInfoQuery.build(); - + // query now set, send to network Utilities.throwIfNull("Node", this.node); Response response = this.node.getAccountInfo(query); @@ -815,10 +812,10 @@ public boolean getInfo(HederaTransaction payment, HederaQueryHeader.QueryRespons } CryptoGetInfoResponse.Builder accountGetInfoResponse = response.getCryptoGetInfo().toBuilder(); - + // check response header first ResponseHeader.Builder responseHeader = accountGetInfoResponse.getHeaderBuilder(); - + this.precheckResult = responseHeader.getNodeTransactionPrecheckCode(); if (this.precheckResult == ResponseCodeEnum.OK) { @@ -848,7 +845,7 @@ public boolean getInfo(HederaTransaction payment, HederaQueryHeader.QueryRespons } else { result = false; } - + return result; } /** @@ -894,7 +891,7 @@ public boolean getInfoCostAnswerStateProof() throws InterruptedException { * @return {@link CryptoCreateTransactionBody} */ public CryptoCreateTransactionBody getCreateTransactionBody() { - + CryptoCreateTransactionBody.Builder transactionBody = CryptoCreateTransactionBody.newBuilder(); transactionBody.setAutoRenewPeriod(this.autoRenewPeriod.getProtobuf()); transactionBody.setInitialBalance(this.initialBalance); @@ -902,11 +899,11 @@ public CryptoCreateTransactionBody getCreateTransactionBody() { transactionBody.setMaxReceiveProxyFraction(this.maxReceiveProxyFraction); transactionBody.setReceiveRecordThreshold(this.receiveRecordThreshold); transactionBody.setSendRecordThreshold(this.sendRecordThreshold); - + if (this.accountKey != null) { transactionBody.setKey(this.accountKey.getProtobuf()); } - + if (this.realmNum > 0) { transactionBody.setRealmID(new HederaRealmID(this.shardNum, this.realmNum).getProtobuf()); } else if (this.realmNum == -1) { @@ -930,13 +927,13 @@ public CryptoCreateTransactionBody getCreateTransactionBody() { * @return {@link CryptoTransferTransactionBody} */ public CryptoTransferTransactionBody getTransferTransactionBody(ArrayListaccountAmounts) { - + CryptoTransferTransactionBody.Builder transactionBody = CryptoTransferTransactionBody.newBuilder(); TransferList.Builder transferList = TransferList.newBuilder(); for (HederaAccountAmount accountAmount: accountAmounts) { transferList.addAccountAmounts(accountAmount.getProtobuf()); } - + transactionBody.setTransfers(transferList); return transactionBody.build(); @@ -947,7 +944,7 @@ public CryptoTransferTransactionBody getTransferTransactionBody(ArrayList getRecords() throws Exception { Utilities.throwIfNull("txQueryDefaults", this.txQueryDefaults); Utilities.throwIfNull("txQueryDefaults.node", this.txQueryDefaults.node); this.node = this.txQueryDefaults.node; - + HederaTransaction transferTransaction = new HederaTransaction(this.txQueryDefaults, this.node.accountGetRecordsQueryFee); getRecordsAnswerOnly(transferTransaction); return this.records; - } + } /** * Get records attached to this account * Note: If no records are found, the function returns an empty array * if however an error occurred, it will return null - * @param shardNum, the shard number of the account + * @param shardNum, the shard number of the account * @param realmNum, the realm number of the account remove the claim from * @param accountNum, the account number of the account * @return {@link List} of {@link HederaTransactionRecord} @@ -1496,11 +1493,11 @@ public List getRecords(long shardNum, long realmNum, lo HederaAccount recordAccount = new HederaAccount(shardNum, realmNum, accountNum); Utilities.throwIfNull("txQueryDefaults", this.txQueryDefaults); Utilities.throwIfNull("node", this.node); - + HederaTransaction transferTransaction = new HederaTransaction(this.txQueryDefaults, this.node.accountGetRecordsQueryFee); if (getRecords(transferTransaction, QueryResponseType.ANSWER_ONLY, recordAccount.getHederaAccountID())) { return this.records; } else return null; - } + } } diff --git a/sdk/src/main/java/com/hedera/sdk/account/HederaAccountCreateDefaults.java b/sdk/src/main/java/com/hedera/sdk/account/HederaAccountCreateDefaults.java index 6917e5623..385c7814f 100644 --- a/sdk/src/main/java/com/hedera/sdk/account/HederaAccountCreateDefaults.java +++ b/sdk/src/main/java/com/hedera/sdk/account/HederaAccountCreateDefaults.java @@ -1,11 +1,8 @@ package com.hedera.sdk.account; import java.security.spec.InvalidKeySpecException; - -import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.spongycastle.util.encoders.Hex; - import com.hedera.sdk.common.HederaAccountID; import com.hedera.sdk.common.HederaKeyPair; import com.hedera.sdk.common.HederaKeyPair.KeyType; @@ -16,7 +13,7 @@ * method for the account to override defaults */ public class HederaAccountCreateDefaults { - final Logger logger = LoggerFactory.getLogger(HederaAccountCreateDefaults.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaAccountCreateDefaults.class); private HederaAccount accountDefaultsFromClass = new HederaAccount(); private HederaKeyPair newRealmAdminPublicKey = accountDefaultsFromClass.newRealmAdminKey; diff --git a/sdk/src/main/java/com/hedera/sdk/account/HederaAccountUpdateValues.java b/sdk/src/main/java/com/hedera/sdk/account/HederaAccountUpdateValues.java index 05547e8f5..5738e4259 100644 --- a/sdk/src/main/java/com/hedera/sdk/account/HederaAccountUpdateValues.java +++ b/sdk/src/main/java/com/hedera/sdk/account/HederaAccountUpdateValues.java @@ -1,14 +1,13 @@ package com.hedera.sdk.account; import com.hedera.sdk.common.HederaKeyPair; -import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * This class enables you to easily identify which parameters can be updated on an account * and send to an account.update method */ public class HederaAccountUpdateValues { - final Logger logger = LoggerFactory.getLogger(HederaAccountUpdateValues.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaAccountUpdateValues.class); /** * the details of the new public/private key if an update is required */ diff --git a/sdk/src/main/java/com/hedera/sdk/account/HederaClaim.java b/sdk/src/main/java/com/hedera/sdk/account/HederaClaim.java index 2a19de553..ebcad2310 100644 --- a/sdk/src/main/java/com/hedera/sdk/account/HederaClaim.java +++ b/sdk/src/main/java/com/hedera/sdk/account/HederaClaim.java @@ -3,10 +3,7 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.List; - -import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import com.google.protobuf.ByteString; import com.hedera.sdk.common.HederaAccountID; import com.hedera.sdk.common.HederaKeyPair; @@ -15,18 +12,18 @@ import com.hederahashgraph.api.proto.java.Claim; import com.hederahashgraph.api.proto.java.KeyList; /** - * A hash (presumably of some kind of credential or certificate), along with a list of threshold keys. - * Each of them must reach its threshold when signing the transaction, to attach this claim to this account. - * At least one of them must reach its threshold to delete this Claim from this account. - * This is intended to provide a revocation service: all the authorities agree to attach the hash, - * to attest to the fact that the credential or certificate is valid. - * Any one of the authorities can later delete the hash, to indicate that the credential has been revoked. - * In this way, any client can prove to a third party that any particular account has certain credentials, + * A hash (presumably of some kind of credential or certificate), along with a list of threshold keys. + * Each of them must reach its threshold when signing the transaction, to attach this claim to this account. + * At least one of them must reach its threshold to delete this Claim from this account. + * This is intended to provide a revocation service: all the authorities agree to attach the hash, + * to attest to the fact that the credential or certificate is valid. + * Any one of the authorities can later delete the hash, to indicate that the credential has been revoked. + * In this way, any client can prove to a third party that any particular account has certain credentials, * or to identity facts proved about it, and that none of them have been revoked yet. * */ public class HederaClaim implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaClaim.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaClaim.class); private static final long serialVersionUID = 1; /** @@ -57,7 +54,7 @@ public class HederaClaim implements Serializable { * If keySignatures exist, they will have priority over keys */ public List keySignatures = new ArrayList(); - + /** * Default constructor. */ @@ -99,11 +96,11 @@ public HederaClaim(Claim claim) { // hash this.hash = claim.getHash().toByteArray(); - + // keys this.keys.clear(); this.keySignatures.clear(); - + for (int i=0; i < claim.getKeys().getKeysCount(); i++) { HederaKeyPair key = new HederaKeyPair(claim.getKeys().getKeys(i)); HederaKeySignature keySig = new HederaKeySignature(key.getKeyType(), key.getPublicKeyEncoded(), new byte[0]); @@ -113,25 +110,25 @@ public HederaClaim(Claim claim) { } /** - * Generate a {@link Claim} protobuf payload for this object + * Generate a {@link Claim} protobuf payload for this object * @return {@link Claim} */ public Claim getProtobuf() { - + Claim.Builder protobuf = Claim.newBuilder(); HederaAccountID accountID = new HederaAccountID(this.shardNum, this.realmNum, this.accountNum); protobuf.setAccountID(accountID.getProtobuf()); protobuf.setHash(ByteString.copyFrom(this.hash)); - + KeyList protoKeyList; - + if (!this.keySignatures.isEmpty()) { protoKeyList = Utilities.getProtoKeyFromKeySigList(this.keySignatures); } else { protoKeyList = Utilities.getProtoKeyList(this.keys); } protobuf.setKeys(protoKeyList); - + return protobuf.build(); } /** @@ -178,4 +175,4 @@ public List getKeys() { public List getKeySignatures() { return this.keySignatures; } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/account/HederaProxyStaker.java b/sdk/src/main/java/com/hedera/sdk/account/HederaProxyStaker.java index 49423a611..97d0ed429 100644 --- a/sdk/src/main/java/com/hedera/sdk/account/HederaProxyStaker.java +++ b/sdk/src/main/java/com/hedera/sdk/account/HederaProxyStaker.java @@ -62,19 +62,19 @@ public HederaProxyStaker(ProxyStaker proxyStaker) { /** * Generate a {@link ProxyStaker} protobuf stream for this object - * @return {@link ProxyStaker} + * @return {@link ProxyStaker} */ public ProxyStaker getProtobuf() { ProxyStaker.Builder accountAmount = ProxyStaker.newBuilder(); AccountID.Builder accountID = AccountID.newBuilder(); - + accountID.setAccountNum(this.accountNum); accountID.setRealmNum(this.realmNum); accountID.setShardNum(this.shardNum); - + accountAmount.setAccountID(accountID); accountAmount.setAmount(this.amount); return accountAmount.build(); } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/account/HederaProxyStakers.java b/sdk/src/main/java/com/hedera/sdk/account/HederaProxyStakers.java index 9502ceb03..19739ccbe 100644 --- a/sdk/src/main/java/com/hedera/sdk/account/HederaProxyStakers.java +++ b/sdk/src/main/java/com/hedera/sdk/account/HederaProxyStakers.java @@ -56,7 +56,7 @@ public HederaProxyStakers(AllProxyStakers allProxyStakers) { this.shardNum = allProxyStakers.getAccountID().getShardNum(); this.realmNum = allProxyStakers.getAccountID().getRealmNum(); this.accountNum = allProxyStakers.getAccountID().getAccountNum(); - + proxyStakers.clear(); for (int i=0; i < allProxyStakers.getProxyStakerCount(); i++) { proxyStakers.add(new HederaProxyStaker(allProxyStakers.getProxyStaker(i))); @@ -65,22 +65,22 @@ public HederaProxyStakers(AllProxyStakers allProxyStakers) { /** * Generate a {@link AllProxyStakers} protobuf payload for this object - * @return {@link AllProxyStakers} + * @return {@link AllProxyStakers} */ public AllProxyStakers getProtobuf() { - + AllProxyStakers.Builder allProxyStakers = AllProxyStakers.newBuilder(); AccountID.Builder accountID = AccountID.newBuilder(); - + accountID.setAccountNum(this.accountNum); accountID.setRealmNum(this.realmNum); accountID.setShardNum(this.shardNum); - + allProxyStakers.setAccountID(accountID); for (HederaProxyStaker proxyStaker : proxyStakers) { allProxyStakers.addProxyStaker(proxyStaker.getProtobuf()); } - + return allProxyStakers.build(); } /** @@ -90,4 +90,4 @@ public AllProxyStakers getProtobuf() { public void addProxyStaker(HederaProxyStaker proxyStaker) { this.proxyStakers.add(proxyStaker); } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaAccountID.java b/sdk/src/main/java/com/hedera/sdk/common/HederaAccountID.java index e7af773b0..9b9372c94 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaAccountID.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaAccountID.java @@ -1,7 +1,7 @@ package com.hedera.sdk.common; import java.io.Serializable; -import org.slf4j. +import org.slf4j.LoggerFactory; import com.hederahashgraph.api.proto.java.AccountID; /** @@ -9,7 +9,7 @@ * of a shard number, a realm number and an account number */ public class HederaAccountID implements Serializable { - final ch.qos.logback.classic. + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaAccountID.class); private static final long serialVersionUID = 1; @@ -28,7 +28,7 @@ public class HederaAccountID implements Serializable { * the account number (nonnegative and unique within its realm) */ public long accountNum = 1; - + /** * Default constructor, creates a HederaAccountID with default values */ @@ -59,11 +59,11 @@ public HederaAccountID(AccountID accountIDProtobuf) { /** * Generate a protobuf payload for this object - * @return a protobuf AccountID + * @return a protobuf AccountID */ public AccountID getProtobuf() { AccountID.Builder accountID = AccountID.newBuilder(); - + if (this.realmNum != -1) { accountID.setRealmNum(this.realmNum); } @@ -75,4 +75,4 @@ public AccountID getProtobuf() { return accountID.build(); } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaContractID.java b/sdk/src/main/java/com/hedera/sdk/common/HederaContractID.java index dc5a52881..f438661b2 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaContractID.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaContractID.java @@ -1,9 +1,7 @@ package com.hedera.sdk.common; import java.io.Serializable; - import org.json.simple.JSONObject; -import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.hederahashgraph.api.proto.java.ContractID; @@ -14,7 +12,7 @@ * of a shard number, a realm number and a contract number */ public class HederaContractID implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaContractID.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaContractID.class); private static String JSON_SHARDNUM = "shardNum"; private static String JSON_REALMNUM = "realmNum"; private static String JSON_CONTRACTNUM = "contractNum"; @@ -35,7 +33,7 @@ public class HederaContractID implements Serializable { * contract number (a nonnegative number unique within its realm) */ public long contractNum = 0; - + /** * Default constructor, creates a HederaContractID with default values */ @@ -66,12 +64,12 @@ public HederaContractID(ContractID contractIDProtobuf) { /** * Generate a protobuf payload for this object - * @return a protobuf ContractID + * @return a protobuf ContractID */ public ContractID getProtobuf() { - + ContractID.Builder contractID = ContractID.newBuilder(); - + contractID.setShardNum(this.shardNum); if (this.realmNum != -1) { contractID.setRealmNum(this.realmNum); @@ -95,7 +93,7 @@ public JSONObject JSON() { return jsonContract; } - + /** * Gets a JSON representation of the HederaContractID as a string * @return a String @@ -109,7 +107,7 @@ public String JSONString() { * @param jsonContract JSONObject representing a HederaContractID */ public void fromJSON(JSONObject jsonContract) { - + if (jsonContract.containsKey(JSON_SHARDNUM)) { this.shardNum = (Long) jsonContract.get(JSON_SHARDNUM); } else { @@ -126,4 +124,4 @@ public void fromJSON(JSONObject jsonContract) { this.contractNum = 1; } } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaDuration.java b/sdk/src/main/java/com/hedera/sdk/common/HederaDuration.java index 9df21010c..d7539f648 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaDuration.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaDuration.java @@ -2,18 +2,17 @@ import java.io.Serializable; -import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.hederahashgraph.api.proto.java.Duration; /** - * The length of a period of time. - * This is an identical data structure to the protobuf Duration.proto + * The length of a period of time. + * This is an identical data structure to the protobuf Duration.proto * (see the comments in https://github.com/google/protobuf/blob/master/src/google/protobuf/duration.proto) */ public class HederaDuration implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaDuration.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaDuration.class); private static final long serialVersionUID = 1; /** @@ -27,7 +26,7 @@ public class HederaDuration implements Serializable { public int nanos = 0; /** - * Constructor with default values + * Constructor with default values */ public HederaDuration() { } @@ -35,7 +34,7 @@ public HederaDuration() { /** * Constructor with specific values * @param seconds the number of seconds - * @param nanos the number of nanoseconds + * @param nanos the number of nanoseconds */ public HederaDuration(long seconds, int nanos) { @@ -62,4 +61,4 @@ public Duration getProtobuf() { return Duration.newBuilder().setSeconds(this.seconds) .setNanos(this.nanos).build(); } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaEntityID.java b/sdk/src/main/java/com/hedera/sdk/common/HederaEntityID.java index 84814b071..be693cdce 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaEntityID.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaEntityID.java @@ -21,7 +21,7 @@ public class HederaEntityID implements Serializable { * the HederaClaim, initialises with null */ public HederaClaim claim = null; - /** + /** * the HederaFileId, initialises with null */ public HederaFileID fileID = null; @@ -44,12 +44,12 @@ public HederaEntityID() { */ public HederaEntityID(EntityID entityIDProtobuf) { - + this.accountID = null; this.claim = null; this.contractID = null; this.fileID = null; - + if (entityIDProtobuf.hasAccountID()) { this.accountID = new HederaAccountID(entityIDProtobuf.getAccountID()); } @@ -65,4 +65,4 @@ public HederaEntityID(EntityID entityIDProtobuf) { } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaFileID.java b/sdk/src/main/java/com/hedera/sdk/common/HederaFileID.java index f70d0bf08..528487252 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaFileID.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaFileID.java @@ -2,7 +2,6 @@ import java.io.Serializable; -import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.hederahashgraph.api.proto.java.FileID; @@ -11,7 +10,7 @@ * The ID for a Hedera File which is made of a shard number, realm number and file number */ public class HederaFileID implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaFileID.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaFileID.class); private static final long serialVersionUID = 1; /** @@ -29,7 +28,7 @@ public class HederaFileID implements Serializable { * file number a nonnegative number unique within its realm */ public long fileNum = 0; - + /** * Default constructor with default values */ @@ -71,15 +70,15 @@ public HederaFileID(FileID fileIDProtobuf) { public FileID getProtobuf() { FileID.Builder fileID = FileID.newBuilder(); - + fileID.setShardNum(this.shardNum); if (this.realmNum != -1) { // if realmnum is -1, create a new realm fileID.setRealmNum(this.realmNum); } fileID.setFileNum(this.fileNum); - + return fileID.build(); } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaKey.java b/sdk/src/main/java/com/hedera/sdk/common/HederaKey.java deleted file mode 100644 index 78518f11d..000000000 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaKey.java +++ /dev/null @@ -1,707 +0,0 @@ -package com.hedera.sdk.common; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; - -import javax.xml.bind.DatatypeConverter; - -import org.json.simple.JSONArray; -import org.json.simple.JSONObject; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.spongycastle.util.encoders.Hex; - -import com.google.protobuf.ByteString; -import com.hedera.sdk.common.HederaContractID; -import com.hedera.sdk.cryptography.EDKeyPair; -import com.hedera.sdk.node.HederaNode; -import com.hedera.sdk.query.HederaQuery; -import com.hedera.sdk.query.HederaQueryHeader; -import com.hedera.sdk.query.HederaQuery.QueryType; -import com.hedera.sdk.query.HederaQueryHeader.QueryResponseType; -import com.hedera.sdk.transaction.HederaTransaction; -import com.hederahashgraph.api.proto.java.FileGetInfoResponse; -import com.hederahashgraph.api.proto.java.GetByKeyQuery; -import com.hederahashgraph.api.proto.java.GetByKeyResponse; -import com.hederahashgraph.api.proto.java.Key; -import com.hederahashgraph.api.proto.java.Response; -import com.hederahashgraph.api.proto.java.ResponseCodeEnum; -import com.hederahashgraph.api.proto.java.ResponseHeader; - -/** - * A Key can be a public key from one of the three supported systems (ed25519, RSA-3072, ECDSA with p384). - * Or, it can be the ID of a smart contract instance, which is authorized to act as if it had a key. - * If an account has an ed25519 key associated with it, then the corresponding private key must sign any transaction to transfer cryptocurrency out of it. - * And similarly for RSA and ECDSA. - * A Key can be a smart contract ID, which means that smart contract is to authorize operations as if it had signed with a key that it owned. - * The smart contract doesn't actually have a key, and doesn't actually sign a transaction. - * But it's as if a virtual transaction were created, and the smart contract signed it with a private key. - * A key can be a "threshold key", which means a list of M keys, any N of which must sign in order for the threshold signature to be considered valid. - * The keys within a threshold signature may themselves be threshold signatures, to allow complex signature requirements. - * A Key can be a list of keys. Their use is dependent on context. - * For example, a Hedera file is created with a list of keys, where all of them must sign a transaction to create or modify the file, - * but only one of them is needed to sign a transaction to delete the file. So it's a single list that sometimes acts as a 1-of-M threshold key, - * and sometimes acts as an M-of-M threshold key. - * A Key can contain a ThresholdKey or KeyList, which in turn contain a Key, so this mutual recursion would allow nesting arbitrarily deep. - * The current API only allows the nesting to a depth of 3 levels, such as the key being a list of threshold keys, - * each of which contains a list of primitive keys (e.g., ed25519). - * In the future, this requirement may be relaxed, to allow deeper nesting. - */ -public class HederaKey implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaKey.class); - private static String JSON_DESCRIPTION = "description"; - private static String JSON_UUID = "uuid"; - private static String JSON_TYPE = "type"; - private static String JSON_KEY = "key"; - private static String JSON_KEYS = "keys"; - private static final long serialVersionUID = 1; - private byte[] key = null; - private KeyType keyType = KeyType.NOTSET; - private HederaContractID contractIDKey = null; - private HederaKeyThreshold thresholdKey = null; - private HederaKeyList keyList = null; - private ResponseCodeEnum precheckResult = ResponseCodeEnum.UNKNOWN; - private long cost = 0; - private byte[] stateProof = new byte[0]; - private HederaNode node = new HederaNode(); - - /** - * The type of key held in this object - */ - public enum KeyType { - CONTRACT, - ED25519, - RSA3072, - ECDSA384, - THRESHOLD, - LIST, - NOTSET - } - /** - * A description for the key - */ - public String keyDescription = ""; - - /** - * A UUID for the key, automatically set when a key object is created, can be overwritten - */ - public String uuid = UUID.randomUUID().toString(); - - /** - * List of HederaEntityIDs returned when a query is run - * for this key - */ - public List entityIDs = new ArrayList(); - private EDKeyPair keyPair; - - /** - * Method to set the node object to be used to communicate - * with a node - * @param node {@link HederaNode} the node for communication - */ - public void setNode (HederaNode node) { - this.node = node; - } - /** - * Method to get the node object to be used to communicate - * with a node - * @return {@link HederaNode} the node for communication - */ - public HederaNode getNode () { - return this.node; - } - /** - * Returns the cost of running a query in relation to this key - * @return long - */ - public long getCost() { - return this.cost; - } - /** - * Returns the stateProof if requested during a query in relation to this key - * @return byte array (byte[]) - */ - public byte[] getStateProof() { - return this.stateProof; - } - /** - * Default constructor - */ - public HederaKey() { - - - } - /** - * Constructs a HederaKey from type, key bytes - * If the private key is either null or an empty string, only a public key is created - * @param keyType the type of key - * @param publicKey a byte array containing the value of the public key - * @param privateKey a byte array containing the value of the private key - */ - public HederaKeyPair(KeyType keyType, byte[] publicKey, byte[] privateKey) { - this(keyType, publicKey, privateKey, ""); - } - - /** - * Constructs a HederaKey from type, key bytes and description - * @param keyType the type of key - * @param key a byte array containing the value of the key - * @param keyDescription a description for the key - */ - public HederaKey(KeyType keyType, byte[] key, String keyDescription) { - - this.key = key.clone(); - this.keyType = keyType; - this.keyDescription = keyDescription; - - } - /** - * Constructs from a known pair of public and private key - * If the secretKey is null or empty, only a public key is created - * @param keyType {@link HederaKeyPair.KeyType} - * @param publicKey {@link String} as a hex encoded string - * @param secretKey {@link String} as a hex encoded string - * @throws DecoderException if the keys can't be decoded - * @throws IllegalStateException if the key type is invalid - * @throws InvalidKeySpecException in the event of a key specification error - */ - public HederaKeyPair(HederaKeyPair.KeyType keyType, String publicKey, String secretKey) throws InvalidKeySpecException, DecoderException { - this(keyType, publicKey, secretKey, ""); - } - /** - * Constructs from a known pair of public and private key - * If the secretKey is null or empty, only a public key is created - * @param keyType {@link HederaKeyPair.KeyType} - * @param publicKey {@link String} as a hex encoded string - * @param secretKey {@link String} as a hex encoded string - * @param description the description of the key - * @throws DecoderException if the keys can't be decoded - * @throws IllegalStateException if the key type is invalid - * @throws InvalidKeySpecException in the event of a key specification error - */ - public HederaKeyPair(HederaKeyPair.KeyType keyType, String publicKey, String secretKey, String description) throws InvalidKeySpecException, DecoderException { - this.keyType = keyType; - this.keyDescription = description; - - switch (this.keyType) { -// case ECDSA384: -// throw new IllegalStateException("ECDSA384 keys are not supported"); -// case RSA3072: -// throw new IllegalStateException("RSA3072 keys are not supported"); - case ED25519: - byte[] pub = Hex.decode(publicKey); - byte[] secret = null; - if (secretKey != null) { - if (!secretKey.isEmpty()) { - secret = Hex.decode(secretKey); - } - } - - this.keyPair = new EDKeyPair(pub, secret); - - //byte [] pubKeybytes = HexUtils.hexToBytes(ed25519PublicKeyHex); -// X509EncodedKeySpec pencoded = new X509EncodedKeySpec(pubKeybytes); -// EdDSAPublicKey pubKey = new EdDSAPublicKey(pencoded); -// byte[] abyte = pubKey.getAbyte(); - // - - break; - default: - throw new IllegalStateException("Invalid key type not set, only ED25519 supported"); - } - } - - /** - * Returns the list of recoveryWords for a key pair - * @return list of Strings - * @throws IllegalStateException if the key type is invalid - */ - public List recoveryWordsList() { - - switch (this.keyType) { -// case ECDSA384: -// throw new IllegalStateException("ECDSA384 keys are not supported"); - case ED25519: - if (this.seed != null) { - return this.seed.toWords(); - } else { - return new ArrayList(); - } -// case RSA3072: -// throw new IllegalStateException("RSA3072 keys are not supported"); - default: - throw new IllegalStateException("Invalid key type not set, only ED25519 supported"); - } - } - - /** - * Returns the list of recoveryWords for a key pair - * @return String[] - * @throws IllegalStateException if the key type is invalid - */ - public String[] recoveryWordsArray() { - switch (this.keyType) { -// case ECDSA384: -// throw new IllegalStateException("ECDSA384 keys are not supported"); - case ED25519: - List wordList = new ArrayList(); - if (this.seed != null) { - wordList = this.seed.toWords(); - return wordList.toArray(new String[0]); - } else { - return new String[0]; - } -// case RSA3072: -// throw new IllegalStateException("RSA3072 keys are not supported"); - default: - throw new IllegalStateException("Invalid key type not set, only ED25519 supported"); - } - } - - /** - * signs a message with the private key - * @param message byte[] - * @return byte[] - */ - public byte[] signMessage(byte[] message) { - return this.keyPair.signMessage(message); - } - - /** - * verifies a message against a signature - * @param message byte[] - * @param signature byte[] - * @return {@link Boolean} - * @throws Exception in the event of an error - */ - public boolean verifySignature(byte[] message, byte[] signature) throws Exception { - return this.keyPair.verifySignature(message, signature); - } - /** - * Constructs a HederaKey from a HederaContractID and description - * @param contractKey the HederaContractID used for this key - * @param keyDescription the description of the key - */ - public HederaKeyPair(HederaContractID contractKey, String keyDescription) { - - this.keyType = KeyType.CONTRACT; - this.contractIDKey = contractKey; - this.keyDescription = keyDescription; - } - /** - * Constructs a HederaKey from a HederaContractID - * @param contractKey the HederaContractID used for this key - */ - public HederaKey(HederaContractID contractKey) { - this(contractKey,""); - } - /** - * Constructs a HederaKey from a HederaKeyThreshold and description - * @param thresholdKey the HederaContractID used for this key - * @param keyDescription the description for the key - */ - public HederaKeyPair(HederaKeyThreshold thresholdKey, String keyDescription) { - - this.keyType = KeyType.THRESHOLD; - this.thresholdKey = thresholdKey; - this.keyDescription = keyDescription; - } - /** - * Constructs a HederaKey from a HederaKeyThreshold - * @param thresholdKey the HederaContractID used for this key - */ - public HederaKey(HederaKeyThreshold thresholdKey) { - this(thresholdKey,""); - } - /** - * Constructs a HederaKey from a HederaKeyList and description - * @param keyList the HederaKeyList to use for this key - * @param keyDescription the description for the key - */ - public HederaKeyPair(HederaKeyList keyList, String keyDescription) { - - this.keyType = KeyType.LIST; - this.keyList = keyList; - this.keyDescription = keyDescription; - } - /** - * Constructs a HederaKey from a HederaKeyList - * @param keyList the HederaKeyList to use for this key - */ - public HederaKey(HederaKeyList keyList) { - this(keyList,""); - } - /** - * Constructs a HederaKey from a protobuf and description - * @param protobuf the protobuf to build the key with - * @param keyDescription the description for the key - */ - public HederaKey(Key protobuf, String keyDescription) { - // convert a protobuf payload into class data - - // reset key just in case - this.thresholdKey = null; - this.contractIDKey = null; - this.keyList = null; - this.key = null; - - switch (protobuf.getKeyCase()) { - case ED25519: - byte[] pubKeyBytes = protobuf.getEd25519().toByteArray(); - this.keyPair = new EDKeyPair(pubKeyBytes, null); - this.keyType = KeyType.ED25519; - break; - case RSA_3072: - this.key = protobuf.getRSA3072().toByteArray(); - this.keyType = KeyType.RSA3072; - break; - case ECDSA_384: - this.key = protobuf.getECDSA384().toByteArray(); - this.keyType = KeyType.ECDSA384; - break; - case CONTRACTID: - this.contractIDKey = new HederaContractID(protobuf.getContractID()); - this.keyType = KeyType.CONTRACT; - break; - case THRESHOLDKEY: - this.thresholdKey = new HederaKeyThreshold(protobuf.getThresholdKey()); - this.keyType = KeyType.THRESHOLD; - break; - case KEYLIST: - this.keyList = new HederaKeyList(protobuf.getKeyList()); - this.keyType = KeyType.LIST; - break; - case KEY_NOT_SET: - this.keyType = KeyType.NOTSET; - throw new IllegalArgumentException("Key not set in protobuf data."); - default: - throw new IllegalArgumentException("Key Type not recognized. You may be using an old sdk."); - } - this.keyDescription = keyDescription; - - } - /** - * Constructs a HederaKey from a protobuf - * @param protobuf the protobuf to build the key with - */ - public HederaKey(Key protobuf) { - this(protobuf,""); - } - /** - * Gets the type of key for this object - * @return KeyType - */ - public KeyType getKeyType() { - - - return this.keyType; - } - /** - * Gets the key value as a byte array - * value will be null if not set - * @return byte array (byte[]) - */ - public byte[] getKey() { - - return this.key; - } - /** - * Gets the contractID stored in this key - * return will be null if not set - * @return {@link HederaContractID} - */ - public HederaContractID getContractIDKey() { - - return this.contractIDKey; - } - /** - * Gets the HederaKeyThreshold stored in this key - * return will be null if not set - * @return {@link HederaKeyThreshold} - */ - public HederaKeyThreshold getThresholdKey() { - - return this.thresholdKey; - } - /** - * Gets the {@link HederaKeyList} stored in this key - * return will be null if not set - * @return {@link HederaKeyList} - */ - public HederaKeyList getKeyList() { - - return this.keyList; - } - /** - * Gets the protobuf representation of this key object - * @return {@link Key} protobuf - */ - public Key getProtobuf() { - - // Generates the protobuf payload for this class - Key.Builder keyProtobuf = Key.newBuilder(); - - switch (this.keyType) { - case ED25519: - if (this.key != null) { - keyProtobuf.setEd25519(ByteString.copyFrom(this.key)); - } - break; - case RSA3072: - if (this.key != null) { - keyProtobuf.setRSA3072(ByteString.copyFrom(this.key)); - } - break; - case ECDSA384: - if (this.key != null) { - keyProtobuf.setECDSA384(ByteString.copyFrom(this.key)); - } - break; - case CONTRACT: - if (this.contractIDKey != null) { - keyProtobuf.setContractID(this.contractIDKey.getProtobuf()); - } - break; - case THRESHOLD: - if (this.thresholdKey != null) { - keyProtobuf.setThresholdKey(this.thresholdKey.getProtobuf()); - } - break; - case LIST: - if (this.keyList != null) { - keyProtobuf.setKeyList(this.keyList.getProtobuf()); - } - break; - case NOTSET: - throw new IllegalArgumentException("Key type not set, unable to generate data."); - } - - - return keyProtobuf.build(); - } - - /** - * Generates a {@link JSONObject} representation of this key object - * @return {@link JSONObject} - */ - @SuppressWarnings("unchecked") - public JSONObject JSON() { - - - JSONObject jsonKey = new JSONObject(); - jsonKey.put(JSON_DESCRIPTION, this.keyDescription); - jsonKey.put(JSON_UUID, this.uuid); - - switch (this.keyType) { - case CONTRACT: - jsonKey.put(JSON_TYPE, "CONTRACT"); - jsonKey.put(JSON_KEY, this.contractIDKey.JSON()); - break; - case ECDSA384: - jsonKey.put(JSON_TYPE, "ECDSA384"); - jsonKey.put(JSON_KEY,DatatypeConverter.printBase64Binary(this.key)); - break; - case ED25519: - jsonKey.put(JSON_TYPE, "ED25519"); - jsonKey.put(JSON_KEY,DatatypeConverter.printBase64Binary(this.key)); - break; - case LIST: - jsonKey.put(JSON_TYPE, "KEYLIST"); - jsonKey.put(JSON_KEYS, this.keyList.JSON()); - break; - case RSA3072: - jsonKey.put(JSON_TYPE, "RSA3072"); - jsonKey.put(JSON_KEY,DatatypeConverter.printBase64Binary(this.key)); - break; - case THRESHOLD: - jsonKey.put(JSON_TYPE, "THRESHOLD"); - jsonKey.put(JSON_KEY, this.thresholdKey.JSON()); - break; - case NOTSET: - jsonKey.put(JSON_TYPE, "NOTSET"); - break; - } - - - return jsonKey; - } - /** - * Generates a {@link String} value for the JSON representation of this key object - * @return {@link String} - */ - public String JSONString() { - - - return JSON().toJSONString(); - } - /** - * Sets this key object properties from a {@link JSONObject} representation - * @param jsonKey the {@link JSONObject} from which to set key values - */ - public void fromJSON(JSONObject jsonKey) { - - - if (jsonKey.containsKey(JSON_DESCRIPTION)) { - this.keyDescription = (String) jsonKey.get(JSON_DESCRIPTION); - } else { - this.keyDescription = ""; - } - if (jsonKey.containsKey(JSON_UUID)) { - this.uuid = (String) jsonKey.get(JSON_UUID); - } else { - this.uuid = UUID.randomUUID().toString(); - } - if (jsonKey.containsKey(JSON_TYPE)) { - // reset key just in case - this.thresholdKey = null; - this.contractIDKey = null; - this.keyList = null; - this.key = null; - - JSONObject oneKey = new JSONObject(); - - switch ((String) jsonKey.get(JSON_TYPE)) { - case "CONTRACT": - this.keyType = KeyType.CONTRACT; - oneKey = (JSONObject) jsonKey.get(JSON_KEY); - this.contractIDKey = new HederaContractID(); - contractIDKey.fromJSON(oneKey); - break; - case "ECDSA384": - this.keyType = KeyType.ECDSA384; - this.key = DatatypeConverter.parseBase64Binary((String) jsonKey.get(JSON_KEY)); - break; - case "ED25519": - this.keyType = KeyType.ED25519; - this.key = DatatypeConverter.parseBase64Binary((String) jsonKey.get(JSON_KEY)); - break; - case "KEYLIST": - this.keyType = KeyType.LIST; - JSONArray listOfKeys = new JSONArray(); - listOfKeys = (JSONArray) jsonKey.get(JSON_KEYS); - this.keyList = new HederaKeyList(); - this.keyList.fromJSON(listOfKeys); - break; - case "RSA3072": - this.keyType = KeyType.RSA3072; - this.key = DatatypeConverter.parseBase64Binary((String) jsonKey.get(JSON_KEY)); - break; - case "THRESHOLD": - this.keyType = KeyType.THRESHOLD; - oneKey = (JSONObject) jsonKey.get(JSON_KEY); - this.thresholdKey = new HederaKeyThreshold(); - this.thresholdKey.fromJSON(oneKey); - break; - case "NOTSET": - this.keyType = KeyType.NOTSET; - break; - } - } else { - throw new IllegalStateException("Key type isn't set in JSON."); - } - - } - - /** - * Runs a query to get entities related to this key from the Hedera Network - * If successful, the method populates the entityIDs, cost and stateProof for this object depending on the type of answer requested - * @param payment a {@link HederaTransaction} message to indicate how this query will be paid for, this can be null for Cost queries - * @param responseType the type of response requested from the query - * @return {@link Boolean} indicating success or failure of the query - * @throws InterruptedException should an exception occur during communication with the node - */ - public boolean getEntities(HederaTransaction payment, HederaQueryHeader.QueryResponseType responseType) throws InterruptedException { - boolean result = true; - - - // build the query - // Header - HederaQueryHeader queryHeader = new HederaQueryHeader(); - if (payment != null) { - queryHeader.payment = payment; - queryHeader.responseType = responseType; - } - - // get by key query - GetByKeyQuery.Builder getByKeyQuery = GetByKeyQuery.newBuilder(); - getByKeyQuery.setKey(this.getProtobuf()); - getByKeyQuery.setHeader(queryHeader.getProtobuf()); - - // the query itself - HederaQuery query = new HederaQuery(); - query.queryType = QueryType.FILEGETINFO; - query.queryData = getByKeyQuery.build(); - - // query now set, send to network - Response response = this.node.getFileInfo(query); - - FileGetInfoResponse.Builder fileGetInfoResponse = response.getFileGetInfo().toBuilder(); - - // check response header first - ResponseHeader.Builder responseHeader = fileGetInfoResponse.getHeaderBuilder(); - - this.precheckResult = responseHeader.getNodeTransactionPrecheckCode(); - - if (this.precheckResult == ResponseCodeEnum.OK) { - GetByKeyResponse queryResponse = response.getGetByKey(); - // cost - this.cost = responseHeader.getCost(); - //state proof - this.stateProof = responseHeader.getStateProof().toByteArray(); - this.entityIDs.clear(); - for (int i=0; i < queryResponse.getEntitiesCount(); i++) { - HederaEntityID entity = new HederaEntityID(queryResponse.getEntities(i)); - this.entityIDs.add(entity); - } - } else { - result = false; - } - - - return result; - } - /** - * Gets the entities related to this key from the network, requesting only an answer - * If successful, the method populates the entityIDs and cost for this object - * @param payment the {@link HederaTransaction} payload containing payment information for the query - * @return {@link Boolean} indicating if query was successful or not - * @throws InterruptedException should a communication error occur with the node - */ - public boolean getEntitiesAnswerOnly(HederaTransaction payment) throws InterruptedException { - - return getEntities(payment, QueryResponseType.ANSWER_ONLY); - } - /** - * Gets the entities related to this key from the network, requesting a state proof - * If successful, the method populates the entityIDs,state proof and cost for this object - * @param payment the {@link HederaTransaction} payload containing payment information for the query - * @return {@link Boolean} indicating if query was successful or not - * @throws InterruptedException should a communication error occur with the node - */ - public boolean getEntitiesStateProof(HederaTransaction payment) throws InterruptedException { - - return getEntities(payment, HederaQueryHeader.QueryResponseType.ANSWER_STATE_PROOF); - } - /** - * Gets the cost of running a query to get entities with only an answer - * If successful, the method populates the cost for this object - * @return {@link Boolean} indicating if query was successful or not - * @throws InterruptedException should a communication error occur with the node - */ - public boolean getEntitiesCostAnswer() throws InterruptedException { - - return getEntities(null, HederaQueryHeader.QueryResponseType.COST_ANSWER); - } - /** - * Gets the cost of running a query to get entities with a state proof - * If successful, the method populates the cost for this object - * @return {@link Boolean} indicating if query was successful or not - * @throws InterruptedException should a communication error occur with the node - */ - public boolean getEntitiesCostAnswerStateProof() throws InterruptedException { - - return getEntities(null, HederaQueryHeader.QueryResponseType.COST_ANSWER_STATE_PROOF); - } -} diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaKeyList.java b/sdk/src/main/java/com/hedera/sdk/common/HederaKeyList.java index 37c78bc60..e64a22dd9 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaKeyList.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaKeyList.java @@ -4,10 +4,8 @@ import java.security.spec.InvalidKeySpecException; import java.util.ArrayList; import java.util.List; - import org.json.simple.JSONArray; import org.json.simple.JSONObject; -import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.hederahashgraph.api.proto.java.Key; @@ -16,14 +14,14 @@ * A HederaKeyList is a list of {@link HederaKeyPair} */ public class HederaKeyList implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaKeyList.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaKeyList.class); private static final long serialVersionUID = 1; /** * an {@link ArrayList} of {@link HederaKeyPair}, initially empty */ public List keys = new ArrayList(); - + /** * Default constructor for the {@link HederaKeyList} with an empty set of {@link HederaKeyPair} */ @@ -37,7 +35,7 @@ public HederaKeyList() { */ public HederaKeyList(List keys) { - + for (HederaKeyPair hederaKey : keys) { this.keys.add(hederaKey); } @@ -51,7 +49,7 @@ public HederaKeyList(KeyList protobuf) { // convert a protobuf payload into class data this.keys.clear(); - + for (Key key : protobuf.getKeysList()) { this.keys.add(new HederaKeyPair(key)); } @@ -69,7 +67,7 @@ public KeyList getProtobuf() { keyListProtobuf.addKeys(key.getProtobuf()); } - + return keyListProtobuf.build(); } /** @@ -103,20 +101,20 @@ public boolean deleteKey(HederaKeyPair key) { return this.keys.remove(key); } - /** - * Generates a {@link JSONArray} for the list of keys + /** + * Generates a {@link JSONArray} for the list of keys * @return {@link JSONArray} */ @SuppressWarnings("unchecked") public JSONArray JSON() { - + JSONArray jsonKeys =new JSONArray(); for (HederaKeyPair hederaKey : this.keys) { jsonKeys.add(hederaKey.JSON()); } - + return jsonKeys; } /** @@ -134,11 +132,11 @@ public String JSONString() { */ public void fromJSON(JSONArray jsonKeys) { - + // delete all keys this.keys.clear(); // add keys from json array - + for (int i=0; i < jsonKeys.size(); i++) { JSONObject jsonKey = (JSONObject) jsonKeys.get(i); HederaKeyPair key = new HederaKeyPair(); @@ -147,4 +145,4 @@ public void fromJSON(JSONArray jsonKeys) { } } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaKeySignature.java b/sdk/src/main/java/com/hedera/sdk/common/HederaKeySignature.java index 20fa384f5..7a0b956ad 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaKeySignature.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaKeySignature.java @@ -5,14 +5,10 @@ import java.util.Arrays; import java.util.List; import java.util.UUID; - import javax.xml.bind.DatatypeConverter; - import org.json.simple.JSONArray; import org.json.simple.JSONObject; -import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import com.google.protobuf.ByteString; import com.hedera.sdk.common.HederaContractID; import com.hedera.sdk.common.HederaKeyPair.KeyType; @@ -34,7 +30,7 @@ * This class is a helper for managing keys and signatures in tandem. Each instance of the object can store a {@link HederaKeyPair} and its corresponding {@link HederaSignature} */ public class HederaKeySignature implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaKeySignature.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaKeySignature.class); private static final long serialVersionUID = 1; private static String JSON_DESCRIPTION = "description"; @@ -56,7 +52,7 @@ public class HederaKeySignature implements Serializable { private HederaNode node = null; /** - * A description for the key + * A description for the key */ public String keyDescription = ""; /** @@ -104,7 +100,7 @@ public HederaKeySignature() { } /** * Constructor from key type, key, signature and description - * @param keyType the type of key + * @param keyType the type of key * @param publicKey the key as a byte array (byte[]) * @param signature the signature as a byte array (byte[]) * @param keyDescription the description of the key @@ -122,8 +118,8 @@ public HederaKeySignature(KeyType keyType, byte[] publicKey, byte[] signature, S } /** - * Constructor from key type, key and signature - * @param keyType the type of key + * Constructor from key type, key and signature + * @param keyType the type of key * @param publicKey the key as a byte array (byte[]) * @param signature the signature as a byte array (byte[]) */ @@ -146,7 +142,7 @@ public HederaKeySignature(HederaContractID contractKey, String keyDescription) { } /** - * Constructor from a {@link HederaContractID} + * Constructor from a {@link HederaContractID} * Note: The signature will be set to null * @param contractKey the {@link HederaContractID} key */ @@ -166,7 +162,7 @@ public HederaKeySignature(HederaKeySignatureThreshold thresholdKeySigPair, Strin } /** - * Constructor from a {@link HederaKeySignatureThreshold} object + * Constructor from a {@link HederaKeySignatureThreshold} object * @param thresholdKeySigPair a {@link HederaKeySignatureThreshold} */ public HederaKeySignature(HederaKeySignatureThreshold thresholdKeySigPair) { @@ -185,7 +181,7 @@ public HederaKeySignature(HederaKeySignatureList keySigList, String keyDescripti } /** - * Constructor from a {@link HederaKeySignatureList} + * Constructor from a {@link HederaKeySignatureList} * @param keySigList a {@link HederaKeySignatureList} */ public HederaKeySignature(HederaKeySignatureList keySigList) { @@ -200,7 +196,7 @@ public HederaKeySignature(HederaKeySignatureList keySigList) { */ // public HederaKeySignature(Key protobufKey, Signature protobufSig, String keyDescription) { // -// +// // HederaKeyPair hederaKey = new HederaKeyPair(protobufKey); // HederaSignature hederaSignature = new HederaSignature(protobufSig); // @@ -214,7 +210,7 @@ public HederaKeySignature(HederaKeySignatureList keySigList) { // this.keySigThreshold = new HederaKeySignatureThreshold(protobufKey.getThresholdKey(), protobufSig.getThresholdSignature()); // break; // case KEY_NOT_SET: -// throw new IllegalArgumentException("Key not set in protobuf data."); +// throw new IllegalArgumentException("Key not set in protobuf data."); // case CONTRACTID: // this.keyType = hederaKey.getKeyType(); // this.contractIDKey = hederaKey.getContractIDKey(); @@ -230,7 +226,7 @@ public HederaKeySignature(HederaKeySignatureList keySigList) { // // } // /** -// * Constructor for a {@link Key} protobuf and associated {@link Signature} protobuf +// * Constructor for a {@link Key} protobuf and associated {@link Signature} protobuf // * Note: It is assumed that keys and signatures are matching in both protobuf objects // * @param protobufKey a {@link Key} protobuf // * @param protobufSig a {@link Signature} protobug @@ -246,7 +242,7 @@ public KeyType getKeyType() { return this.keyType; } - /** + /** * Gets the key held in this object * Note: this will be null if not set * @return byte[] @@ -284,7 +280,7 @@ public byte[] getContractIDSignature() { } /** * Gets the {@link HederaKeySignatureThreshold} held in this object - * Note: Returns null if not set + * Note: Returns null if not set * @return {@link HederaKeySignatureThreshold} */ public HederaKeySignatureThreshold getThresholdKeySignaturePair() { @@ -307,7 +303,7 @@ public Key getKeyProtobuf() { // Generates the protobuf payload for this class Key.Builder keyProtobuf = Key.newBuilder(); - + switch (this.keyType) { case ED25519: if (this.publicKey != null) { @@ -340,13 +336,13 @@ public Key getKeyProtobuf() { } break; case NOTSET: - throw new IllegalArgumentException("Key type not set, unable to generate data."); + throw new IllegalArgumentException("Key type not set, unable to generate data."); } - + return keyProtobuf.build(); } - /** + /** * Returns the {@link Signature} protobuf for the signature held in this object * @return {@link Signature} */ @@ -354,7 +350,7 @@ public Signature getSignatureProtobuf() { // Generates the protobuf payload for this class Signature.Builder signatureProtobuf = Signature.newBuilder(); - + switch (this.keyType) { case ED25519: if (this.signature != null) { @@ -385,10 +381,10 @@ public Signature getSignatureProtobuf() { } break; case NOTSET: - throw new IllegalArgumentException("Signature type not set, unable to generate data."); + throw new IllegalArgumentException("Signature type not set, unable to generate data."); } - + return signatureProtobuf.build(); } /** @@ -404,7 +400,7 @@ public Signature getSignatureProtobuf() { public boolean setSignatureForKey(byte[] key, byte[] signature, boolean stopAtFirst) { boolean foundOne = false; - + // exit if key type is not set if (this.keyType == KeyType.NOTSET) { return false; @@ -421,7 +417,7 @@ public boolean setSignatureForKey(byte[] key, byte[] signature, boolean stopAtFi foundOne = true; this.signature = signature; if (stopAtFirst) { - + return true; } } @@ -433,7 +429,7 @@ public boolean setSignatureForKey(byte[] key, byte[] signature, boolean stopAtFi foundOne = keySigList.setSignatureForKey(key, signature, stopAtFirst); } - + return foundOne; } /** @@ -449,17 +445,17 @@ public boolean setSignatureForKey(byte[] key, byte[] signature, boolean stopAtFi public boolean setSignatureForKeys(byte[][] keys, byte[][] signatures, boolean stopAtFirst) { boolean foundOne = false; - + for (int i=0; i < keys.length; i++) { if (setSignatureForKey(keys[i], signatures[i], stopAtFirst)) { foundOne = true; } } - + return foundOne; } - + /** * Sets the signature against a key matching the supplied UUID * if the signature is already set, it will be overwritten @@ -470,10 +466,10 @@ public boolean setSignatureForKeys(byte[][] keys, byte[][] signatures, boolean s public boolean setSignatureForKeyUUID(String uuid, byte[] signature) { boolean foundOne = false; - + // exit if key type is not set if (this.keyType == KeyType.NOTSET) { - + return false; } @@ -483,7 +479,7 @@ public boolean setSignatureForKeyUUID(String uuid, byte[] signature) { if (this.uuid.equals(uuid)) { // it's a match, set the signature this.signature = signature; - + return true; } } @@ -493,7 +489,7 @@ public boolean setSignatureForKeyUUID(String uuid, byte[] signature) { foundOne = keySigList.setSignatureForKeyUUID(uuid, signature); } - + return foundOne; } /** @@ -525,10 +521,10 @@ public boolean setSignatureForKeyUUIDs(String[] uuids, byte[][] signatures) { public boolean updateSignatureForKey(byte[] key, byte[] signature) { boolean foundOne = false; - + // exit if key type is not set if (this.keyType == KeyType.NOTSET) { - + return false; } @@ -550,7 +546,7 @@ public boolean updateSignatureForKey(byte[] key, byte[] signature) { foundOne = keySigList.updateSignatureForKey(key, signature); } - + return foundOne; } /** @@ -563,22 +559,22 @@ public boolean updateSignatureForKey(byte[] key, byte[] signature) { public boolean updateSignatureForKeys(byte[][] keys, byte[][] signatures) { boolean foundOne = false; - + for (int i=0; i < keys.length; i++) { if (updateSignatureForKey(keys[i], signatures[i])) { foundOne = true; } } - + return foundOne; } /** * Gets an array of keys and UUIDS {@link HederaKeyUUIDDescription} for a given public key - * + * * @param hederaKeyUUIDDescriptions a List of {@link HederaKeyUUIDDescription} containing the result * Note: Due to the recursive nature of this method, you must initialise this List before calling the method. - * The result will be in the same parameter + * The result will be in the same parameter * @param publicKey the public key to look for */ public void getKeyUUIDs(List hederaKeyUUIDDescriptions, byte[] publicKey) { @@ -599,7 +595,7 @@ public void getKeyUUIDs(List hederaKeyUUIDDescriptions } else if (this.keyType == KeyType.LIST) { keySigList.getKeyUUIDs(hederaKeyUUIDDescriptions, publicKey); } - } + } } @@ -610,9 +606,9 @@ public void getKeyUUIDs(List hederaKeyUUIDDescriptions @SuppressWarnings("unchecked") public JSONObject JSON() { - + JSONObject jsonKey = new JSONObject(); - + jsonKey.put(JSON_DESCRIPTION, this.keyDescription); jsonKey.put(JSON_UUID, this.uuid); if (this.signature != null) { @@ -656,7 +652,7 @@ public JSONObject JSON() { break; } - + return jsonKey; } /** @@ -675,7 +671,7 @@ public String JSONString() { */ public void fromJSON(JSONObject jsonKey) { - + if (jsonKey.containsKey(JSON_DESCRIPTION)) { this.keyDescription = (String) jsonKey.get(JSON_DESCRIPTION); } else { @@ -693,9 +689,9 @@ public void fromJSON(JSONObject jsonKey) { this.keySigList = null; this.publicKey = null; this.signature = null; - + JSONObject oneKey = new JSONObject(); - + switch ((String) jsonKey.get(JSON_TYPE)) { case "CONTRACT": this.keyType = KeyType.CONTRACT; @@ -767,7 +763,7 @@ public void fromJSON(JSONObject jsonKey) { } } - + /** * Runs a query to get entities related to this key from the Hedera Network * If successful, the method populates the entityIDs, cost and stateProof for this object depending on the type of answer requested @@ -778,7 +774,7 @@ public void fromJSON(JSONObject jsonKey) { */ public boolean getEntities(HederaTransaction payment, HederaQueryHeader.QueryResponseType responseType) throws InterruptedException { boolean result = true; - + // build the query // Header @@ -787,25 +783,25 @@ public boolean getEntities(HederaTransaction payment, HederaQueryHeader.QueryRes queryHeader.payment = payment; queryHeader.responseType = responseType; } - + // get by key query GetByKeyQuery.Builder getByKeyQuery = GetByKeyQuery.newBuilder(); getByKeyQuery.setKey(this.getKeyProtobuf()); getByKeyQuery.setHeader(queryHeader.getProtobuf()); - + // the query itself HederaQuery query = new HederaQuery(); query.queryType = QueryType.FILEGETINFO; query.queryData = getByKeyQuery.build(); - + // query now set, send to network Response response = this.node.getFileInfo(query); FileGetInfoResponse.Builder fileGetInfoResponse = response.getFileGetInfo().toBuilder(); - + // check response header first ResponseHeader.Builder responseHeader = fileGetInfoResponse.getHeaderBuilder(); - + this.precheckResult = responseHeader.getNodeTransactionPrecheckCode(); if (this.precheckResult == ResponseCodeEnum.OK) { @@ -814,7 +810,7 @@ public boolean getEntities(HederaTransaction payment, HederaQueryHeader.QueryRes this.cost = responseHeader.getCost(); //state proof this.stateProof = responseHeader.getStateProof().toByteArray(); - + this.entityIDs.clear(); for (int i=0; i < queryResponse.getEntitiesCount(); i++) { HederaEntityID entity = new HederaEntityID(queryResponse.getEntities(i)); @@ -823,7 +819,7 @@ public boolean getEntities(HederaTransaction payment, HederaQueryHeader.QueryRes } else { result = false; } - + return result; } @@ -869,4 +865,4 @@ public boolean getEntitiesCostAnswerStateProof() throws InterruptedException { return getEntities(null, HederaQueryHeader.QueryResponseType.COST_ANSWER_STATE_PROOF); } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaKeySignatureList.java b/sdk/src/main/java/com/hedera/sdk/common/HederaKeySignatureList.java index fb08517e9..c5f7aeba9 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaKeySignatureList.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaKeySignatureList.java @@ -3,10 +3,8 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.List; - import org.json.simple.JSONArray; import org.json.simple.JSONObject; -import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.hederahashgraph.api.proto.java.KeyList; @@ -16,7 +14,7 @@ */ public class HederaKeySignatureList implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaKeySignatureList.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaKeySignatureList.class); private static final long serialVersionUID = 1; /** * The list of key signature pairs {@link HederaKeySignature} @@ -51,7 +49,7 @@ public HederaKeySignatureList(List keySigPairs) { // // // convert a protobuf payload into class data // this.keySigPairs.clear(); -// +// // for (int index=0; index < protobufKeys.getKeysCount(); index++) { // Key key = protobufKeys.getKeys(index); // Signature sig = protobufSignatures.getSigs(index); @@ -71,7 +69,7 @@ public KeyList getProtobufKeys() { keyListProtobuf.addKeys(key.getKeyProtobuf()); } - + return keyListProtobuf.build(); } /** @@ -86,14 +84,14 @@ public SignatureList getProtobufSignatures() { sigListProtobuf.addSigs(sig.getSignatureProtobuf()); } - + return sigListProtobuf.build(); } /** * Adds a key/signature pair to the list * @param keyType the type of key to add - * @param key the key as a byte array - * @param signature the signature as a byte array + * @param key the key as a byte array + * @param signature the signature as a byte array */ public void addKeySignaturePair(HederaKeyPair.KeyType keyType, byte[] key, byte[] signature) { @@ -137,7 +135,7 @@ public boolean setSignatureForKey(byte[] key, byte[] signature, boolean stopAtFi if (keySigPair.setSignatureForKey(key, signature, stopAtFirst)) { foundOne = true; if (stopAtFirst) { - + return true; } } @@ -160,9 +158,9 @@ public boolean setSignatureForKeys(byte[][] keys, byte[][] signatures, boolean s boolean foundOne = false; for (int i=0; i < keys.length; i++) { - if (setSignatureForKey(keys[i], signatures[i], stopAtFirst)) { - foundOne = true; - } + if (setSignatureForKey(keys[i], signatures[i], stopAtFirst)) { + foundOne = true; + } } @@ -180,7 +178,7 @@ public boolean setSignatureForKeyUUID(String uuid, byte[] signature) { for (HederaKeySignature keySigPair : keySigPairs) { if (keySigPair.setSignatureForKeyUUID(uuid, signature)) { - + return true; } } @@ -235,22 +233,22 @@ public boolean updateSignatureForKey(byte[] key, byte[] signature) { public boolean updateSignatureForKeys(byte[][] keys, byte[][] signatures) { boolean foundOne = false; - + for (int i=0; i < keys.length; i++) { if (updateSignatureForKey(keys[i], signatures[i])) { foundOne = true; } } - + return foundOne; } /** * Gets an array of keys and UUIDS {@link HederaKeyUUIDDescription} for a given public key - * + * * @param hederaKeyUUIDDescriptions a List of {@link HederaKeyUUIDDescription} containing the result * Note: Due to the recursive nature of this method, you must initialise this List before calling the method. - * The result will be in the same parameter + * The result will be in the same parameter * @param publicKey the public key to look for */ public void getKeyUUIDs(List hederaKeyUUIDDescriptions, byte[] publicKey) { @@ -260,7 +258,7 @@ public void getKeyUUIDs(List hederaKeyUUIDDescriptions keySigPair.getKeyUUIDs(hederaKeyUUIDDescriptions, publicKey); } - } + } /** * Gets a {@link JSONObject} representation of this {@link HederaKeySignatureList} @@ -292,11 +290,11 @@ public String JSONString() { */ public void fromJSON(JSONArray jsonKeys) { - + // delete all keys this.keySigPairs.clear(); // add keys from json array - + for (int i=0; i < jsonKeys.size(); i++) { JSONObject jsonKey = (JSONObject) jsonKeys.get(i); HederaKeySignature key = new HederaKeySignature(); @@ -305,4 +303,4 @@ public void fromJSON(JSONArray jsonKeys) { } } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaKeySignatureThreshold.java b/sdk/src/main/java/com/hedera/sdk/common/HederaKeySignatureThreshold.java index cc44d8496..5717c3d56 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaKeySignatureThreshold.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaKeySignatureThreshold.java @@ -3,22 +3,19 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.List; - import org.json.simple.JSONArray; import org.json.simple.JSONObject; -import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import com.hederahashgraph.api.proto.java.KeyList; import com.hederahashgraph.api.proto.java.SignatureList; import com.hederahashgraph.api.proto.java.ThresholdKey; import com.hederahashgraph.api.proto.java.ThresholdSignature; /** - * This class is a helper for managing keys and signatures in tandem. + * This class is a helper for managing keys and signatures in tandem. * Each instance of the object stores a threshold and List of {@link HederaKeySignature} */ public class HederaKeySignatureThreshold implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaKeySignatureThreshold.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaKeySignatureThreshold.class); private static final long serialVersionUID = 1; private static String JSON_KEYS = "keys"; private static String JSON_THRESHOLD = "threshold"; @@ -29,7 +26,7 @@ public class HederaKeySignatureThreshold implements Serializable { public int threshold; /** * The List of {@link HederaKeySignature} - * initially empty + * initially empty */ public List keySigPairs = new ArrayList(); /** @@ -51,7 +48,7 @@ public HederaKeySignatureThreshold(int threshold, List keySi this.keySigPairs.add(keySigPair); } } - + this.threshold = threshold; } @@ -66,17 +63,17 @@ public HederaKeySignatureThreshold(int threshold, List keySi // // convert a protobuf payload into class data // this.threshold = protobufKey.getThreshold(); // this.keySigPairs.clear(); -// +// // KeyList protoKeys = protobufKey.getKeys(); // SignatureList protoSigs = protobufSig.getSigs(); -// +// // for (int index = 0; index < protoKeys.getKeysCount(); index++) { // this.keySigPairs.add(new HederaKeySignature(protoKeys.getKeys(index), protoSigs.getSigs(index))); // } // // } /** - * Gets the protobuf {@link ThresholdKey} for the key + * Gets the protobuf {@link ThresholdKey} for the key * @return {@link ThresholdKey} */ public ThresholdKey getKeyProtobuf() { @@ -84,17 +81,17 @@ public ThresholdKey getKeyProtobuf() { // Generates the protobuf payload for this class ThresholdKey.Builder keysProtobuf = ThresholdKey.newBuilder(); keysProtobuf.setThreshold(this.threshold); - + KeyList protoKeyList; - + if (!this.keySigPairs.isEmpty()) { protoKeyList = Utilities.getProtoKeyFromKeySigList(this.keySigPairs); keysProtobuf.setKeys(protoKeyList); } else { return null; - } - + } + return keysProtobuf.build(); } @@ -106,16 +103,16 @@ public ThresholdSignature getSignatureProtobuf() { // Generates the protobuf payload for this class ThresholdSignature.Builder sigProtobuf = ThresholdSignature.newBuilder(); - + SignatureList protoKeyList; - + if (!this.keySigPairs.isEmpty()) { protoKeyList = Utilities.getProtoSignatureFromKeySigList(this.keySigPairs); sigProtobuf.setSigs(protoKeyList); } else { return null; } - + return sigProtobuf.build(); } @@ -151,7 +148,7 @@ public boolean deleteKey(HederaKeySignature keySigPair) { public boolean setSignatureForKey(byte[] key, byte[] signature, boolean stopAtFirst) { boolean foundOne = false; - + for (HederaKeySignature keySigPair : keySigPairs) { if (keySigPair.setSignatureForKey(key, signature, stopAtFirst)) { foundOne = true; @@ -176,7 +173,7 @@ public boolean setSignatureForKey(byte[] key, byte[] signature, boolean stopAtFi public boolean setSignatureForKeys(byte[][] keys, byte[][] signatures, boolean stopAtFirst) { boolean foundOne = false; - + for (int i=0; i < keys.length; i++) { if (setSignatureForKey(keys[i], signatures[i], stopAtFirst)) { foundOne = true; @@ -194,7 +191,7 @@ public boolean setSignatureForKeys(byte[][] keys, byte[][] signatures, boolean s */ public boolean setSignatureForKeyUUID(String uuid, byte[] signature) { - + for (HederaKeySignature keySigPair : keySigPairs) { if (keySigPair.setSignatureForKeyUUID(uuid, signature)) { return true; @@ -213,7 +210,7 @@ public boolean setSignatureForKeyUUID(String uuid, byte[] signature) { public boolean setSignatureForKeyUUIDs(String[] uuids, byte[][] signatures) { boolean foundOne = false; - + for (int i=0; i < uuids.length; i++) { if (setSignatureForKeyUUID(uuids[i], signatures[i])) { foundOne = true; @@ -232,7 +229,7 @@ public boolean setSignatureForKeyUUIDs(String[] uuids, byte[][] signatures) { public boolean updateSignatureForKey(byte[] key, byte[] signature) { boolean foundOne = false; - + for (HederaKeySignature keySigPair : keySigPairs) { if (keySigPair.updateSignatureForKey(key, signature)) { foundOne = true; @@ -251,7 +248,7 @@ public boolean updateSignatureForKey(byte[] key, byte[] signature) { public boolean updateSignatureForKeys(byte[][] keys, byte[][] signatures) { boolean foundOne = false; - + for (int i=0; i < keys.length; i++) { if (updateSignatureForKey(keys[i], signatures[i])) { foundOne = true; @@ -262,10 +259,10 @@ public boolean updateSignatureForKeys(byte[][] keys, byte[][] signatures) { } /** * Gets an array of keys and UUIDS {@link HederaKeyUUIDDescription} for a given public key - * + * * @param hederaKeyUUIDDescriptions a List of {@link HederaKeyUUIDDescription} containing the result * Note: Due to the recursive nature of this method, you must initialise this List before calling the method. - * The result will be in the same parameter + * The result will be in the same parameter * @param publicKey the public key to look for */ public void getKeyUUIDs(List hederaKeyUUIDDescriptions, byte[] publicKey) { @@ -274,7 +271,7 @@ public void getKeyUUIDs(List hederaKeyUUIDDescriptions keySigPair.getKeyUUIDs(hederaKeyUUIDDescriptions, publicKey); } - } + } /** * Gets a {@link JSONObject} representation of this {@link HederaKeySignatureThreshold} * @return {@link JSONObject} @@ -282,9 +279,9 @@ public void getKeyUUIDs(List hederaKeyUUIDDescriptions @SuppressWarnings("unchecked") public JSONObject JSON() { - + JSONObject jsonKey = new JSONObject(); - + jsonKey.put(JSON_THRESHOLD, this.threshold); JSONArray jsonKeys = new JSONArray(); @@ -313,17 +310,17 @@ public void fromJSON(JSONObject jsonKey) { // delete all keys this.keySigPairs.clear(); // add keys from json array - + if (jsonKey.containsKey(JSON_THRESHOLD)) { this.threshold = (int)jsonKey.get(JSON_THRESHOLD); } else { this.threshold = 0; } - + if (jsonKey.containsKey(JSON_KEYS)) { JSONArray keys = new JSONArray(); keys = (JSONArray) jsonKey.get(JSON_KEYS); - + for (int i=0; i < keys.size(); i++) { HederaKeySignature key = new HederaKeySignature(); JSONObject oneKey = new JSONObject(); @@ -334,4 +331,4 @@ public void fromJSON(JSONObject jsonKey) { } } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaKeyThreshold.java b/sdk/src/main/java/com/hedera/sdk/common/HederaKeyThreshold.java index 76fbfa120..ed8f0a4c7 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaKeyThreshold.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaKeyThreshold.java @@ -9,16 +9,15 @@ import java.util.List; import org.json.simple.JSONArray; import org.json.simple.JSONObject; -import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** - * A set of public keys that are used together to form a threshold signature. - * If the threshold is N and there are M keys, then this is an N of M threshold signature. - * If an account is associated with ThresholdKeys, then a transaction to move cryptocurrency out of it must be signed by a list of M signatures, + * A set of public keys that are used together to form a threshold signature. + * If the threshold is N and there are M keys, then this is an N of M threshold signature. + * If an account is associated with ThresholdKeys, then a transaction to move cryptocurrency out of it must be signed by a list of M signatures, * where at most M-N of them are blank, and the other at least N of them are valid signatures corresponding to at least N of the public keys listed here. */ public class HederaKeyThreshold implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaKeyThreshold.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaKeyThreshold.class); private static String JSON_KEYS = "keys"; private static String JSON_THRESHOLD = "threshold"; private static final long serialVersionUID = 1; @@ -28,7 +27,7 @@ public class HederaKeyThreshold implements Serializable { public int threshold; /** * The List of {@link HederaKeyPair} - * initially empty + * initially empty */ public List keys = new ArrayList(); /** @@ -55,7 +54,7 @@ public HederaKeyThreshold(int threshold, List keys) { } /** - * Constructs from a {@link ThresholdKey} protobuf + * Constructs from a {@link ThresholdKey} protobuf * @param protobufKey the keys */ public HederaKeyThreshold(ThresholdKey protobufKey) { @@ -65,14 +64,14 @@ public HederaKeyThreshold(ThresholdKey protobufKey) { this.threshold = protobufKey.getThreshold(); this.keys.clear(); KeyList protoKeys = protobufKey.getKeys(); - + for (Key key : protoKeys.getKeysList()) { this.keys.add(new HederaKeyPair(key)); } } /** - * Gets the protobuf {@link ThresholdKey} for the key + * Gets the protobuf {@link ThresholdKey} for the key * @return {@link ThresholdKey} */ public ThresholdKey getProtobuf() { @@ -80,9 +79,9 @@ public ThresholdKey getProtobuf() { // Generates the protobuf payload for this class ThresholdKey.Builder keysProtobuf = ThresholdKey.newBuilder(); keysProtobuf.setThreshold(this.threshold); - + KeyList protoKeyList; - + if (!this.keys.isEmpty()) { protoKeyList = Utilities.getProtoKeyList(this.keys); keysProtobuf.setKeys(protoKeyList); @@ -128,11 +127,11 @@ public JSONObject JSON() { for (HederaKeyPair hederaKey : this.keys) { jsonKeys.add(hederaKey.JSON()); } - + jsonKey.put(JSON_KEYS, jsonKeys); + - - + return jsonKey; } /** @@ -153,18 +152,18 @@ public void fromJSON(JSONObject jsonKey) { // delete all keys this.keys.clear(); // add keys from json array - + if (jsonKey.containsKey(JSON_THRESHOLD)) { //long tempThreshold = (long) ; this.threshold = (int) jsonKey.get(JSON_THRESHOLD); //oIntExact(tempThreshold); } else { this.threshold = 0; } - + if (jsonKey.containsKey(JSON_KEYS)) { JSONArray keys = new JSONArray(); keys = (JSONArray) jsonKey.get(JSON_KEYS); - + for (int i=0; i < keys.size(); i++) { HederaKeyPair key = new HederaKeyPair(); JSONObject oneKey = new JSONObject(); @@ -175,4 +174,4 @@ public void fromJSON(JSONObject jsonKey) { } } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaKeyUUIDDescription.java b/sdk/src/main/java/com/hedera/sdk/common/HederaKeyUUIDDescription.java index 2abf18eac..506b94b80 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaKeyUUIDDescription.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaKeyUUIDDescription.java @@ -1,8 +1,6 @@ package com.hedera.sdk.common; import java.io.Serializable; - -import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Description and UUID for a key @@ -10,7 +8,7 @@ public class HederaKeyUUIDDescription implements Serializable { private static final long serialVersionUID = 1L; - final Logger logger = LoggerFactory.getLogger(HederaKeyUUIDDescription.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaKeyUUIDDescription.class); /** * Description of the key @@ -20,12 +18,12 @@ public class HederaKeyUUIDDescription implements Serializable { * UUID for the key */ public String uuid = ""; - + /** * Default constructor */ public HederaKeyUUIDDescription () { - + } /** * Constructs from a uuid and description diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaRealmID.java b/sdk/src/main/java/com/hedera/sdk/common/HederaRealmID.java index 3475fcdbb..93d97f157 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaRealmID.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaRealmID.java @@ -56,7 +56,7 @@ public HederaRealmID(RealmID realmIDProtobuf) { */ public RealmID getProtobuf() { - + RealmID.Builder realmID = RealmID.newBuilder(); if (this.shardNum > 0) { realmID.setShardNum(this.shardNum); @@ -68,4 +68,4 @@ public RealmID getProtobuf() { return realmID.build(); } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaShardID.java b/sdk/src/main/java/com/hedera/sdk/common/HederaShardID.java index 990ec394f..fe05d0b5e 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaShardID.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaShardID.java @@ -5,14 +5,14 @@ import com.hederahashgraph.api.proto.java.ShardID; /** - * Each shard has a nonnegative shard number. Each realm within a given shard has a nonnegative realm number - * (that number might be reused in other shards). And each account, file, and smart contract instance within a given realm has a - * nonnegative number (which might be reused in other realms). Every account, file, and smart contract instance is within exactly - * one realm. So a FileID is a triplet of numbers, like 0.1.2 for entity number 2 within realm 1 within shard 0. - * Each realm maintains a single counter for assigning numbers, so if there is a file with ID 0.1.2, then there won't be an + * Each shard has a nonnegative shard number. Each realm within a given shard has a nonnegative realm number + * (that number might be reused in other shards). And each account, file, and smart contract instance within a given realm has a + * nonnegative number (which might be reused in other realms). Every account, file, and smart contract instance is within exactly + * one realm. So a FileID is a triplet of numbers, like 0.1.2 for entity number 2 within realm 1 within shard 0. + * Each realm maintains a single counter for assigning numbers, so if there is a file with ID 0.1.2, then there won't be an * account or smart contract instance with ID 0.1.2. - * Everything is partitioned into realms so that each Solidity smart contract can access everything in just a single realm, - * locking all those entities while it's running, but other smart contracts could potentially run in other realms in parallel. + * Everything is partitioned into realms so that each Solidity smart contract can access everything in just a single realm, + * locking all those entities while it's running, but other smart contracts could potentially run in other realms in parallel. * So realms allow Solidity to be parallelized somewhat, even though the language itself assumes everything is serial. */ public class HederaShardID implements Serializable { @@ -53,11 +53,11 @@ public HederaShardID(ShardID shardIDProtobuf) { /** * Generate a protobuf payload for this object - * @return {@link ShardID} + * @return {@link ShardID} */ public ShardID getProtobuf() { - + ShardID.Builder shardID = ShardID.newBuilder(); if (this.shardNum > 0) { shardID.setShardNum(this.shardNum); @@ -66,4 +66,4 @@ public ShardID getProtobuf() { return shardID.build(); } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaSignature.java b/sdk/src/main/java/com/hedera/sdk/common/HederaSignature.java index 21e57913a..c839b4094 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaSignature.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaSignature.java @@ -1,39 +1,36 @@ package com.hedera.sdk.common; import java.io.Serializable; - -import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import com.google.protobuf.ByteString; import com.hedera.sdk.common.HederaKeyPair.KeyType; import com.hederahashgraph.api.proto.java.Signature; /** - * A Signature corresponding to a Key. It is a sequence of bytes holding a public key signature from one of the three supported - * systems (ed25519, RSA-3072, ECDSA with p384). Or, it can be a list of signatures corresponding to a single threshold key. - * Or, it can be the ID of a smart contract instance, which is authorized to act as if it had a key. If an account has an ed25519 key associated with it, - * then the corresponding private key must sign any transaction to transfer cryptocurrency out of it. - * If it has a smart contract ID associated with it, then that smart contract is allowed to transfer cryptocurrency out of it. - * The smart contract doesn't actually have a key, and doesn't actually sign a transaction. - * But it's as if a virtual transaction were created, and the smart contract signed it with a private key. - * A key can also be a "threshold key", which means a list of M keys, any N of which must sign in order for the threshold signature to be considered valid. - * The keys within a threshold signature may themselves be threshold signatures, to allow complex signature requirements - * (this nesting is not supported in the currently, but will be supported in a future version of API). - * If a Signature message is missing the "signature" field, then this is considered to be a null signature. - * That is useful in cases such as threshold signatures, where some of the signatures can be null. - * The definition of Key uses mutual recursion, so it allows nesting that is arbitrarily deep. - * But the current API only accepts Key messages up to 3 levels deep, such as a list of threshold keys, - * each of which is a list of primitive keys. Therefore, the matching Signature will have the same limitation. - * This restriction may be relaxed in future versions of the API, to allow deeper nesting. + * A Signature corresponding to a Key. It is a sequence of bytes holding a public key signature from one of the three supported + * systems (ed25519, RSA-3072, ECDSA with p384). Or, it can be a list of signatures corresponding to a single threshold key. + * Or, it can be the ID of a smart contract instance, which is authorized to act as if it had a key. If an account has an ed25519 key associated with it, + * then the corresponding private key must sign any transaction to transfer cryptocurrency out of it. + * If it has a smart contract ID associated with it, then that smart contract is allowed to transfer cryptocurrency out of it. + * The smart contract doesn't actually have a key, and doesn't actually sign a transaction. + * But it's as if a virtual transaction were created, and the smart contract signed it with a private key. + * A key can also be a "threshold key", which means a list of M keys, any N of which must sign in order for the threshold signature to be considered valid. + * The keys within a threshold signature may themselves be threshold signatures, to allow complex signature requirements + * (this nesting is not supported in the currently, but will be supported in a future version of API). + * If a Signature message is missing the "signature" field, then this is considered to be a null signature. + * That is useful in cases such as threshold signatures, where some of the signatures can be null. + * The definition of Key uses mutual recursion, so it allows nesting that is arbitrarily deep. + * But the current API only accepts Key messages up to 3 levels deep, such as a list of threshold keys, + * each of which is a list of primitive keys. Therefore, the matching Signature will have the same limitation. + * This restriction may be relaxed in future versions of the API, to allow deeper nesting. */ public class HederaSignature implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaSignature.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaSignature.class); private static final long serialVersionUID = 1; private byte[] signature = new byte[0]; private KeyType signatureType = KeyType.NOTSET; private HederaSignatureThreshold thresholdSignature = null; private HederaSignatureList signatureList = null; - + /** * Default constructor */ @@ -58,7 +55,7 @@ public HederaSignature(KeyType signatureType, byte[] signature) { } /** * Constructor from a {@link HederaSignatureThreshold} - * @param thresholdSignature the threshold signature to create the signature from + * @param thresholdSignature the threshold signature to create the signature from */ public HederaSignature(HederaSignatureThreshold thresholdSignature) { @@ -68,7 +65,7 @@ public HederaSignature(HederaSignatureThreshold thresholdSignature) { } /** * Constructor from a {@link HederaSignatureList} - * @param signatureList the signature list to create the signature from + * @param signatureList the signature list to create the signature from */ public HederaSignature(HederaSignatureList signatureList) { @@ -78,7 +75,7 @@ public HederaSignature(HederaSignatureList signatureList) { } /** * Constructor from a {@link Signature} protobuf - * @param signature signature to create the signature from + * @param signature signature to create the signature from */ public HederaSignature(Signature signature) { @@ -109,9 +106,9 @@ public HederaSignature(Signature signature) { this.signatureType = KeyType.LIST; break; case SIGNATURE_NOT_SET: - throw new IllegalArgumentException("Signature not set in protobuf data."); + throw new IllegalArgumentException("Signature not set in protobuf data."); default: - throw new IllegalArgumentException("Signature type unrecognized, you may be using an old sdk."); + throw new IllegalArgumentException("Signature type unrecognized, you may be using an old sdk."); } } @@ -123,7 +120,7 @@ public KeyType getSignatureType() { return this.signatureType; } - /** + /** * Get the signature * note: this may be null * @return byte[] @@ -158,7 +155,7 @@ public Signature getProtobuf() { // Generates the protobuf payload for this class Signature.Builder signatureProtobuf = Signature.newBuilder(); - + switch (this.signatureType) { case ED25519: if (this.signature != null) { @@ -195,7 +192,7 @@ public Signature getProtobuf() { } break; case NOTSET: - throw new IllegalArgumentException("Signature type not set, unable to generate data."); + throw new IllegalArgumentException("Signature type not set, unable to generate data."); } return signatureProtobuf.build(); diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaSignatureList.java b/sdk/src/main/java/com/hedera/sdk/common/HederaSignatureList.java index e0085df46..a7abbee8c 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaSignatureList.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaSignatureList.java @@ -3,10 +3,7 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.List; - -import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import com.hederahashgraph.api.proto.java.Signature; import com.hederahashgraph.api.proto.java.SignatureList;; /** @@ -14,7 +11,7 @@ * */ public class HederaSignatureList implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaSignatureList.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaSignatureList.class); private static final long serialVersionUID = 1; /** * the List of {@link HederaSignature} @@ -47,7 +44,7 @@ public HederaSignatureList(SignatureList protobuf) { // convert a protobuf payload into class data this.signatures.clear(); - + for (Signature signature : protobuf.getSigsList()) { this.signatures.add(new HederaSignature(signature)); } @@ -76,7 +73,7 @@ public void addSignature(HederaSignature signature) { this.signatures.add(signature); } - /** + /** * Delete a {@link HederaSignature} from the list * @param signature {@link HederaSignature} * @return true if found and deleted diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaSignatureThreshold.java b/sdk/src/main/java/com/hedera/sdk/common/HederaSignatureThreshold.java index e9b08be76..d1764c557 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaSignatureThreshold.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaSignatureThreshold.java @@ -4,12 +4,9 @@ import com.hederahashgraph.api.proto.java.Signature; import com.hederahashgraph.api.proto.java.SignatureList; import com.hederahashgraph.api.proto.java.ThresholdSignature; - import java.io.Serializable; import java.util.ArrayList; import java.util.List; - -import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** @@ -18,7 +15,7 @@ * */ public class HederaSignatureThreshold implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaSignatureThreshold.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaSignatureThreshold.class); private static final long serialVersionUID = 1; /** * The list of {@link HederaSignature} initially empty @@ -38,7 +35,7 @@ public HederaSignatureThreshold() { public HederaSignatureThreshold(List signatures) { - + for (HederaSignature hederaSignature : signatures) { this.signatures.add(hederaSignature); } @@ -52,7 +49,7 @@ public HederaSignatureThreshold(ThresholdSignature thresholdSignature) { // convert a protobuf payload into class data this.signatures.clear(); - + SignatureList protoSigs = thresholdSignature.getSigs(); for (Signature signature : protoSigs.getSigsList()) { @@ -69,7 +66,7 @@ public ThresholdSignature getProtobuf() { // Generates the protobuf payload for this class ThresholdSignature.Builder signaturesProtobuf = ThresholdSignature.newBuilder(); SignatureList protoKeyList; - + if (!this.signatures.isEmpty()) { protoKeyList = Utilities.getProtoSignatureList(this.signatures); signaturesProtobuf.setSigs(protoKeyList); @@ -77,7 +74,7 @@ public ThresholdSignature getProtobuf() { return null; } - + return signaturesProtobuf.build(); } diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaTimeStamp.java b/sdk/src/main/java/com/hedera/sdk/common/HederaTimeStamp.java index 99b3b58b2..43ba8ee8f 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaTimeStamp.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaTimeStamp.java @@ -2,23 +2,21 @@ import java.io.Serializable; import java.time.Instant; -import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import com.hederahashgraph.api.proto.java.Timestamp; /** - * An exact date and time. This is the same data structure as the protobuf Timestamp.proto + * An exact date and time. This is the same data structure as the protobuf Timestamp.proto * (see the comments in https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto) */ public class HederaTimeStamp implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaTimeStamp.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaTimeStamp.class); private static final long serialVersionUID = 1; /** * Time value, defaults to Now -10s to account for possible minor time differences between client and node. * An earlier time is better than a later one. */ - public Instant time = Instant.now().minusSeconds(10); + public Instant time = Instant.now().minusSeconds(10); /** * Default constructor */ @@ -35,7 +33,7 @@ public HederaTimeStamp(Instant time) { this.time = time; } - /** + /** * Constructor from seconds and nanos * @param seconds the seconds to construct from * @param nanos the nanos to construct from @@ -47,7 +45,7 @@ public HederaTimeStamp(long seconds, int nanos) { this.time = this.time.plusNanos(nanos); } - + /** * Construct from a {@link Timestamp} protobuf * @param timestampProtobuf the timestamp in protobuf format @@ -61,7 +59,7 @@ public HederaTimeStamp(Timestamp timestampProtobuf) { } /** - * Generate a {@link Timestamp} protobuf payload for this object + * Generate a {@link Timestamp} protobuf payload for this object * @return {@link Timestamp} */ public Timestamp getProtobuf() { @@ -71,17 +69,17 @@ public Timestamp getProtobuf() { .setNanos(this.time.getNano()).build(); } /** - * Returns the seconds element of the timestamp + * Returns the seconds element of the timestamp * @return {@link Long} the number of seconds */ public long seconds() { return this.time.getEpochSecond(); } /** - * Returns the nanos element of the timestamp + * Returns the nanos element of the timestamp * @return {@link int} the number of nanos */ public int nanos() { return this.time.getNano(); } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionAndQueryDefaults.java b/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionAndQueryDefaults.java index 9ca6084db..8aa49786f 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionAndQueryDefaults.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionAndQueryDefaults.java @@ -1,14 +1,12 @@ package com.hedera.sdk.common; -import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import com.hedera.sdk.common.HederaAccountID; import com.hedera.sdk.common.HederaDuration; import com.hedera.sdk.node.HederaNode; public class HederaTransactionAndQueryDefaults { - final Logger logger = LoggerFactory.getLogger(HederaTransactionAndQueryDefaults.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaTransactionAndQueryDefaults.class); // set transport public HederaNode node = new HederaNode(); public HederaAccountID payingAccountID = new HederaAccountID(); diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionID.java b/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionID.java index 83ccee7f4..3e1869a0f 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionID.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionID.java @@ -1,23 +1,20 @@ package com.hedera.sdk.common; import java.io.Serializable; - -import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import com.hederahashgraph.api.proto.java.TransactionID; /** - * The ID for a transaction. This is used for retrieving receipts and records for a transaction, for appending to a file right after creating it, - * for instantiating a smart contract with bytecode in a file just created, and internally by the network for detecting when duplicate - * transactions are submitted. A user might get a transaction processed faster by submitting it to N nodes, each with a different node account, - * but all with the same TransactionID. Then, the transaction will take effect when the first of all those nodes submits the transaction and it - * reaches consensus. The other transactions will not take effect. So this could make the transaction take effect faster, if any given node - * might be slow. However, the full transaction fee is charged for each transaction, so the total fee is N times as much if the transaction + * The ID for a transaction. This is used for retrieving receipts and records for a transaction, for appending to a file right after creating it, + * for instantiating a smart contract with bytecode in a file just created, and internally by the network for detecting when duplicate + * transactions are submitted. A user might get a transaction processed faster by submitting it to N nodes, each with a different node account, + * but all with the same TransactionID. Then, the transaction will take effect when the first of all those nodes submits the transaction and it + * reaches consensus. The other transactions will not take effect. So this could make the transaction take effect faster, if any given node + * might be slow. However, the full transaction fee is charged for each transaction, so the total fee is N times as much if the transaction * is sent to N nodes. */ public class HederaTransactionID implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaTimeStamp.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaTimeStamp.class); private static final long serialVersionUID = 1; /** @@ -73,17 +70,17 @@ public HederaTransactionID(TransactionID transactionIDProtobuf) { } /** - * Generate a {@link HederaTransactionID} protobuf payload for this object + * Generate a {@link HederaTransactionID} protobuf payload for this object * @return {@link TransactionID} */ public TransactionID getProtobuf() { TransactionID.Builder transactionID = TransactionID.newBuilder(); - + transactionID.setAccountID(this.accountID.getProtobuf()); transactionID.setTransactionValidStart(this.transactionValidStart.getProtobuf()); - + return transactionID.build(); } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionReceipt.java b/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionReceipt.java index 45fd9a33f..ba9251179 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionReceipt.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionReceipt.java @@ -38,7 +38,7 @@ public class HederaTransactionReceipt implements Serializable { * initially null */ public HederaContractID contractID = null; - + /** * Default constructor */ @@ -54,7 +54,7 @@ public HederaTransactionReceipt() { * @param fileID a {@link HederaFileID} * @param contractID a {@link HederaContractID} */ - public HederaTransactionReceipt(ResponseCodeEnum nodePrecheck, ResponseCodeEnum transactionStatus, HederaAccountID accountID, HederaFileID fileID, HederaContractID contractID) { + public HederaTransactionReceipt(ResponseCodeEnum nodePrecheck, ResponseCodeEnum transactionStatus, HederaAccountID accountID, HederaFileID fileID, HederaContractID contractID) { this.transactionStatus = transactionStatus; this.nodePrecheck = nodePrecheck; @@ -71,7 +71,7 @@ public HederaTransactionReceipt(ResponseCodeEnum nodePrecheck, ResponseCodeEnum * @param fileID a {@link HederaFileID} * @param contractID a {@link HederaContractID} */ - public HederaTransactionReceipt(ResponseCodeEnum transactionStatus, HederaAccountID accountID, HederaFileID fileID, HederaContractID contractID) { + public HederaTransactionReceipt(ResponseCodeEnum transactionStatus, HederaAccountID accountID, HederaFileID fileID, HederaContractID contractID) { this.transactionStatus = transactionStatus; this.accountID = accountID; @@ -79,17 +79,17 @@ public HederaTransactionReceipt(ResponseCodeEnum transactionStatus, HederaAccoun this.contractID = contractID; } - + /** * Construct from a {@link TransactionGetReceiptResponse} protobuf stream * @param receiptResponse the {@link TransactionGetReceiptResponse} */ public HederaTransactionReceipt(TransactionGetReceiptResponse receiptResponse) { - + this.nodePrecheck = receiptResponse.getHeader().getNodeTransactionPrecheckCode(); this.transactionStatus = receiptResponse.getReceipt().getStatus(); - + if (receiptResponse.getReceipt().hasAccountID()) { this.accountID = new HederaAccountID(receiptResponse.getReceipt().getAccountID()); } else { @@ -111,9 +111,9 @@ public HederaTransactionReceipt(TransactionGetReceiptResponse receiptResponse) { */ public HederaTransactionReceipt(TransactionReceipt receipt) { - + this.transactionStatus = receipt.getStatus(); - + if (receipt.hasAccountID()) { this.accountID = new HederaAccountID(receipt.getAccountID()); } else { @@ -132,13 +132,13 @@ public HederaTransactionReceipt(TransactionReceipt receipt) { /** * Generate a {@link TransactionReceipt} protobuf payload for this object - * @return {@link TransactionReceipt} + * @return {@link TransactionReceipt} */ public TransactionReceipt getProtobuf() { - + TransactionReceipt.Builder transactionReceipt = TransactionReceipt.newBuilder(); - + if (this.accountID != null) { transactionReceipt.setAccountID(this.accountID.getProtobuf()); } @@ -150,16 +150,16 @@ public TransactionReceipt getProtobuf() { } transactionReceipt.setStatus(this.transactionStatus); - + return transactionReceipt.build(); } - /** + /** * Gets a receipt for a given transaction ID * @param transactionID the transactionID * @param node the node - * @throws InterruptedException in the event of a node communication failure + * @throws InterruptedException in the event of a node communication failure */ public HederaTransactionReceipt(HederaTransactionID transactionID, HederaNode node) throws InterruptedException { @@ -175,4 +175,4 @@ public HederaTransactionReceipt(HederaTransactionID transactionID, HederaNode no this.transactionStatus = ResponseCodeEnum.UNKNOWN; } } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionRecord.java b/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionRecord.java index 52981e252..bffaac6ff 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionRecord.java +++ b/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionRecord.java @@ -61,7 +61,7 @@ private enum BodyType { * transaction transfer list, initially null */ public List transferList = new ArrayList(); - + public void setBodyContractCallResult() { this.bodyType = BodyType.CONTRACTCALLRESULT; } @@ -116,25 +116,22 @@ public HederaTransactionRecord(TransactionRecord transactionRecordProtobuf) { for (int i=0; i < transferListPB.getAccountAmountsCount(); i++) { HederaAccountAmount accountAmount = new HederaAccountAmount(transferListPB.getAccountAmounts(i)); this.transferList.add(accountAmount); - } + } } - - - } /** - * Generate a protobuf payload for this object + * Generate a protobuf payload for this object * @return {@link TransactionRecord} */ public TransactionRecord getProtobuf() { - + TransactionRecord.Builder transactionRecord = TransactionRecord.newBuilder(); if (this.consensusTimeStamp != null) { transactionRecord.setConsensusTimestamp(this.consensusTimeStamp.getProtobuf()); } - + switch (this.bodyType) { case CONTRACTCALLRESULT: transactionRecord.setContractCallResult(contractCallResult.getProtobuf()); @@ -156,21 +153,24 @@ public TransactionRecord getProtobuf() { transactionRecord.setTransactionFee(this.transactionFee); transactionRecord.setTransactionHash(ByteString.copyFrom(this.transactionHash)); transactionRecord.setTransactionID(this.transactionId.getProtobuf()); - + return transactionRecord.build(); } - /** + /** * Gets a record for a transaction * @param transactionID the transaction ID against which to get the record * @param queryFee the fee being paid for the query * @param txQueryDefaults - default parameters for running the query (inc. node) * @throws Exception in the event of an error - public HederaTransactionRecord(HederaTransactionID transactionID, long queryFee, HederaTransactionAndQueryDefaults txQueryDefaults) throws Exception { + */ + public HederaTransactionRecord(HederaTransactionID transactionID, Long queryFee, HederaTransactionAndQueryDefaults txQueryDefaults) throws Exception { HederaTransaction transaction = new HederaTransaction(); + Utilities.throwIfNull("txQueryDefaults", txQueryDefaults); + Utilities.throwIfNull("txQueryDefaults.node", txQueryDefaults.node); HederaTransaction payment = new HederaTransaction(txQueryDefaults, queryFee); - + transaction.setNode(txQueryDefaults.node); - + if (transaction.getRecord(payment, transactionID, QueryResponseType.ANSWER_ONLY)) { this.consensusTimeStamp = transaction.transactionRecord().consensusTimeStamp; this.contractCallResult = transaction.transactionRecord().contractCallResult; @@ -183,19 +183,19 @@ public HederaTransactionRecord(HederaTransactionID transactionID, long queryFee, } } // - /** + /** * Gets a fast (free) record for a transaction (lasts 180 seconds) * @param transactionID the transaction ID against which to get the record * @param txQueryDefaults - default parameters for running the query (inc. node) - * @throws Exception in the event of an error + * @throws Exception in the event of an error */ public HederaTransactionRecord(HederaTransactionID transactionID, HederaTransactionAndQueryDefaults txQueryDefaults) throws Exception { HederaTransaction transaction = new HederaTransaction(); Utilities.throwIfNull("txQueryDefaults", txQueryDefaults); Utilities.throwIfNull("txQueryDefaults.node", txQueryDefaults.node); - + transaction.setNode(txQueryDefaults.node); - + if (transaction.getFastRecord(transactionID, QueryResponseType.ANSWER_ONLY)) { this.consensusTimeStamp = transaction.transactionRecord().consensusTimeStamp; this.contractCallResult = transaction.transactionRecord().contractCallResult; @@ -207,4 +207,4 @@ public HederaTransactionRecord(HederaTransactionID transactionID, HederaTransact this.transactionReceipt = transaction.transactionRecord().transactionReceipt; } } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/common/Utilities.java b/sdk/src/main/java/com/hedera/sdk/common/Utilities.java index e7ef2ae4b..001232ee3 100644 --- a/sdk/src/main/java/com/hedera/sdk/common/Utilities.java +++ b/sdk/src/main/java/com/hedera/sdk/common/Utilities.java @@ -8,10 +8,7 @@ import java.security.SecureRandom; import java.util.List; import java.util.Random; - -import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import com.hedera.sdk.common.HederaKeyPair.KeyType; import com.hedera.sdk.node.HederaNode; import com.hederahashgraph.api.proto.java.KeyList; @@ -19,7 +16,7 @@ import com.hederahashgraph.api.proto.java.SignatureList; public class Utilities { - final static Logger logger = LoggerFactory.getLogger(Utilities.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(Utilities.class); /** * Serializes an object into a byte array * @param object any object which is serializable @@ -28,7 +25,6 @@ public class Utilities { */ public static byte[] serialize(Object object) throws IOException { - byte[] serialData = new byte[0]; // Serialise ByteArrayOutputStream bos = new ByteArrayOutputStream(); @@ -49,7 +45,7 @@ public static byte[] serialize(Object object) throws IOException { public static Object deserialize(byte[] serialData) throws IOException, ClassNotFoundException { Object returnObject = new Object(); - + // de-serialise ByteArrayInputStream bis = new ByteArrayInputStream(serialData); ObjectInputStream oInputStream = new ObjectInputStream(bis); @@ -67,13 +63,13 @@ public static Object deserialize(byte[] serialData) throws IOException, ClassNot public static long getLongRandom() { Random random = new SecureRandom(); - byte[] randomInt64 = new byte[16]; // 16 bytes = 64 bits = Int64 + byte[] randomInt64 = new byte[16]; // 16 bytes = 64 bits = Int64 random.nextBytes(randomInt64); return random.nextLong(); } /** - * Helper function to generate a {@link HederaKeySignature} for a given + * Helper function to generate a {@link HederaKeySignature} for a given * payload (body) and keypair * @param payload the payload to sign * @param keyPair the keypair to use for signing @@ -89,7 +85,7 @@ public static HederaKeySignature getKeySignature(byte[] payload, HederaKeyPair k return new HederaKeySignature(keyPair.getKeyType(), keyPair.getPublicKeyEncoded(), signature.getSignature()); } /** - * Helper function to generate a {@link HederaKeySignature} for a given + * Helper function to generate a {@link HederaKeySignature} for a given * payload (body) key type, private and public key * @param payload the payload to sign * @param keyType the type of key @@ -104,7 +100,7 @@ public static HederaKeySignature getKeySignature(byte[] payload, KeyType keyType return getKeySignature(payload, keyPair); } /** - * Helper function to generate a {@link HederaSignature} for a given + * Helper function to generate a {@link HederaSignature} for a given * payload (body) and keypair * @param payload the payload to sign * @param keyPair the keypair to use for the signature @@ -120,7 +116,7 @@ public static HederaSignature getSignature(byte[] payload, HederaKeyPair keyPair return new HederaSignature(keyPair.getKeyType(), signature.getSignature()); } /** - * Helper function to generate a {@link HederaSignature} for a given + * Helper function to generate a {@link HederaSignature} for a given * payload (body) key type and private key * @param payload the payload to sign * @param keyType the type of key @@ -149,10 +145,10 @@ public static HederaTransactionReceipt getReceipt (HederaTransactionID hederaTra final int DELAY_BASE = 550; // base delay in milliseconds final int DELAY_INCREASE = 0; // this determines how delay increases between calls. It is simply added to sleepTime between each call - + return getReceipt(hederaTransactionID, node, MAX_CALL_COUNT, DELAY_BASE, DELAY_INCREASE); } - + /** * retrieves a receipt for a transaction * returns the last {@link HederaTransactionReceipt} received. @@ -165,16 +161,16 @@ public static HederaTransactionReceipt getReceipt (HederaTransactionID hederaTra * @throws InterruptedException in the event of a node communication issue */ public static HederaTransactionReceipt getReceipt (HederaTransactionID hederaTransactionID, HederaNode node, int maxRetries, int firstDelay, int increaseDelay) throws InterruptedException { - final Logger logger = LoggerFactory.getLogger(HederaTransactionReceipt.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaTransactionReceipt.class); long sleepTime = firstDelay; boolean keepGoing = true; - + int callCount = 1; HederaTransactionReceipt receipt = new HederaTransactionReceipt(); receipt.transactionStatus = ResponseCodeEnum.UNKNOWN; while ((callCount <= maxRetries) && keepGoing) { - + Thread.sleep(sleepTime); sleepTime += increaseDelay; logger.info("Fetching receipt"); @@ -305,7 +301,7 @@ public static HederaTransactionReceipt getReceipt (HederaTransactionID hederaTra logger.info("precheck=INVALID_SOLIDITY_ID"); keepGoing = false; break; - case INVALID_TRANSACTION: + case INVALID_TRANSACTION: // do nothing logger.info("precheck=INVALID_TRANSACTION"); break; @@ -329,7 +325,7 @@ public static HederaTransactionReceipt getReceipt (HederaTransactionID hederaTra logger.info("precheck=KEY_NOT_PROVIDED"); keepGoing = false; break; - case KEY_REQUIRED: + case KEY_REQUIRED: logger.info("precheck=KEY_REQUIRED"); keepGoing = false; break; @@ -337,7 +333,7 @@ public static HederaTransactionReceipt getReceipt (HederaTransactionID hederaTra logger.info("precheck=LOCAL_CALL_MODIFICATION_EXCEPTION"); keepGoing = false; break; - case MEMO_TOO_LONG: + case MEMO_TOO_LONG: logger.info("precheck=MEMO_TOO_LONG"); keepGoing = false; break; @@ -375,7 +371,7 @@ public static HederaTransactionReceipt getReceipt (HederaTransactionID hederaTra logger.info("precheck=RECEIPT_NOT_FOUND"); keepGoing = false; break; - case RECORD_NOT_FOUND: + case RECORD_NOT_FOUND: logger.info("precheck=RECORD_NOT_FOUND"); keepGoing = false; break; @@ -397,7 +393,7 @@ public static HederaTransactionReceipt getReceipt (HederaTransactionID hederaTra logger.info("precheck=UNKNOWN"); keepGoing = false; break; - case UNRECOGNIZED: + case UNRECOGNIZED: logger.info("precheck=UNRECOGNIZED"); keepGoing = false; break; @@ -407,58 +403,59 @@ public static HederaTransactionReceipt getReceipt (HederaTransactionID hederaTra } public static KeyList getProtoKeyList(List keys) { - + com.hederahashgraph.api.proto.java.KeyList.Builder keyListBuilder = KeyList.newBuilder(); - + if (!keys.isEmpty()) { for (HederaKeyPair key : keys) { keyListBuilder.addKeys(key.getProtobuf()); } } return keyListBuilder.build(); - + } - + public static KeyList getProtoKeyFromKeySigList(List keySignatures) { - + com.hederahashgraph.api.proto.java.KeyList.Builder keyListBuilder = KeyList.newBuilder(); - + if (!keySignatures.isEmpty()) { for (HederaKeySignature keySig : keySignatures) { keyListBuilder.addKeys(keySig.getKeyProtobuf()); } } - + return keyListBuilder.build(); - + } - + public static SignatureList getProtoSignatureFromKeySigList(List keySignatures) { - + com.hederahashgraph.api.proto.java.SignatureList.Builder sigListBuilder = SignatureList.newBuilder(); - + if (!keySignatures.isEmpty()) { for (HederaKeySignature keySig : keySignatures) { sigListBuilder.addSigs(keySig.getSignatureProtobuf()); } } - + return sigListBuilder.build(); - + } public static SignatureList getProtoSignatureList(List signatures) { com.hederahashgraph.api.proto.java.SignatureList.Builder sigListBuilder = SignatureList.newBuilder(); - + if (!signatures.isEmpty()) { for (HederaSignature sig : signatures) { sigListBuilder.addSigs(sig.getProtobuf()); } } - + return sigListBuilder.build(); } - + public static void printResponseFailure(String location) { + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(Utilities.class); logger.error("***** " + location + " FAILED to get response *****"); } /** @@ -468,8 +465,9 @@ public static void printResponseFailure(String location) { * @throws IllegalStateException thrown if the object is null */ public static void throwIfNull(String objectType, Object object) { - if (object == null) { + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(Utilities.class); + if (object == null) { String error = objectType + " is null"; logger.error(error); throw new IllegalStateException(error); @@ -482,8 +480,9 @@ public static void throwIfNull(String objectType, Object object) { * @throws IllegalStateException thrown if the accountID is invalid */ public static void throwIfAccountIDInvalid(String accountType, HederaAccountID accountID) { - if (accountID == null) { + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(Utilities.class); + if (accountID == null) { String error = accountType + " AccountID is null."; logger.error(error); throw new IllegalStateException(error); @@ -496,4 +495,4 @@ public static void throwIfAccountIDInvalid(String accountType, HederaAccountID a } } } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/contract/HederaContract.java b/sdk/src/main/java/com/hedera/sdk/contract/HederaContract.java index fd74f2305..e4f72e3f8 100644 --- a/sdk/src/main/java/com/hedera/sdk/contract/HederaContract.java +++ b/sdk/src/main/java/com/hedera/sdk/contract/HederaContract.java @@ -3,10 +3,7 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.List; - -import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import com.google.protobuf.ByteString; import com.hedera.sdk.common.HederaAccountID; import com.hedera.sdk.common.HederaContractID; @@ -46,10 +43,10 @@ import com.hederahashgraph.api.proto.java.ContractGetInfoResponse.ContractInfo; /** - * This class manages all aspects of interacting with a Smart Contract on Hedera Hashgraph + * This class manages all aspects of interacting with a Smart Contract on Hedera Hashgraph */ public class HederaContract implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaContract.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaContract.class); private static final long serialVersionUID = 1; private HederaNode node = null; private ResponseCodeEnum precheckResult = ResponseCodeEnum.UNKNOWN; @@ -70,7 +67,7 @@ public class HederaContract implements Serializable { * The {@link HederaTransactionID} of the last transaction to be run here */ public HederaTransactionID hederaTransactionID = null; - /** + /** * the shard number for the smart contract */ public long shardNum = 0; @@ -104,9 +101,9 @@ public class HederaContract implements Serializable { /** * The {@link HederaKeyPair} representing the contract's administration key * initially null - * the state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. - * If this is null, then such modifications are not possible, and there is no administrator that can override the normal - * operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to + * the state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. + * If this is null, then such modifications are not possible, and there is no administrator that can override the normal + * operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to * authorize changing the admin keys, so there can never be any admin keys for that instance. */ public HederaKeyPair adminKey = null; @@ -119,7 +116,7 @@ public class HederaContract implements Serializable { */ public long amount = 0; /** - * Parameters supplied when running a function + * Parameters supplied when running a function * (in the solidity format) */ public byte[] functionParameters = new byte[0]; @@ -134,10 +131,10 @@ public class HederaContract implements Serializable { */ public long initialBalance = 0; /** - * ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an invalid account, - * or is an account that isn't a node, then this account is automatically proxy staked to a node chosen by the network, - * but without earning payments. If the proxyAccountID account refuses to accept proxy staking at the given fraction, - * or if it is not currently running a node, then it will behave as if both proxyAccountID and proxyFraction were null. + * ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an invalid account, + * or is an account that isn't a node, then this account is automatically proxy staked to a node chosen by the network, + * but without earning payments. If the proxyAccountID account refuses to accept proxy staking at the given fraction, + * or if it is not currently running a node, then it will behave as if both proxyAccountID and proxyFraction were null. * initially null */ public HederaAccountID proxyAccountID = null; @@ -158,7 +155,7 @@ public class HederaContract implements Serializable { */ public HederaTimeStamp expirationTime = null; /** - * Parameters supplied when creating a smart contract + * Parameters supplied when creating a smart contract * (in the solidity format) */ public byte[] constructionParameters = new byte[0]; @@ -180,7 +177,7 @@ public String getSolidityContractAccountID() { public long getStorage() { return this.storage; } - /** + /** * Gets the bytecode for the smart contract * @return byte[] */ @@ -195,7 +192,7 @@ public List getTransactionRecords() { return transactionRecords; } /** - * The last result of running a local smart contract function + * The last result of running a local smart contract function * Note: May be null * @return {@link HederaContractFunctionResult} */ @@ -283,7 +280,7 @@ public HederaTransactionResult call(HederaTransactionID transactionID, HederaAcc , this.getCallTransactionBody()); // add the signatures transaction.signatureList = sigsForTransaction; - + // issue the transaction Utilities.throwIfNull("Node", this.node); HederaTransactionResult hederaTransactionResult = this.node.contractCall(transaction); @@ -303,8 +300,8 @@ public HederaTransactionResult call(HederaTransactionID transactionID, HederaAcc * @param memo String memo to include in the transaction * @return {@link TransactionBody} */ - public TransactionBody bodyToSignForCall(HederaTransactionID transactionID, HederaAccountID nodeAccount, - long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, + public TransactionBody bodyToSignForCall(HederaTransactionID transactionID, HederaAccountID nodeAccount, + long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, String memo) { HederaTransactionBody transactionBody = new HederaTransactionBody( @@ -327,7 +324,7 @@ public TransactionBody bodyToSignForCall(HederaTransactionID transactionID, Hede */ public ContractCallTransactionBody getCallTransactionBody() { - + ContractCallTransactionBody.Builder transactionBody = ContractCallTransactionBody.newBuilder(); transactionBody.setAmount(this.amount); @@ -335,13 +332,13 @@ public ContractCallTransactionBody getCallTransactionBody() { ByteString parameters = ByteString.copyFrom(this.functionParameters); transactionBody.setFunctionParameters(parameters); transactionBody.setGas(this.gas); - + return transactionBody.build(); } /** - * This method runs a transaction to create a smart contract instance + * This method runs a transaction to create a smart contract instance * @param transactionID the {@link HederaTransactionID} for the transaction * @param nodeAccount the {@link HederaAccountID} of the account of the node to which the transaction is submitted * @param transactionFee the fee paid by the client to run the transaction @@ -369,7 +366,7 @@ public HederaTransactionResult create(HederaTransactionID transactionID, HederaA , this.getCreateTransactionBody()); // add the signatures transaction.signatureList = sigsForTransaction; - + // issue the transaction Utilities.throwIfNull("Node", this.node); HederaTransactionResult hederaTransactionResult = this.node.contractCreate(transaction); @@ -389,8 +386,8 @@ public HederaTransactionResult create(HederaTransactionID transactionID, HederaA * @param memo String memo to include in the transaction * @return {@link TransactionBody} */ - public TransactionBody bodyToSignForCreate(HederaTransactionID transactionID, HederaAccountID nodeAccount, - long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, + public TransactionBody bodyToSignForCreate(HederaTransactionID transactionID, HederaAccountID nodeAccount, + long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, String memo) { HederaTransactionBody transactionBody = new HederaTransactionBody( @@ -413,7 +410,7 @@ public TransactionBody bodyToSignForCreate(HederaTransactionID transactionID, He */ public ContractCreateTransactionBody getCreateTransactionBody() { - + ContractCreateTransactionBody.Builder transactionBody = ContractCreateTransactionBody.newBuilder(); if (this.adminKey != null) { @@ -434,15 +431,15 @@ public ContractCreateTransactionBody getCreateTransactionBody() { if (this.realmNum != -1) { transactionBody.setRealmID(new HederaRealmID(this.shardNum, this.realmNum).getProtobuf()); } - transactionBody.setShardID(new HederaShardID(this.shardNum).getProtobuf()); - - + transactionBody.setShardID(new HederaShardID(this.shardNum).getProtobuf()); + + return transactionBody.build(); } /** - * This method runs a transaction to update an existing smart contract instance + * This method runs a transaction to update an existing smart contract instance * @param transactionID the {@link HederaTransactionID} for the transaction * @param nodeAccount the {@link HederaAccountID} of the account of the node to which the transaction is submitted * @param transactionFee the fee paid by the client to run the transaction @@ -456,7 +453,7 @@ public ContractCreateTransactionBody getCreateTransactionBody() { public HederaTransactionResult update(HederaTransactionID transactionID, HederaAccountID nodeAccount , long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord , String memo, HederaSignatureList sigsForTransaction) throws InterruptedException { - + // build the body HederaTransaction transaction = new HederaTransaction(); transaction.body = new HederaTransactionBody( @@ -470,7 +467,7 @@ public HederaTransactionResult update(HederaTransactionID transactionID, HederaA , this.getUpdateTransactionBody()); // add the signatures transaction.signatureList = sigsForTransaction; - + // issue the transaction Utilities.throwIfNull("Node", this.node); HederaTransactionResult hederaTransactionResult = this.node.contractUpdate(transaction); @@ -490,8 +487,8 @@ public HederaTransactionResult update(HederaTransactionID transactionID, HederaA * @param memo String memo to include in the transaction * @return {@link TransactionBody} */ - public TransactionBody bodyToSignForUpdate(HederaTransactionID transactionID, HederaAccountID nodeAccount, - long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, + public TransactionBody bodyToSignForUpdate(HederaTransactionID transactionID, HederaAccountID nodeAccount, + long transactionFee, HederaDuration transactionValidDuration, boolean generateRecord, String memo) { HederaTransactionBody transactionBody = new HederaTransactionBody( @@ -513,7 +510,7 @@ public TransactionBody bodyToSignForUpdate(HederaTransactionID transactionID, He */ public ContractUpdateTransactionBody getUpdateTransactionBody() { - + ContractUpdateTransactionBody.Builder transactionBody = ContractUpdateTransactionBody.newBuilder(); transactionBody.setContractID(new HederaContractID(this.shardNum, this.realmNum, this.contractNum).getProtobuf()); @@ -530,13 +527,13 @@ public ContractUpdateTransactionBody getUpdateTransactionBody() { if (this.proxyAccountID != null) { transactionBody.setProxyAccountID(this.proxyAccountID.getProtobuf()); } - + return transactionBody.build(); } /** - * Runs a query to get the bytecode for a given smart contract + * Runs a query to get the bytecode for a given smart contract * If successful, the method populates the bytecode, cost and stateProof for this object depending on the type of answer requested * @param payment a {@link HederaTransaction} message to indicate how this query will be paid for, this can be null for Cost queries * @param responseType the type of response requested from the query @@ -545,7 +542,7 @@ public ContractUpdateTransactionBody getUpdateTransactionBody() { */ public boolean getByteCode(HederaTransaction payment, HederaQueryHeader.QueryResponseType responseType) throws InterruptedException { boolean result = true; - + // build the query // Header @@ -554,18 +551,18 @@ public boolean getByteCode(HederaTransaction payment, HederaQueryHeader.QueryRes queryHeader.payment = payment; queryHeader.responseType = responseType; } - + // get bytecode query ContractGetBytecodeQuery.Builder getInfoQuery = ContractGetBytecodeQuery.newBuilder(); getInfoQuery.setContractID(new HederaContractID(this.shardNum, this.realmNum, this.contractNum).getProtobuf()); getInfoQuery.setHeader(queryHeader.getProtobuf()); - - + + // the query itself HederaQuery query = new HederaQuery(); query.queryType = QueryType.CONTRACTGETBYTECODE; query.queryData = getInfoQuery.build(); - + // query now set, send to network Utilities.throwIfNull("Node", this.node); Response response = this.node.getContractByteCode(query); @@ -579,13 +576,13 @@ public boolean getByteCode(HederaTransaction payment, HederaQueryHeader.QueryRes ResponseHeader responseHeader = getInfoResponse.getHeader(); this.precheckResult = responseHeader.getNodeTransactionPrecheckCode(); - + if (this.precheckResult == ResponseCodeEnum.OK) { // cost this.cost = responseHeader.getCost(); //state proof this.stateProof = responseHeader.getStateProof().toByteArray(); - + this.byteCode = getInfoResponse.getBytecode().toByteArray(); } else { result = false; @@ -641,7 +638,7 @@ public boolean getByteCodeCostAnswerStateProof() throws InterruptedException { } /** - * Runs a query to get information for a given smart contract + * Runs a query to get information for a given smart contract * If successful, the method populates the properties this object depending on the type of answer requested * @param payment a {@link HederaTransaction} message to indicate how this query will be paid for, this can be null for Cost queries * @param responseType the type of response requested from the query @@ -650,26 +647,26 @@ public boolean getByteCodeCostAnswerStateProof() throws InterruptedException { */ public boolean getInfo(HederaTransaction payment, HederaQueryHeader.QueryResponseType responseType) throws InterruptedException { boolean result = true; - + // build the query // Header - HederaQueryHeader queryHeader = new HederaQueryHeader(); + HederaQueryHeader queryHeader = new HederaQueryHeader(); if (payment != null) { queryHeader.payment = payment; queryHeader.responseType = responseType; } - + // get info query ContractGetInfoQuery.Builder getInfoQuery = ContractGetInfoQuery.newBuilder(); getInfoQuery.setContractID(new HederaContractID(this.shardNum, this.realmNum, this.contractNum).getProtobuf()); getInfoQuery.setHeader(queryHeader.getProtobuf()); - + // the query itself HederaQuery query = new HederaQuery(); query.queryType = QueryType.CONTRACTGETINFO; query.queryData = getInfoQuery.build(); - + // query now set, send to network Utilities.throwIfNull("Node", this.node); Response response = this.node.getContractInfo(query); @@ -678,19 +675,19 @@ public boolean getInfo(HederaTransaction payment, HederaQueryHeader.QueryRespons return false; } ContractGetInfoResponse.Builder getInfoResponse = response.getContractGetInfo().toBuilder(); - + // check response header first ResponseHeader.Builder responseHeader = getInfoResponse.getHeaderBuilder(); this.precheckResult = responseHeader.getNodeTransactionPrecheckCode(); - + if (this.precheckResult == ResponseCodeEnum.OK) { ContractInfo info = getInfoResponse.getContractInfo(); // cost this.cost = responseHeader.getCost(); //state proof this.stateProof = responseHeader.getStateProof().toByteArray(); - + this.realmNum = info.getContractID().getRealmNum(); this.shardNum = info.getContractID().getShardNum(); this.contractNum = info.getContractID().getContractNum(); @@ -698,13 +695,13 @@ public boolean getInfo(HederaTransaction payment, HederaQueryHeader.QueryRespons this.contractAccountShardNum = info.getAccountID().getShardNum(); this.contractAccountRealmNum = info.getAccountID().getRealmNum(); this.contractAccountAccountNum = info.getAccountID().getAccountNum(); - + if (info.hasAdminKey()) { this.adminKey = new HederaKeyPair(info.getAdminKey()); } else { this.adminKey = null; } - + this.autoRenewPeriod = new HederaDuration(info.getAutoRenewPeriod()); this.solidityContractAccountID = info.getContractAccountID(); this.expirationTime = new HederaTimeStamp(info.getExpirationTime()); @@ -712,7 +709,7 @@ public boolean getInfo(HederaTransaction payment, HederaQueryHeader.QueryRespons } else { result = false; } - + return result; } @@ -777,12 +774,12 @@ public boolean callLocal(HederaTransaction payment, HederaQueryHeader.QueryRespo // build the query // Header - HederaQueryHeader queryHeader = new HederaQueryHeader(); + HederaQueryHeader queryHeader = new HederaQueryHeader(); if (payment != null) { queryHeader.payment = payment; queryHeader.responseType = responseType; } - + // call local query ContractCallLocalQuery.Builder callLocalQuery = ContractCallLocalQuery.newBuilder(); callLocalQuery.setHeader(queryHeader.getProtobuf()); @@ -791,12 +788,12 @@ public boolean callLocal(HederaTransaction payment, HederaQueryHeader.QueryRespo callLocalQuery.setGas(this.gas); callLocalQuery.setFunctionParameters(ByteString.copyFrom(this.functionParameters)); callLocalQuery.setMaxResultSize(this.maxResultSize); - + // the query itself HederaQuery query = new HederaQuery(); query.queryType = QueryType.CONTRACTCALLLOCAL; query.queryData = callLocalQuery.build(); - + // query now set, send to network Utilities.throwIfNull("Node", this.node); Response response = this.node.contractCallLocal(query); @@ -805,13 +802,13 @@ public boolean callLocal(HederaTransaction payment, HederaQueryHeader.QueryRespo return false; } ContractCallLocalResponse.Builder getCallLocalResponse = response.getContractCallLocal().toBuilder(); - + // check response header first ResponseHeader.Builder responseHeader = getCallLocalResponse.getHeaderBuilder(); this.precheckResult = responseHeader.getNodeTransactionPrecheckCode(); - this.hederaContractFunctionResult = null; - + this.hederaContractFunctionResult = null; + if (this.precheckResult == ResponseCodeEnum.OK) { // result of function call this.hederaContractFunctionResult = new HederaContractFunctionResult(getCallLocalResponse.getFunctionResult()); @@ -822,7 +819,7 @@ public boolean callLocal(HederaTransaction payment, HederaQueryHeader.QueryRespo } else { result = false; } - + return result; } @@ -872,7 +869,7 @@ public boolean callLocalCostAnswerStateProof() throws InterruptedException { return callLocal(null, HederaQueryHeader.QueryResponseType.COST_ANSWER_STATE_PROOF); } - + /** * Adds a {@link HederaKeyPair} to this object @@ -918,7 +915,7 @@ public List getKeys() { public HederaTransactionResult create(long shardNum, long realmNum, HederaFileID fileID, long initialBalance, long gas, byte[] constructorParameters, HederaDuration autoRenewPeriod) throws Exception { // setup defaults if necessary - + // initialise the result HederaTransactionResult transactionResult = new HederaTransactionResult(); @@ -930,7 +927,7 @@ public HederaTransactionResult create(long shardNum, long realmNum, HederaFileID this.fileID = fileID; this.constructionParameters = constructorParameters; this.autoRenewPeriod = autoRenewPeriod; - + // validate inputs Utilities.throwIfNull("txQueryDefaults", this.txQueryDefaults); Utilities.throwIfNull("txQueryDefaults.node", this.txQueryDefaults.node); @@ -960,11 +957,11 @@ public HederaTransactionResult create(long shardNum, long realmNum, HederaFileID if (this.newRealmAdminKey != null) { sigsForTransaction.addSignature(this.newRealmAdminKey.getSignature(createBody.toByteArray())); } - // admin key + // admin key if (this.adminKey != null) { sigsForTransaction.addSignature(this.adminKey.getSignature(createBody.toByteArray())); } - + // create the contract transactionResult = this.create( this.hederaTransactionID @@ -974,7 +971,7 @@ public HederaTransactionResult create(long shardNum, long realmNum, HederaFileID , this.txQueryDefaults.generateRecord , this.txQueryDefaults.memo , sigsForTransaction); - + return transactionResult; } @@ -989,14 +986,14 @@ public HederaTransactionResult create(long shardNum, long realmNum, HederaFileID public HederaTransactionResult update(HederaTimeStamp expirationTime, HederaDuration autoRenewPeriod) throws Exception { // setup defaults if necessary - + // initialise the result HederaTransactionResult transactionResult = new HederaTransactionResult(); // required this.expirationTime = expirationTime; this.autoRenewPeriod = autoRenewPeriod; - + // validate inputs Utilities.throwIfNull("txQueryDefaults", this.txQueryDefaults); Utilities.throwIfNull("txQueryDefaults.node", this.txQueryDefaults.node); @@ -1005,7 +1002,7 @@ public HederaTransactionResult update(HederaTimeStamp expirationTime, HederaDura // set transport this.node = this.txQueryDefaults.node; - + // create a transaction ID (starts now with accountID of the paying account id) this.hederaTransactionID = new HederaTransactionID(this.txQueryDefaults.payingAccountID); @@ -1035,14 +1032,14 @@ public HederaTransactionResult update(HederaTimeStamp expirationTime, HederaDura , this.txQueryDefaults.generateRecord , this.txQueryDefaults.memo , sigsForTransaction); - + return transactionResult; } /** * Updates a smart contract in the simplest possible way - * @param shardNum, the shard number of the smart contract + * @param shardNum, the shard number of the smart contract * @param realmNum, the realm number of the smart contract * @param contractNum, the account number of the smart contract * @param expirationTime, a {@link HederaTimeStamp} update the expiration time of the smart contract @@ -1068,7 +1065,7 @@ public HederaTransactionResult update(long shardNum, long realmNum, long contrac public HederaTransactionResult call(long gas, long amount, byte[] functionParameters) throws Exception { // setup defaults if necessary - + // initialise the result HederaTransactionResult transactionResult = new HederaTransactionResult(); @@ -1076,7 +1073,7 @@ public HederaTransactionResult call(long gas, long amount, byte[] functionParame this.gas = gas; this.amount = amount; this.functionParameters = functionParameters.clone(); - + // validate inputs Utilities.throwIfNull("txQueryDefaults", this.txQueryDefaults); Utilities.throwIfNull("txQueryDefaults.node", this.txQueryDefaults.node); @@ -1102,7 +1099,7 @@ public HederaTransactionResult call(long gas, long amount, byte[] functionParame HederaSignatureList sigsForTransaction = new HederaSignatureList(); //paying signature sigsForTransaction.addSignature(this.txQueryDefaults.payingKeyPair.getSignature(callBody.toByteArray())); - + // call the contract function transactionResult = this.call( this.hederaTransactionID @@ -1112,14 +1109,14 @@ public HederaTransactionResult call(long gas, long amount, byte[] functionParame , this.txQueryDefaults.generateRecord , this.txQueryDefaults.memo , sigsForTransaction); - + return transactionResult; } /** * Calls a smart contract function in the simplest possible way - * @param shardNum, the shard number of the smart contract + * @param shardNum, the shard number of the smart contract * @param realmNum, the realm number of the smart contract * @param contractNum, the account number of the smart contract * @param gas, the maximum amount of gas to use for the call @@ -1138,10 +1135,10 @@ public HederaTransactionResult call(long shardNum, long realmNum, long contractN /** * Get info for the contract which is specified by the * shardNum, realmNum and contractNum properties of this class - * in the event of an error, check the value of this.precheckResult to determine the + * in the event of an error, check the value of this.precheckResult to determine the * cause of the error * Note: You may perform a "getInfoCostAnswer" in order to ascertain the cost of the query first - * The cost could be cached and refreshed from time to time, there is no need to look it up + * The cost could be cached and refreshed from time to time, there is no need to look it up * before each getInfo query * @return {@link boolean} * @throws Exception in the event of an error @@ -1159,13 +1156,13 @@ public boolean getInfo() throws Exception { } /** - * Get info for a smart contract - * in the event of an error, check the value of this.precheckResult to determine the + * Get info for a smart contract + * in the event of an error, check the value of this.precheckResult to determine the * cause of the error * Note: You may perform a "getInfoCostAnswer" in order to ascertain the cost of the query first - * The cost could be cached and refreshed from time to time, there is no need to look it up + * The cost could be cached and refreshed from time to time, there is no need to look it up * before each getInfo query - * @param shardNum, the shard number of the smart contract + * @param shardNum, the shard number of the smart contract * @param realmNum, the realm number of the smart contract * @param contractNum, the account number of the smart contract * @return {@link boolean} @@ -1176,12 +1173,12 @@ public boolean getInfo(long shardNum, long realmNum, long contractNum) throws Ex this.realmNum = realmNum; this.contractNum = contractNum; return getInfo(); - } + } - /** - * Gets the bytecode of the smart contract specified by the shardNum, realmNum and contractNum properties of this class, + /** + * Gets the bytecode of the smart contract specified by the shardNum, realmNum and contractNum properties of this class, * returns null if an error occurred. - * in the event of an error, check the value of this.precheckResult to determine the + * in the event of an error, check the value of this.precheckResult to determine the * cause of the error * @return {@link byte} array * @throws Exception in the event of an error @@ -1192,7 +1189,7 @@ public byte[] getByteCode() throws Exception { Utilities.throwIfNull("txQueryDefaults", this.txQueryDefaults); Utilities.throwIfNull("Node", this.txQueryDefaults.node); this.node = this.txQueryDefaults.node; - + HederaTransaction transferTransaction = new HederaTransaction(this.txQueryDefaults,this.node.contractGetByteCodeQueryFee); if (this.getByteCodeAnswerOnly(transferTransaction)) { @@ -1204,12 +1201,12 @@ public byte[] getByteCode() throws Exception { } } - /** - * Gets the bytecode of a smart contract + /** + * Gets the bytecode of a smart contract * returns null if an error occurred. - * in the event of an error, check the value of this.precheckResult to determine the + * in the event of an error, check the value of this.precheckResult to determine the * cause of the error - * @param shardNum, the shard number of the smart contract + * @param shardNum, the shard number of the smart contract * @param realmNum, the realm number of the smart contract * @param contractNum, the account number of the smart contract * @return {@link byte} array @@ -1222,8 +1219,8 @@ public byte[] getByteCode(long shardNum, long realmNum, long contractNum) throws return getByteCode(); } - /** - * Runs a smart contract function on a single node and returns the result as a {@link HederaContractFunctionResult} object + /** + * Runs a smart contract function on a single node and returns the result as a {@link HederaContractFunctionResult} object * returns null if an error occurred * in the event of an error, check the value of this.precheckResult to determine the cause of the error * @param gas, the maximum amount of gas to pay for this function execution @@ -1241,7 +1238,7 @@ public HederaContractFunctionResult callLocal(long gas, byte[] functionParameter // set transport this.node = this.txQueryDefaults.node; - + this.gas = gas; this.functionParameters = functionParameters; this.maxResultSize = maxResultSize; @@ -1256,12 +1253,12 @@ public HederaContractFunctionResult callLocal(long gas, byte[] functionParameter return null; } } - - /** - * Runs a smart contract function on a single node and returns the result as a {@link HederaContractFunctionResult} object + + /** + * Runs a smart contract function on a single node and returns the result as a {@link HederaContractFunctionResult} object * returns null if an error occurred * in the event of an error, check the value of this.precheckResult to determine the cause of the error - * @param shardNum, the shard number of the smart contract + * @param shardNum, the shard number of the smart contract * @param realmNum, the realm number of the smart contract * @param contractNum, the account number of the smart contract * @param gas, the maximum amount of gas to pay for this function execution @@ -1276,4 +1273,4 @@ public HederaContractFunctionResult callLocal(long shardNum, long realmNum, long this.contractNum = contractNum; return callLocal(gas, functionParameters, maxResultSize); } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/contract/HederaContractFunctionResult.java b/sdk/src/main/java/com/hedera/sdk/contract/HederaContractFunctionResult.java index 23e4430a5..739a5dbeb 100644 --- a/sdk/src/main/java/com/hedera/sdk/contract/HederaContractFunctionResult.java +++ b/sdk/src/main/java/com/hedera/sdk/contract/HederaContractFunctionResult.java @@ -9,8 +9,8 @@ import com.hederahashgraph.api.proto.java.ContractFunctionResult; /** - * The result returned by a call to a smart contract function. This is part of the response to a ContractCallLocal query, - * and is in the record for a ContractCall or ContractCreateInstance transaction. + * The result returned by a call to a smart contract function. This is part of the response to a ContractCallLocal query, + * and is in the record for a ContractCall or ContractCreateInstance transaction. * The ContractCreateInstance transaction record has the results of the call to the constructor. */ public class HederaContractFunctionResult implements Serializable { @@ -100,13 +100,13 @@ public HederaContractFunctionResult(ContractFunctionResult contractFunctionResul /** * Generate a {@link ContractFunctionResult} protobuf payload for this object - * @return {@link ContractFunctionResult} + * @return {@link ContractFunctionResult} */ public ContractFunctionResult getProtobuf() { - + ContractFunctionResult.Builder contractFunctionResultProtobuf = ContractFunctionResult.newBuilder(); - + contractFunctionResultProtobuf.setContractID(this.contractID.getProtobuf()); contractFunctionResultProtobuf.setContractCallResult(ByteString.copyFrom(this.contractCallResult)); contractFunctionResultProtobuf.setErrorMessage(this.errorMessage); @@ -116,7 +116,7 @@ public ContractFunctionResult getProtobuf() { for (int i=0; i < this.contractLogInfo.size(); i++) { contractFunctionResultProtobuf.addLogInfo(this.contractLogInfo.get(i).getProtobuf()); } - + return contractFunctionResultProtobuf.build(); } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/contract/HederaContractLogInfo.java b/sdk/src/main/java/com/hedera/sdk/contract/HederaContractLogInfo.java index b5a033fa7..37e852dcb 100644 --- a/sdk/src/main/java/com/hedera/sdk/contract/HederaContractLogInfo.java +++ b/sdk/src/main/java/com/hedera/sdk/contract/HederaContractLogInfo.java @@ -75,20 +75,20 @@ public HederaContractLogInfo(ContractLoginfo contractLogInfoProtobuf) { /** * Generate a {@link ContractLoginfo} protobuf payload for this object - * @return {@link ContractLoginfo} + * @return {@link ContractLoginfo} */ public ContractLoginfo getProtobuf() { - + ContractLoginfo.Builder contractLogInfo = ContractLoginfo.newBuilder(); - + contractLogInfo.setContractID(this.contractID.getProtobuf()); contractLogInfo.setBloom(ByteString.copyFrom(this.bloom)); contractLogInfo.setData(ByteString.copyFrom(this.data)); for (int i=0; i < this.topics.length; i++) { contractLogInfo.addTopic(ByteString.copyFrom(this.topics[i])); } - + return contractLogInfo.build(); } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/cryptography/AbstractKeyPair.java b/sdk/src/main/java/com/hedera/sdk/cryptography/AbstractKeyPair.java deleted file mode 100644 index 1df5f99f6..000000000 --- a/sdk/src/main/java/com/hedera/sdk/cryptography/AbstractKeyPair.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.hedera.sdk.cryptography; - -import java.security.spec.InvalidKeySpecException; - -abstract class AbstractKeyPair implements KeyPair { - - protected Seed seed = null; - - protected byte[] publicKey = new byte[0]; - protected byte[] publicKeyEncoded = new byte[0]; - protected byte[] privateKey = new byte[0]; - - - public void setPublicKey(byte[] publicKey) throws InvalidKeySpecException { - this.publicKey = publicKey; - } - - public void setPublicKeyEncoded(byte[] encodedPublicKey) { - this.publicKeyEncoded = encodedPublicKey; - } - - public void setSecretKey(byte[] secretKey) throws InvalidKeySpecException { - this.privateKey = secretKey; - } - - @Override - public byte[] getPrivateKey() { - return this.privateKey; - } - - @Override - public byte[] getPublicKey() { - return this.publicKey; - } - @Override - public byte[] getPublicKeyEncoded() { - return this.publicKeyEncoded; - } - - @Override - abstract public byte[] signMessage(byte[] message) throws Exception; - - @Override - abstract public boolean verifySignature(byte[] message, byte[] signature) throws Exception; - -} diff --git a/sdk/src/main/java/com/hedera/sdk/cryptography/ECKeyPair.java b/sdk/src/main/java/com/hedera/sdk/cryptography/ECKeyPair.java deleted file mode 100644 index 611197abc..000000000 --- a/sdk/src/main/java/com/hedera/sdk/cryptography/ECKeyPair.java +++ /dev/null @@ -1,192 +0,0 @@ -package com.hedera.sdk.cryptography; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.math.BigInteger; -import java.security.NoSuchAlgorithmException; - -import org.spongycastle.asn1.ASN1InputStream; -import org.spongycastle.asn1.ASN1Integer; -import org.spongycastle.asn1.DERSequenceGenerator; -import org.spongycastle.asn1.DLSequence; -import org.spongycastle.asn1.x9.X9ECParameters; -import org.spongycastle.crypto.Digest; -import org.spongycastle.crypto.digests.SHA384Digest; -import org.spongycastle.crypto.ec.CustomNamedCurves; -import org.spongycastle.crypto.params.ECDomainParameters; -import org.spongycastle.crypto.params.ECPrivateKeyParameters; -import org.spongycastle.crypto.params.ECPublicKeyParameters; -import org.spongycastle.crypto.signers.DSAKCalculator; -import org.spongycastle.crypto.signers.ECDSASigner; -import org.spongycastle.crypto.signers.HMacDSAKCalculator; -import org.spongycastle.math.ec.ECPoint; -import org.spongycastle.math.ec.FixedPointCombMultiplier; -import org.spongycastle.math.ec.FixedPointUtil; - -public class ECKeyPair extends AbstractKeyPair { - private static final X9ECParameters CURVE_PARAMS = CustomNamedCurves.getByName("secp384r1"); - public static final ECDomainParameters CURVE; - - - static { - FixedPointUtil.precompute(CURVE_PARAMS.getG(), 12); - CURVE = new ECDomainParameters(CURVE_PARAMS.getCurve(), CURVE_PARAMS.getG(), CURVE_PARAMS.getN(), - CURVE_PARAMS.getH()); - } - - protected final BigInteger priv; - protected final ECPoint pub; - - ECKeyPair(BigInteger priv, ECPoint pub) { - this.priv = priv; - this.pub = pub; - this.privateKey = priv.toByteArray(); - this.publicKey = pub.getEncoded(false); - } - - @Override - public byte[] signMessage(byte[] message) throws NoSuchAlgorithmException, IOException { - byte[] digest = CryptoUtils.sha384Digest(message); - SHA384Digest dig = new SHA384Digest(); - HMacDSAKCalculator calc = new HMacDSAKCalculator((Digest) dig); - ECDSASigner signer = new ECDSASigner((DSAKCalculator) calc); - - ECPrivateKeyParameters privKey = new ECPrivateKeyParameters(priv, CURVE); - signer.init(true, privKey); - BigInteger[] components = signer.generateSignature(digest); - return new ECDSASignature(components[0], components[1]).encodeToDER(); - } - - @Override - public boolean verifySignature(byte[] message, byte[] signature) throws NoSuchAlgorithmException { - ECDSASignature ecdsa = ECDSASignature.decodeFromDER(signature); - byte[] data = CryptoUtils.sha384Digest(message); - return ECKeyPair.verify(data,ecdsa, getPublicKey()); - } - - public static boolean verify(byte[] data, ECDSASignature signature, byte[] pub) { - ECDSASigner signer = new ECDSASigner(); - ECPublicKeyParameters params = new ECPublicKeyParameters(CURVE.getCurve().decodePoint(pub), CURVE); - signer.init(false, params); - try { - return signer.verifySignature(data, signature.r, signature.s); - } catch (NullPointerException e) { - // Bouncy Castle contains a bug that can cause NPEs given specially crafted signatures. Those signatures - // are inherently invalid/attack sigs so we just fail them here rather than crash the thread. - return false; - } - } - - public static ECKeyPair fromPrivate(byte[] privKeyBytes) { - return fromPrivate(new BigInteger(1, privKeyBytes), false); - } - - public static ECKeyPair fromPrivate(byte[] privKeyBytes, boolean compressed) { - return fromPrivate(new BigInteger(1, privKeyBytes), compressed); - } - - public static ECKeyPair fromPrivate(BigInteger privKey, boolean compressed) { - ECPoint point = publicPointFromPrivate(privKey); - return new ECKeyPair(privKey, getPointWithCompression(point, compressed)); - } - - private static ECPoint getPointWithCompression(ECPoint point, boolean compressed) { - if (point.isCompressed() == compressed) - return point; - point = point.normalize(); - BigInteger x = point.getAffineXCoord().toBigInteger(); - BigInteger y = point.getAffineYCoord().toBigInteger(); - return CURVE.getCurve().createPoint(x, y, compressed); - } - - /** - * Returns public key bytes from the given private key. To convert a byte array into a BigInteger, use - * new BigInteger(1, bytes); - * @param privKey the private key - * @return {@link Byte} array - * @param compressed compressed key or not - */ - public static byte[] publicKeyFromPrivate(BigInteger privKey, boolean compressed) { - ECPoint point = publicPointFromPrivate(privKey); - return point.getEncoded(compressed); - } - - /** - * Returns public key point from the given private key. To convert a byte array into a BigInteger, use - * new BigInteger(1, bytes); - * @param privKey the private key - * @return {@link ECPoint} - */ - public static ECPoint publicPointFromPrivate(BigInteger privKey) { - if (privKey.bitLength() > CURVE.getN().bitLength()) { - privKey = privKey.mod(CURVE.getN()); - } - return new FixedPointCombMultiplier().multiply(CURVE.getG(), privKey); - } - - /** - * Groups the two components that make up a signature, and provides a way to encode to DER form, which is - * how ECDSA signatures are represented when embedded in other data structures in the Bitcoin protocol. The raw - * components can be useful for doing further EC maths on them. - */ - public static class ECDSASignature { - /** The two components of the signature. */ - public final BigInteger r, s; - - /* - * Constructs a signature with the given components. Does NOT automatically canonicalise the signature. - */ - public ECDSASignature(BigInteger r, BigInteger s) { - this.r = r; - this.s = s; - } - - /* - * DER is an international standard for serializing data structures which is widely used in cryptography. - * It's somewhat like protocol buffers but less convenient. This method returns a standard DER encoding - * of the signature, as recognized by OpenSSL and other libraries. - */ - public byte[] encodeToDER() throws IOException { - return derByteStream().toByteArray(); - } - - public static ECDSASignature decodeFromDER(byte[] bytes) { - ASN1InputStream decoder = null; - try { - decoder = new ASN1InputStream(bytes); - DLSequence seq = (DLSequence) decoder.readObject(); - if (seq == null) - throw new RuntimeException("Reached past end of ASN.1 stream."); - ASN1Integer r, s; - r = (ASN1Integer) seq.getObjectAt(0); - s = (ASN1Integer) seq.getObjectAt(1); - // OpenSSL deviates from the DER spec by interpreting these values as unsigned, though they should not be - // Thus, we always use the positive versions. See: http://r6.ca/blog/20111119T211504Z.html - return new ECDSASignature(r.getPositiveValue(), s.getPositiveValue()); - } catch (IOException e) { - throw new RuntimeException(e); - } finally { - if (decoder != null) - try { decoder.close(); } catch (IOException x) {} - } - } - - protected ByteArrayOutputStream derByteStream() throws IOException { - // Usually 70-72 bytes. - ByteArrayOutputStream bos = new ByteArrayOutputStream(72); - DERSequenceGenerator seq = new DERSequenceGenerator(bos); - seq.addObject(new ASN1Integer(r)); - seq.addObject(new ASN1Integer(s)); - seq.close(); - return bos; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - ECDSASignature other = (ECDSASignature) o; - return r.equals(other.r) && s.equals(other.s); - } - } -} diff --git a/sdk/src/main/java/com/hedera/sdk/cryptography/HederaCryptoKeyPair.java b/sdk/src/main/java/com/hedera/sdk/cryptography/HederaCryptoKeyPair.java deleted file mode 100644 index c1034a77c..000000000 --- a/sdk/src/main/java/com/hedera/sdk/cryptography/HederaCryptoKeyPair.java +++ /dev/null @@ -1,309 +0,0 @@ -//package com.hedera.sdk.cryptography; -// -//import com.hedera.sdk.common.AbstractKeyPair; -//import com.hedera.sdk.common.HederaKeyPair; -//import com.hedera.sdk.common.HederaKeyPair.KeyType; -// -//import java.io.Serializable; -//import java.security.NoSuchAlgorithmException; -//import java.security.spec.InvalidKeySpecException; -//import java.util.ArrayList; -//import java.util.Arrays; -//import java.util.List; -// -//import org.bouncycastle.util.encoders.Hex; -///** -// * Implements public/private(secret) key management functions -// */ -//public class HederaCryptoKeyPair implements Serializable { -// private static final long serialVersionUID = 1L; -// -// private AbstractKeyPair keyPair = null; -// private Seed seed = null; -// protected HederaKeyPair.KeyType keyType = KeyType.NOTSET; -// -// /** -// * sets the public key as a byte[] -// * @param publicKey the public key -// */ -// public void setPublicKey(byte[] publicKey) { -// keyPair.setPublicKey(publicKey); -// } -// -// /** -// * sets the encoded public key as a byte[] -// * @param encodedPublicKey the encoded public key -// */ -// public void setPublicKeyEncoded(byte[] encodedPublicKey) { -// keyPair.setPublicKeyEncoded(encodedPublicKey); -// } -// -// /** -// * gets the public key as a byte[] -// * @return byte[] -// */ -// public byte[] getPublicKey() { -// return keyPair.publicKey; -// } -// -// /** -// * gets the type of key -// * @return {@link KeyType} -// */ -// public KeyType getKeyType() { -// return keyType; -// } -// -// /** -// * gets the encoded public key as a byte[] -// * @return byte[0] if not set -// */ -// public byte[] getPublicKeyEncoded() { -// if (this.keyPair != null) { -// return this.keyPair.getPublicKeyEncoded(); -// } else { -// return new byte[0]; -// } -// } -// -// /** -// * gets the encoded public key as a Hex String -// * @return empty string if not set -// */ -// public String getPublicKeyEncodedHex() { -// if (this.keyPair != null) { -// return Hex.toHexString(this.keyPair.getPublicKey().getEncoded()); -// } else { -// return ""; -// } -// } -// -// /** -// * sets the secret key as a byte[] -// * @param secretKey the secret key -// */ -// public void setSecretKey(byte[] secretKey) { -// keyPair.setSecretKey(secretKey); -// } -// -// /** -// * gets the secret key as a byte[] -// * @return byte[] or null if not set -// */ -//// public byte[] getSecretKey() { -//// if (this.keyPair != null) { -//// return keyPair.privateKey; -//// } else { -//// return null; -//// } -//// } -// -// /** -// * gets the secret key as a String -// * @return empty string if not set -// */ -// public String getSecretKeyHex() { -// if (this.keyPair != null) { -// return Hex.toHexString(this.keyPair.getPrivateKey().getEncoded()); -// } else { -// return ""; -// } -// } -// -// /** -// * default constructor, does nothing other than instantiate this object -// */ -// public HederaCryptoKeyPair() { -// } -// -// /** -// * Constructor from a key type and recoveryWords as an array of String -// * Creates or Recovers a public/private keypair from the list of words -// * @param keyType the type of key to recover -// * @param recoveryWords String[] the list of words to recover from -// * @throws NoSuchAlgorithmException in the event of an error -// */ -// public HederaCryptoKeyPair(HederaKeyPair.KeyType keyType, String[] recoveryWords) throws NoSuchAlgorithmException { -// this(keyType, Arrays.asList(recoveryWords)); -// } -// -// /** -// * Constructor from a key type and recoveryWords as an List of String -// * Creates or Recovers a public/private keypair from the list of words -// * @param keyType the type of key to recover -// * @param recoveryWords the words to recover from -// * @throws NoSuchAlgorithmException in the event of an error -// */ -// public HederaCryptoKeyPair(HederaKeyPair.KeyType keyType, List recoveryWords) throws NoSuchAlgorithmException { -// this.keyType = keyType; -// -// byte[] privateKey; -// this.seed = Seed.fromWordList(recoveryWords); -// privateKey = CryptoUtils.deriveKey(seed.toBytes(), -1, 32); -// keyPair = new EDKeyPair(privateKey); -// } -// -// /** -// * Constructor from a key type and seed -// * @param keyType the type of key to generate -// * @param seed the seed to generate with -// */ -// public HederaCryptoKeyPair(HederaKeyPair.KeyType keyType, byte[] seed) { -// -// this.keyType = keyType; -// -// if (seed == null) { -// seed = CryptoUtils.getSecureRandomData(32); -// } -// byte[] privateKey; -// if (seed.length != 32) { -// throw new IllegalStateException(String.format("Seed size of %d is invalid, should be 32", seed.length)); -// } -// this.seed = Seed.fromEntropy(seed); -// privateKey = CryptoUtils.deriveKey(this.seed.toBytes(), -1, 32); -// keyPair = new EDKeyPair(privateKey); -// } -// -// /** -// * Constructs a key pair of the given key type, the seed is randomly generated -// * @param keyType the type of key to create -// */ -// public HederaCryptoKeyPair(HederaKeyPair.KeyType keyType) { -// this(keyType, (byte[])null); -// } -// -// /** -// * Constructs from a known pair of public and optional private key -// * If the private key is null or has a length of 0, only a public key will be created -// * @param keyType {@link HederaKeyPair.KeyType} -// * @param publicKey {@link byte} array -// * @param secretKey {@link byte} array -// * @throws InvalidKeySpecException -// */ -// public HederaCryptoKeyPair(HederaKeyPair.KeyType keyType, byte[] publicKey, byte[] secretKey) throws InvalidKeySpecException { -// this.keyType = keyType; -// -// switch (this.keyType) { -//// case ECDSA384: -//// throw new IllegalStateException("ECDSA384 keys are not supported"); -// case ED25519: -// keyPair = null; -// if (secretKey != null) { -// if (secretKey.length != 0) { -// keyPair = new EDKeyPair(publicKey, secretKey); -// } -// } -// if (keyPair == null) { -// keyPair = EDKeyPair.buildFromPublicKey(publicKey); -// } -// break; -//// case RSA3072: -//// throw new IllegalStateException("RSA3072 keys are not supported"); -// default: -// throw new IllegalStateException("Key Type not set"); -// } -// } -// -// /** -// * Constructs from a known pair of public and optional private key -// * If the private key supplied is null or empty (""), only a public key is created -// * @param keyType {@link HederaKeyPair.KeyType} -// * @param publicKey {@link String} as a hex encoded string -// * @param secretKey {@link String} as a hex encoded string -// * @throws IllegalStateException if the key type is invalid -// */ -// public HederaCryptoKeyPair(HederaKeyPair.KeyType keyType, String publicKey, String secretKey) throws InvalidKeySpecException { -// this.keyType = keyType; -// -// switch (this.keyType) { -//// case ECDSA384: -//// throw new IllegalStateException("ECDSA384 keys are not supported"); -// case ED25519: -// byte[] pub = Hex.decode(publicKey); -// -// keyPair = null; -// if (secretKey != null) { -// if (secretKey.isEmpty()) { -// byte[] secret = Hex.decode(secretKey); -// keyPair = new EDKeyPair(pub, secret); -// } -// } -// if (keyPair == null) { -// keyPair = EDKeyPair.buildFromPublicKey(pub); -// } -// -// break; -//// case RSA3072: -//// throw new IllegalStateException("RSA3072 keys are not supported"); -// default: -// throw new IllegalStateException("Key Type not set"); -// } -// } -// -// /** -// * Returns the list of recoveryWords for a key pair -// * @return list of Strings -// * @throws IllegalStateException if the key type is invalid -// */ -// public List recoveryWordsList() { -// -// switch (this.keyType) { -//// case ECDSA384: -//// throw new IllegalStateException("ECDSA384 keys are not supported"); -// case ED25519: -// if (this.seed != null) { -// return this.seed.toWords(); -// } else { -// return new ArrayList(); -// } -//// case RSA3072: -//// throw new IllegalStateException("RSA3072 keys are not supported"); -// default: -// throw new IllegalStateException("This type of key is not supported"); -// } -// } -// -// /** -// * Returns the list of recoveryWords for a key pair -// * @return String[] -// * @throws IllegalStateException if the key type is invalid -// */ -// public String[] recoveryWordsArray() { -// switch (this.keyType) { -//// case ECDSA384: -//// throw new IllegalStateException("ECDSA384 keys are not supported"); -// case ED25519: -// List wordList = new ArrayList(); -// if (this.seed != null) { -// wordList = this.seed.toWords(); -// return wordList.toArray(new String[0]); -// } else { -// return new String[0]; -// } -//// case RSA3072: -//// throw new IllegalStateException("RSA3072 keys are not supported"); -// default: -// throw new IllegalStateException("This type of key is not supported"); -// } -// } -// -// /** -// * signs a message with the private key -// * @param message byte[] -// * @return byte[] -// */ -// public byte[] signMessage(byte[] message) { -// return keyPair.signMessage(message); -// } -// -// /** -// * verifies a message against a signature -// * @param message byte[] -// * @param signature byte[] -// * @return {@link Boolean} -// * @throws Exception -// */ -// public boolean verifySignature(byte[] message, byte[] signature) throws Exception { -// return keyPair.verifySignature(message, signature); -// } -//} diff --git a/sdk/src/main/java/com/hedera/sdk/cryptography/WordList.java b/sdk/src/main/java/com/hedera/sdk/cryptography/WordList.java index 4f7986c80..cc2e40a1e 100644 --- a/sdk/src/main/java/com/hedera/sdk/cryptography/WordList.java +++ b/sdk/src/main/java/com/hedera/sdk/cryptography/WordList.java @@ -509,7 +509,7 @@ public class WordList { "teeth", "tell", "temper", "temple", "tempo", "tempt", "ten", "tenant", "tend", "tender", "tendon", "tennis", "tenor", "tense", "tent", "tenth", "tenure", "Teresa", "term", "terror", "terse", - "src/test/java/test", "Texas", "text", "thank", "thaw", "them", "theme", "thence", + "test", "Texas", "text", "thank", "thaw", "them", "theme", "thence", "theory", "there", "these", "thesis", "they", "thick", "thief", "thigh", "thin", "thing", "think", "third", "thirst", "thirty", "this", "Thomas", "thorn", "those", "though", "thread", "threat", diff --git a/sdk/src/main/java/com/hedera/sdk/file/HederaFile.java b/sdk/src/main/java/com/hedera/sdk/file/HederaFile.java index 3b0445b16..8f784812d 100644 --- a/sdk/src/main/java/com/hedera/sdk/file/HederaFile.java +++ b/sdk/src/main/java/com/hedera/sdk/file/HederaFile.java @@ -4,7 +4,6 @@ import java.time.Instant; import java.util.ArrayList; import java.util.List; - import com.google.protobuf.ByteString; import com.hedera.sdk.common.HederaAccountID; import com.hedera.sdk.common.HederaDuration; @@ -43,8 +42,6 @@ import com.hederahashgraph.api.proto.java.ResponseCodeEnum; import com.hederahashgraph.api.proto.java.ResponseHeader; import com.hederahashgraph.api.proto.java.TransactionBody; - -import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** @@ -52,7 +49,7 @@ * */ public class HederaFile implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaFile.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaFile.class); private static final long serialVersionUID = 1; // default file duration set to 1 day (60 seconds x 60 minutes x 24h) private static final long EXPIRATIONDEFAULT = 86400; @@ -71,7 +68,7 @@ public class HederaFile implements Serializable { */ private List newKeys = new ArrayList(); /** - * keys to manage the file with + * keys to manage the file with */ private List keys = new ArrayList(); // the time at which this file should expire (unless updated before then to @@ -111,7 +108,7 @@ public class HederaFile implements Serializable { public HederaKeyPair newRealmAdminKey = null; /** * sets the object to use for communication with the node - * + * * @param node the node to use for communication */ public void setNode(HederaNode node) { @@ -128,7 +125,7 @@ public HederaFile() { /** * Constructor from shard, realm and file number - * + * * @param shardNum the shard number for the file * @param realmNum the realm number for the file * @param fileNum the file number for the file @@ -143,7 +140,7 @@ public HederaFile(long shardNum, long realmNum, long fileNum) { /** * Constructor from a {@link HederaTransactionID} - * + * * @param transactionID the transaction ID to create the file from */ public HederaFile(HederaTransactionID transactionID) { @@ -154,7 +151,7 @@ public HederaFile(HederaTransactionID transactionID) { /** * returns the size of the file as reported (result of a get info query) - * + * * @return long */ public long getSize() { @@ -165,7 +162,7 @@ public long getSize() { * @return {@link HederaFileID} */ public HederaFileID getFileID() { - + return new HederaFileID(this.shardNum, this.realmNum, this.fileNum); } /** @@ -179,7 +176,7 @@ public void setFileID(HederaFileID fileID) { } /** * returns file was deleted (result of a get info query) - * + * * @return boolean */ public boolean getDeleted() { @@ -188,7 +185,7 @@ public boolean getDeleted() { /** * results of the Transaction - * + * * @return {@link ResponseCodeEnum} */ public ResponseCodeEnum getPrecheckResult() { @@ -197,7 +194,7 @@ public ResponseCodeEnum getPrecheckResult() { /** * cost of a query - * + * * @return long */ public long getCost() { @@ -206,7 +203,7 @@ public long getCost() { /** * state proof if requested - * + * * @return byte[] */ public byte[] getStateProof() { @@ -216,7 +213,7 @@ public byte[] getStateProof() { /** * This method returns the body of a transaction to create a file so that it can * be signed - * + * * @param transactionID the {@link HederaTransactionID} for the * transaction * @param nodeAccount the {@link HederaAccountID} of the account of @@ -244,7 +241,7 @@ public TransactionBody bodyToSignForCreate(HederaTransactionID transactionID, He /** * This method returns the body of a transaction to delete a file so that it can * be signed - * + * * @param transactionID the {@link HederaTransactionID} for the * transaction * @param nodeAccount the {@link HederaAccountID} of the account of @@ -272,7 +269,7 @@ public TransactionBody bodyToSignForDelete(HederaTransactionID transactionID, He /** * This method returns the body of a transaction to update a file so that it can * be signed - * + * * @param transactionID the {@link HederaTransactionID} for the * transaction * @param nodeAccount the {@link HederaAccountID} of the account of @@ -300,7 +297,7 @@ public TransactionBody bodyToSignForUpdate(HederaTransactionID transactionID, He /** * This method returns the body of a transaction to append to a file so that it * can be signed - * + * * @param transactionID the {@link HederaTransactionID} for the * transaction * @param nodeAccount the {@link HederaAccountID} of the account of @@ -327,7 +324,7 @@ public TransactionBody bodyToSignForAppend(HederaTransactionID transactionID, He /** * This method runs a transaction to create a file - * + * * @param transactionID the {@link HederaTransactionID} for the * transaction * @param nodeAccount the {@link HederaAccountID} of the account of @@ -359,7 +356,7 @@ public HederaTransactionResult create(HederaTransactionID transactionID, HederaA // issue the transaction Utilities.throwIfNull("Node", this.node); - + HederaTransactionResult hederaTransactionResult = this.node.fileCreate(transaction); hederaTransactionResult.hederaTransactionID = transactionID; // return @@ -370,7 +367,7 @@ public HederaTransactionResult create(HederaTransactionID transactionID, HederaA /** * This method runs a transaction to delete a file - * + * * @param transactionID the {@link HederaTransactionID} for the * transaction * @param nodeAccount the {@link HederaAccountID} of the account of @@ -413,7 +410,7 @@ public HederaTransactionResult delete(HederaTransactionID transactionID, HederaA /** * This method runs a transaction to update a file - * + * * @param transactionID the {@link HederaTransactionID} for the * transaction * @param nodeAccount the {@link HederaAccountID} of the account of @@ -456,7 +453,7 @@ public HederaTransactionResult update(HederaTransactionID transactionID, HederaA /** * This method runs a transaction to append to a file - * + * * @param transactionID the {@link HederaTransactionID} for the * transaction * @param nodeAccount the {@link HederaAccountID} of the account of @@ -501,7 +498,7 @@ public HederaTransactionResult append(HederaTransactionID transactionID, HederaA /** * This method runs a transaction to create a file with a record, default values * are used to create the file with - * + * * @param accountShardNum the shard of the account paying for the file creation * @param accountRealmNum the realm of the account paying for the file creation * @param accountNum the account number of the account paying for the file @@ -530,7 +527,7 @@ public HederaTransactionResult createWithRecord(long accountShardNum, long accou /** * This method runs a transaction to create a file without a record, default * values are used to create the file with - * + * * @param accountShardNum the shard of the account paying for the file creation * @param accountRealmNum the realm of the account paying for the file creation * @param accountNum the account number of the account paying for the file @@ -571,7 +568,7 @@ private HederaTransactionResult createSimple(long accountShardNum, long accountR // duration defaults to 3 minutes if not set HederaDuration transactionValidDuration = new HederaDuration(); - + // add the wACL keys this.addKey(keyPair); @@ -611,7 +608,7 @@ private HederaTransactionResult createSimple(long accountShardNum, long accountR * Runs a query to get the contents of a given file If successful, the method * populates the properties this object depending on the type of answer * requested - * + * * @param payment a {@link HederaTransaction} message to indicate how this * query will be paid for, this can be null for Cost queries * @param responseType the type of response requested from the query @@ -672,7 +669,7 @@ public boolean getContents(HederaTransaction payment, HederaQueryHeader.QueryRes /** * Runs a query to get the contents of a given file without a state proof If * successful, the method populates the cost and contents of this object - * + * * @param payment a {@link HederaTransaction} message to indicate how this * query will be paid for, this can be null for Cost queries * @return {@link Boolean} indicating success or failure of the query @@ -688,7 +685,7 @@ public boolean getContentsAnswerOnly(HederaTransaction payment) throws Interrupt * Runs a query to get the contents of a given file with a state proof If * successful, the method populates the cost, stateproof and contents of this * object - * + * * @param payment a {@link HederaTransaction} message to indicate how this * query will be paid for, this can be null for Cost queries * @return {@link Boolean} indicating success or failure of the query @@ -704,7 +701,7 @@ public boolean getContentsStateProof(HederaTransaction payment) throws Interrupt * Runs a query to get cost of getting the contents of a given file without a * state proof If successful, the method populates the cost property of this * object - * + * * @return {@link Boolean} indicating success or failure of the query * @throws InterruptedException should an exception occur during communication * with the node @@ -717,7 +714,7 @@ public boolean getContentsCostAnswer() throws InterruptedException { /** * Runs a query to get cost of getting the contents of a given file with a state * proof If successful, the method populates the cost property of this object - * + * * @return {@link Boolean} indicating success or failure of the query * @throws InterruptedException should an exception occur during communication * with the node @@ -731,7 +728,7 @@ public boolean getContentsAnswerStateProof() throws InterruptedException { * Runs a query to get the information about a given file If successful, the * method populates the properties this object depending on the type of answer * requested - * + * * @param payment a {@link HederaTransaction} message to indicate how this * query will be paid for, this can be null for Cost queries * @param responseType the type of response requested from the query @@ -785,7 +782,7 @@ public boolean getInfo(HederaTransaction payment, HederaQueryHeader.QueryRespons this.expirationTime = timestamp.time; this.deleted = fileInfo.getDeleted(); this.keys.clear(); - + KeyList protoKeys = fileInfo.getKeys(); for (int i = 0; i < protoKeys.getKeysCount(); i++) { @@ -803,7 +800,7 @@ public boolean getInfo(HederaTransaction payment, HederaQueryHeader.QueryRespons /** * Runs a query to get the contents of a given file without a state proof If * successful, the method populates the properties of this object - * + * * @param payment a {@link HederaTransaction} message to indicate how this * query will be paid for, this can be null for Cost queries * @return {@link Boolean} indicating success or failure of the query @@ -818,7 +815,7 @@ public boolean getInfoAnswerOnly(HederaTransaction payment) throws InterruptedEx /** * Runs a query to get the contents of a given file with a state proof If * successful, the method populates the properties of this object - * + * * @param payment a {@link HederaTransaction} message to indicate how this * query will be paid for, this can be null for Cost queries * @return {@link Boolean} indicating success or failure of the query @@ -834,7 +831,7 @@ public boolean getInfoStateProof(HederaTransaction payment) throws InterruptedEx * Runs a query to get the cost of getting the contents of a given file without * a state proof If successful, the method populates the cost property of this * object - * + * * @return {@link Boolean} indicating success or failure of the query * @throws InterruptedException should an exception occur during communication * with the node @@ -848,7 +845,7 @@ public boolean getInfoCostAnswer() throws InterruptedException { * Runs a query to get the cost of getting the contents of a given file with a * state proof If successful, the method populates the cost property of this * object - * + * * @return {@link Boolean} indicating success or failure of the query * @throws InterruptedException should an exception occur during communication * with the node @@ -861,7 +858,7 @@ public boolean getInfoCostAnswerStateProof() throws InterruptedException { /** * This method returns the {FileCreateTransactionBody} body for a transaction to * create a file - * + * * @return {@link FileCreateTransactionBody} */ public FileCreateTransactionBody getCreateTransactionBody() { @@ -873,7 +870,7 @@ public FileCreateTransactionBody getCreateTransactionBody() { HederaTimeStamp timestamp = new HederaTimeStamp(this.expirationTime); fileCreateTransaction.setExpirationTime(timestamp.getProtobuf()); } - + if (this.keys.size() > 0) { fileCreateTransaction.setKeys(Utilities.getProtoKeyList(this.keys)); } @@ -902,13 +899,13 @@ public FileCreateTransactionBody getCreateTransactionBody() { /** * This method returns the {FileUpdateTransactionBody} body for a transaction to * update a file - * + * * @return {@link FileUpdateTransactionBody} */ public FileUpdateTransactionBody getUpdateTransactionBody() { FileUpdateTransactionBody.Builder fileUpdateTransaction = FileUpdateTransactionBody.newBuilder(); - + fileUpdateTransaction.setFileID(this.getFileID().getProtobuf()); if (this.expirationTime != null) { @@ -936,7 +933,7 @@ public FileUpdateTransactionBody getUpdateTransactionBody() { /** * This method returns the {FileDeleteTransactionBody} body for a transaction to * delete a file - * + * * @return {@link FileDeleteTransactionBody} */ public FileDeleteTransactionBody getDeleteTransactionBody() { @@ -961,7 +958,7 @@ public FileDeleteTransactionBody getDeleteTransactionBody() { /** * This method returns the {FileAppendTransactionBody} body for a transaction to * append to a file - * + * * @return {@link FileAppendTransactionBody} */ public FileAppendTransactionBody getAppendTransactionBody() { @@ -990,7 +987,7 @@ public FileAppendTransactionBody getAppendTransactionBody() { /** * Adds a {@link HederaKeyPair} to the list - * + * * @param key the key to add to the list */ public void addKey(HederaKeyPair key) { @@ -1001,7 +998,7 @@ public void addKey(HederaKeyPair key) { /** * Adds a {@link HederaKeyPair} to the list of new keys - * + * * @param key the key to add to the list */ public void addNewKey(HederaKeyPair key) { @@ -1012,7 +1009,7 @@ public void addNewKey(HederaKeyPair key) { /** * Deletes a {@link HederaKeyPair} from the list - * + * * @param key the key to delete * @return {@link Boolean} true if successful */ @@ -1023,7 +1020,7 @@ public boolean deleteKey(HederaKeyPair key) { /** * Deletes a {@link HederaKeyPair} from the list - * + * * @param key the key to remove * @return {@link Boolean} true if successful */ @@ -1034,7 +1031,7 @@ public boolean deleteNewKey(HederaKeyPair key) { /** * returns the list of {@link HederaKeyPair} - * + * * @return {@link List} of {@link HederaKeyPair} */ public List getNewKeys() { @@ -1044,7 +1041,7 @@ public List getNewKeys() { /** * returns the list of {@link HederaKeyPair} - * + * * @return {@link List} of {@link HederaKeyPair} */ public List getKeys() { @@ -1055,7 +1052,7 @@ public List getKeys() { // SIMPLIFICATION /** * Creates a file in the simplest possible way - * + * * @param shardNum the shard in which to create the file * @param realmNum the realm in which to create the file * @param contents the file contents in bytes @@ -1099,7 +1096,7 @@ public HederaTransactionResult create(long shardNum, long realmNum, byte[] conte if (this.txQueryDefaults.fileWacl != null) { this.addKey(this.txQueryDefaults.fileWacl); } - + // get the body for the transaction so we can sign it TransactionBody createBody = this.bodyToSignForCreate(hederaTransactionID, this.node.getAccountID(), this.node.fileCreateTransactionFee, this.txQueryDefaults.transactionValidDuration, @@ -1129,7 +1126,7 @@ public HederaTransactionResult create(long shardNum, long realmNum, byte[] conte /** * Deletes a file in the simplest possible way - * + * * @return {@link HederaTransactionResult} * @throws Exception in the event of an error */ @@ -1165,7 +1162,7 @@ public HederaTransactionResult delete() throws Exception { if (this.txQueryDefaults.fileWacl != null) { sigsForTransaction.addSignature(this.txQueryDefaults.fileWacl.getSignature(deleteBody.toByteArray())); } - + // delete the file transactionResult = this.delete(hederaTransactionID, this.node.getAccountID(), this.node.fileDeleteTransactionFee, this.txQueryDefaults.transactionValidDuration, this.txQueryDefaults.generateRecord, this.txQueryDefaults.memo, @@ -1177,7 +1174,7 @@ public HederaTransactionResult delete() throws Exception { /** * Deletes a file in the simplest possible way - * + * * @param shardNum, the shard in which the file exists * @param realmNum, the realm in which the file exists * @param fileNum, the file number @@ -1193,7 +1190,7 @@ public HederaTransactionResult delete(long shardNum, long realmNum, long fileNum /** * Appends to a file in the simplest possible way - * + * * @param contents the file contents in bytes to append * @return {@link HederaTransactionResult} * @throws Exception in the event of an error @@ -1210,7 +1207,7 @@ public HederaTransactionResult append(byte[] contents) throws Exception { Utilities.throwIfAccountIDInvalid("Node", this.txQueryDefaults.node.getAccountID()); Utilities.throwIfNull("txQueryDefaults.payingKeyPair", this.txQueryDefaults.payingKeyPair); Utilities.throwIfAccountIDInvalid("txQueryDefaults.payingKeyPair", this.txQueryDefaults.payingAccountID); - + // set transport this.node = this.txQueryDefaults.node; @@ -1233,7 +1230,7 @@ public HederaTransactionResult append(byte[] contents) throws Exception { if (this.txQueryDefaults.fileWacl != null) { sigsForTransaction.addSignature(this.txQueryDefaults.fileWacl.getSignature(appendBody.toByteArray())); } - + // add to the file transactionResult = this.append(hederaTransactionID, this.node.getAccountID(), this.node.fileAppendTransactionFee, this.txQueryDefaults.transactionValidDuration, this.txQueryDefaults.generateRecord, this.txQueryDefaults.memo, @@ -1245,7 +1242,7 @@ public HederaTransactionResult append(byte[] contents) throws Exception { /** * Appends to a file in the simplest possible way - * + * * @param shardNum, the shard in which the file exists * @param realmNum, the realm in which the file exists * @param fileNum, the file number @@ -1266,7 +1263,7 @@ public HederaTransactionResult append(long shardNum, long realmNum, long fileNum * you don't wish to update them Note: if seconds or nanos are supplied and the * other set to -1, it will be set to 0 likewise, leave the contents null if you * don't wish to update them - * + * * @param expirationTimeSeconds the new file expiration seconds (leave null for * no change) * @param expirationTimeNanos the file expiration time nanos (leave null for @@ -1325,7 +1322,7 @@ public HederaTransactionResult update(long expirationTimeSeconds, int expiration if (this.txQueryDefaults.fileWacl != null) { sigsForTransaction.addSignature(this.txQueryDefaults.fileWacl.getSignature(updateBody.toByteArray())); } - + // update the file transactionResult = this.update(hederaTransactionID, this.node.getAccountID(), this.node.fileUpdateTransactionFee, this.txQueryDefaults.transactionValidDuration, this.txQueryDefaults.generateRecord, this.txQueryDefaults.memo, @@ -1340,7 +1337,7 @@ public HederaTransactionResult update(long expirationTimeSeconds, int expiration * you don't wish to update them Note: if seconds or nanos are supplied and the * other set to -1, it will be set to 0 likewise, leave the contents null if you * don't wish to update them - * + * * @param shardNum, the shard in which the file exists * @param realmNum, the realm in which the file exists * @param fileNum, the file number @@ -1364,20 +1361,20 @@ public HederaTransactionResult update(long shardNum, long realmNum, long fileNum * Gets the contents of the file, returns null if an error occurred in the event * of an error, check the value of this.precheckResult to determine the cause of * the error - * + * * @return {@link byte} array * @throws Exception in the event of an error */ public byte[] getContents() throws Exception { - + // validate inputs Utilities.throwIfNull("txQueryDefaults", this.txQueryDefaults); Utilities.throwIfNull("txQueryDefaults.node", this.txQueryDefaults.node); - + // set transport this.node = this.txQueryDefaults.node; - + HederaTransaction transferTransaction = new HederaTransaction(this.txQueryDefaults, this.node.fileGetContentsQueryFee); @@ -1394,7 +1391,7 @@ public byte[] getContents() throws Exception { * Gets the contents of the file, returns null if an error occurred in the event * of an error, check the value of this.precheckResult to determine the cause of * the error - * + * * @param shardNum, the shard in which the file exists * @param realmNum, the realm in which the file exists * @param fileNum, the file number @@ -1415,7 +1412,7 @@ public byte[] getContents(long shardNum, long realmNum, long fileNum) throws Exc * a "getInfoCostAnswer" in order to ascertain the cost of the query first The * cost could be cached and refreshed from time to time, there is no need to * look it up before each getInfo query - * + * * @return {@link boolean} * @throws Exception in the event of an error */ @@ -1424,7 +1421,7 @@ public boolean getInfo() throws Exception { // validate inputs Utilities.throwIfNull("txQueryDefaults", this.txQueryDefaults); Utilities.throwIfNull("txQueryDefaults.node", this.txQueryDefaults.node); - + // set transport this.node = this.txQueryDefaults.node; @@ -1436,7 +1433,7 @@ public boolean getInfo() throws Exception { /** * Get info for the file in the event of an error, check the value of * this.precheckResult to determine the cause of the error - * + * * @param shardNum, the shard in which the file exists * @param realmNum, the realm in which the file exists * @param fileNum, the file number @@ -1449,4 +1446,4 @@ public boolean getInfo(long shardNum, long realmNum, long fileNum) throws Except this.fileNum = fileNum; return getInfo(); } -} +} \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/node/HederaNode.java b/sdk/src/main/java/com/hedera/sdk/node/HederaNode.java index fb21230a0..caf978dd3 100644 --- a/sdk/src/main/java/com/hedera/sdk/node/HederaNode.java +++ b/sdk/src/main/java/com/hedera/sdk/node/HederaNode.java @@ -19,7 +19,7 @@ public class HederaNode implements Serializable { /** - * Class to manage information associated with a Hedera Node + * Class to manage information associated with a Hedera Node */ private static final long serialVersionUID = 1L; final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaNode.class); @@ -27,110 +27,114 @@ public class HederaNode implements Serializable { private int port = 0; private HederaAccountID accountID = null; // GRPC - private ManagedChannel grpcChannel = null; + private ManagedChannel grpcChannel = null; // BUSY network handling private int busyRetryCount = 2; private int waitMillisLong = 510; private int waitMillisShort = 11; - + /** * The default fee associated with running an account create transaction */ - public long accountCreateTransactionFee = 10; + public long accountCreateTransactionFee = 100000; /** * The default fee associated with running a token transaction */ - public long accountTransferTransactionFee = 10; + public long accountTransferTransactionFee = 100000; /** * The default fee associated with running an update transaction */ - public long accountUpdateTransactionFee = 10; + public long accountUpdateTransactionFee = 100000; /** * The default fee associated with deleting an account */ - public long accountDeleteTransactionFee = 10; + public long accountDeleteTransactionFee = 100000; /** * The default fee associated with adding a claim to an account */ - public long accountAddClaimTransactionFee = 10; + public long accountAddClaimTransactionFee = 100000; /** * The default fee associated with deleting a claim from an account */ - public long accountDeleteClaimTransactionFee = 10; + public long accountDeleteClaimTransactionFee = 100000; /** * The default fee associated with querying an account balance */ - public long accountBalanceQueryFee = 10; + public long accountBalanceQueryFee = 100000; /** * The default fee associated with an account info query */ - public long accountInfoQueryFee = 10; + public long accountInfoQueryFee = 100000; /** * The default fee associated with an get records query against an account */ - public long accountGetRecordsQueryFee = 10; - + public long accountGetRecordsQueryFee = 100000; + /** * The default fee associated with creating a file */ - public long fileCreateTransactionFee = 10; + public long fileCreateTransactionFee = 100000; /** * The default fee associated with deleting a file */ - public long fileDeleteTransactionFee = 10; + public long fileDeleteTransactionFee = 100000; /** * The default fee associated with updating a file */ - public long fileUpdateTransactionFee = 10; + public long fileUpdateTransactionFee = 100000; /** * The default fee associated with appending to a file */ - public long fileAppendTransactionFee = 10; + public long fileAppendTransactionFee = 100000; /** * The default fee associated with getting file contents */ - public long fileGetContentsQueryFee = 10; + public long fileGetContentsQueryFee = 100000; /** * The default fee associated with getting file information */ - public long fileGetInfoQueryFee = 10; + public long fileGetInfoQueryFee = 100000; /** * The default fee associated with a get records query against a file */ - public long fileGetRecordsQueryFee = 10; - + public long fileGetRecordsQueryFee = 100000; + /** * The default fee associated with creating a smart contract */ - public long contractCreateTransactionFee = 10; + public long contractCreateTransactionFee = 100000; /** * The default fee associated with updating a smart contract */ - public long contractUpdateTransactionFee = 10; + public long contractUpdateTransactionFee = 100000; /** * The default fee associated with getting a smart contract's byte code */ - public long contractGetByteCodeQueryFee = 10; + public long contractGetByteCodeQueryFee = 100000; /** * The default fee associated with calling a smart contract function */ - public long contractCallTransactionFee = 10; + public long contractCallTransactionFee = 100000; /** * The default fee associated with getting smart contract information */ - public long contractGetInfoQueryFee = 10; + public long contractGetInfoQueryFee = 100000; /** * The default fee associated with running a local call function */ - public long contractCallLocalQueryFee = 10; + public long contractCallLocalQueryFee = 100000; /** * The default fee associated with querying by solidityID */ - public long contractGetBySolidityId = 10; + public long contractGetBySolidityId = 100000; /** * The default fee associated with a get records query against a smart contract */ - public long contractGetRecordsQueryFee = 10; + public long contractGetRecordsQueryFee = 100000; + /** + * The default fee associated with a get records query against a transaction + */ + public long transactionGetRecordsQueryFee = 100000; /** * Default Constructor @@ -169,7 +173,7 @@ public HederaNode(String host, int port, HederaAccountID accountID) { * Sets the host and port of the specified node * @param host {@link String} * @param port {@link Integer} - * @throws InterruptedException in the event of a node communication error + * @throws InterruptedException in the event of a node communication error */ public void setHostPort(String host, int port) throws InterruptedException { @@ -182,7 +186,7 @@ public void setHostPort(String host, int port) throws InterruptedException { } } - + /** * Gets the host for this node * @return {@link String} @@ -206,7 +210,7 @@ public int getPort() { /** * Sets the host for this node * @param host {@link String} - * @throws InterruptedException in the event of a node communication error + * @throws InterruptedException in the event of a node communication error */ public void setHost(String host) throws InterruptedException { @@ -222,7 +226,7 @@ public void setHost(String host) throws InterruptedException { /** * Sets the port used to access this node * @param port {@link Integer} - * @throws InterruptedException in the event of a node communication error + * @throws InterruptedException in the event of a node communication error */ public void setPort(int port) throws InterruptedException { @@ -245,7 +249,7 @@ public void setAccountID(HederaAccountID accountID) { this.accountID = accountID; } - + /** * Sets the account ID for this node based upon shardNum, realmNum and accountNum * @param shardNum {@link Long} @@ -258,7 +262,7 @@ public void setAccountID(long shardNum, long realmNum, long accountNum) { this.accountID = accountID; } - + /** * Gets the account ID for this node * @return {@link HederaAccountID} @@ -284,7 +288,7 @@ public HederaTransactionResult accountCreate(HederaTransaction transaction) thro TransactionResponse response = null; HederaTransactionResult transResult = new HederaTransactionResult(); - + if (transaction.getProtobuf().getBody().hasCryptoCreateAccount()) { openChannel(); CryptoServiceGrpc.CryptoServiceBlockingStub blockingStub = CryptoServiceGrpc.newBlockingStub(this.grpcChannel); @@ -302,12 +306,12 @@ public HederaTransactionResult accountCreate(HederaTransaction transaction) thro throw new IllegalStateException("Invalid transaction type."); } - if (transResult != null && response != null) { + if (transResult != null && response != null) { transResult.setPrecheckResult(response.getNodeTransactionPrecheckCode()); } return transResult; - } + } /** * Sends a transaction to a node to add a claim to an account and returns the result of the request @@ -323,7 +327,7 @@ public HederaTransactionResult addClaim(HederaTransaction transaction) throws In TransactionResponse response = null; HederaTransactionResult transResult = new HederaTransactionResult(); - + if (transaction.getProtobuf().getBody().hasCryptoAddClaim()) { openChannel(); CryptoServiceGrpc.CryptoServiceBlockingStub blockingStub = CryptoServiceGrpc.newBlockingStub(this.grpcChannel); @@ -340,12 +344,12 @@ public HederaTransactionResult addClaim(HederaTransaction transaction) throws In } else { throw new IllegalStateException("Invalid transaction type."); } - if(transResult != null && response != null) { + if(transResult != null && response != null) { transResult.setPrecheckResult(response.getNodeTransactionPrecheckCode()); } return transResult; - } + } /** * Sends a transaction to a node to transfer tokens from an account to another and returns the result of the request @@ -361,7 +365,7 @@ public HederaTransactionResult accountTransfer(HederaTransaction transaction) th TransactionResponse response = null; HederaTransactionResult transResult = new HederaTransactionResult(); - + if (transaction.getProtobuf().getBody().hasCryptoTransfer()) { openChannel(); CryptoServiceGrpc.CryptoServiceBlockingStub blockingStub = CryptoServiceGrpc.newBlockingStub(this.grpcChannel); @@ -385,12 +389,12 @@ public HederaTransactionResult accountTransfer(HederaTransaction transaction) th } else { throw new IllegalStateException("Invalid transaction type."); } - if(transResult != null && response != null) { + if(transResult != null && response != null) { transResult.setPrecheckResult(response.getNodeTransactionPrecheckCode()); } return transResult; - } + } /** * Sends a transaction to a node to transfer tokens from an account to another and returns the result of the request @@ -406,7 +410,7 @@ public HederaTransactionResult accountUpdate(HederaTransaction transaction) thro TransactionResponse response = null; HederaTransactionResult transResult = new HederaTransactionResult(); - + if (transaction.getProtobuf().getBody().hasCryptoUpdateAccount()) { openChannel(); CryptoServiceGrpc.CryptoServiceBlockingStub blockingStub = CryptoServiceGrpc.newBlockingStub(this.grpcChannel); @@ -423,13 +427,13 @@ public HederaTransactionResult accountUpdate(HederaTransaction transaction) thro } else { throw new IllegalStateException("Invalid transaction type."); } - if(transResult != null && response != null) { + if(transResult != null && response != null) { transResult.setPrecheckResult(response.getNodeTransactionPrecheckCode()); } return transResult; - } - + } + /** * Sends a transaction to a node to append to a file and returns the result of the request * @param transaction the {@link HederaTransaction} to send @@ -444,7 +448,7 @@ public HederaTransactionResult fileAppend(HederaTransaction transaction) throws TransactionResponse response = null; HederaTransactionResult transResult = new HederaTransactionResult(); - + if (transaction.getProtobuf().getBody().hasFileAppend()) { openChannel(); FileServiceGrpc.FileServiceBlockingStub blockingStub = FileServiceGrpc.newBlockingStub(this.grpcChannel); @@ -461,13 +465,13 @@ public HederaTransactionResult fileAppend(HederaTransaction transaction) throws } else { throw new IllegalStateException("Invalid transaction type."); } - if(transResult != null && response != null) { + if(transResult != null && response != null) { transResult.setPrecheckResult(response.getNodeTransactionPrecheckCode()); } return transResult; - } - + } + /** * Sends a transaction to a node to create a file and returns the result of the request * @param transaction the {@link HederaTransaction} to send @@ -482,7 +486,7 @@ public HederaTransactionResult fileCreate(HederaTransaction transaction) throws TransactionResponse response = null; HederaTransactionResult transResult = new HederaTransactionResult(); - + if (transaction.getProtobuf().getBody().hasFileCreate()) { openChannel(); FileServiceGrpc.FileServiceBlockingStub blockingStub = FileServiceGrpc.newBlockingStub(this.grpcChannel); @@ -500,12 +504,12 @@ public HederaTransactionResult fileCreate(HederaTransaction transaction) throws throw new IllegalStateException("Invalid transaction type."); } - if(transResult != null && response != null) { + if(transResult != null && response != null) { transResult.setPrecheckResult(response.getNodeTransactionPrecheckCode()); } return transResult; - } + } /** * Sends a transaction to a node to delete a file and returns the result of the request @@ -521,7 +525,7 @@ public HederaTransactionResult fileDelete(HederaTransaction transaction) throws TransactionResponse response = null; HederaTransactionResult transResult = new HederaTransactionResult(); - + if (transaction.getProtobuf().getBody().hasFileDelete()) { openChannel(); FileServiceGrpc.FileServiceBlockingStub blockingStub = FileServiceGrpc.newBlockingStub(this.grpcChannel); @@ -539,12 +543,12 @@ public HederaTransactionResult fileDelete(HederaTransaction transaction) throws throw new IllegalStateException("Invalid transaction type."); } - if(transResult != null && response != null) { + if(transResult != null && response != null) { transResult.setPrecheckResult(response.getNodeTransactionPrecheckCode()); } return transResult; - } + } /** * Sends a transaction to a node to update a file and returns the result of the request @@ -560,7 +564,7 @@ public HederaTransactionResult fileUpdate(HederaTransaction transaction) throws TransactionResponse response = null; HederaTransactionResult transResult = new HederaTransactionResult(); - + if (transaction.getProtobuf().getBody().hasFileUpdate()) { openChannel(); FileServiceGrpc.FileServiceBlockingStub blockingStub = FileServiceGrpc.newBlockingStub(this.grpcChannel); @@ -578,12 +582,12 @@ public HederaTransactionResult fileUpdate(HederaTransaction transaction) throws throw new IllegalStateException("Invalid transaction type."); } - if(transResult != null && response != null) { + if(transResult != null && response != null) { transResult.setPrecheckResult(response.getNodeTransactionPrecheckCode()); } return transResult; - } + } /** * Sends a transaction to a node to call a smart contract function and returns the result of the request @@ -599,7 +603,7 @@ public HederaTransactionResult contractCall(HederaTransaction transaction) throw TransactionResponse response = null; HederaTransactionResult transResult = new HederaTransactionResult(); - + if (transaction.getProtobuf().getBody().hasContractCall()) { openChannel(); SmartContractServiceGrpc.SmartContractServiceBlockingStub blockingStub = SmartContractServiceGrpc.newBlockingStub(this.grpcChannel); @@ -617,12 +621,12 @@ public HederaTransactionResult contractCall(HederaTransaction transaction) throw throw new IllegalStateException("Invalid transaction type."); } - if(transResult != null && response != null) { + if(transResult != null && response != null) { transResult.setPrecheckResult(response.getNodeTransactionPrecheckCode()); } return transResult; - } + } /** * Sends a transaction to a node to create a smart contract instance and returns the result of the request @@ -638,7 +642,7 @@ public HederaTransactionResult contractCreate(HederaTransaction transaction) thr TransactionResponse response = null; HederaTransactionResult transResult = new HederaTransactionResult(); - + if (transaction.getProtobuf().getBody().hasContractCreateInstance()) { openChannel(); SmartContractServiceGrpc.SmartContractServiceBlockingStub blockingStub = SmartContractServiceGrpc.newBlockingStub(this.grpcChannel); @@ -656,12 +660,12 @@ public HederaTransactionResult contractCreate(HederaTransaction transaction) thr throw new IllegalStateException("Invalid transaction type."); } - if(transResult != null && response != null) { + if(transResult != null && response != null) { transResult.setPrecheckResult(response.getNodeTransactionPrecheckCode()); } return transResult; - } + } /** * Sends a transaction to a node to create a smart contract instance and returns the result of the request @@ -677,7 +681,7 @@ public HederaTransactionResult contractUpdate(HederaTransaction transaction) thr TransactionResponse response = null; HederaTransactionResult transResult = new HederaTransactionResult(); - + if (transaction.getProtobuf().getBody().hasContractUpdateInstance()) { openChannel(); SmartContractServiceGrpc.SmartContractServiceBlockingStub blockingStub = SmartContractServiceGrpc.newBlockingStub(this.grpcChannel); @@ -695,12 +699,12 @@ public HederaTransactionResult contractUpdate(HederaTransaction transaction) thr throw new IllegalStateException("Invalid transaction type."); } - if(transResult != null && response != null) { + if(transResult != null && response != null) { transResult.setPrecheckResult(response.getNodeTransactionPrecheckCode()); } return transResult; - } + } /** * Sends a query to a node to call a local smart contract function and returns the result of the request @@ -738,7 +742,7 @@ public Response contractCallLocal(HederaQuery query) throws InterruptedException return response; } - + /** * Sends a query to a node to get a smart contract's byte code and returns the result of the request * @param query the {@link HederaQuery} to send @@ -1063,7 +1067,7 @@ public Response getTransactionFastRecord(HederaQuery query) throws InterruptedEx return response; } - + /** * Sends a query to a node to get file contents and returns the result of the request * @param query the {@link HederaQuery} to send @@ -1135,7 +1139,7 @@ public Response getFileInfo(HederaQuery query) throws InterruptedException, Stat return response; } - + private void shutdown() throws InterruptedException { if (this.grpcChannel != null) { @@ -1147,7 +1151,7 @@ private void shutdown() throws InterruptedException { } } - + private void openChannel() { if (this.grpcChannel == null) { if (!host.equals("") && (port != 0)) { diff --git a/sdk/src/main/java/com/hedera/sdk/query/HederaQuery.java b/sdk/src/main/java/com/hedera/sdk/query/HederaQuery.java index 57ea263ef..eb40aa85a 100644 --- a/sdk/src/main/java/com/hedera/sdk/query/HederaQuery.java +++ b/sdk/src/main/java/com/hedera/sdk/query/HederaQuery.java @@ -2,8 +2,8 @@ /** * This class handles the generation of protobuf for Queries to Hedera Hashgraph */ -import java.io.Serializable; +import java.io.Serializable; import com.hederahashgraph.api.proto.java.ContractCallLocalQuery; import com.hederahashgraph.api.proto.java.ContractGetBytecodeQuery; import com.hederahashgraph.api.proto.java.ContractGetInfoQuery; @@ -20,15 +20,13 @@ import com.hederahashgraph.api.proto.java.TransactionGetFastRecordQuery; import com.hederahashgraph.api.proto.java.TransactionGetReceiptQuery; import com.hederahashgraph.api.proto.java.TransactionGetRecordQuery; - -import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class HederaQuery implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaQuery.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaQuery.class); private static final long serialVersionUID = 1; - - /* + + /* * list of allowed types of query being handled by the instance of this object */ public enum QueryType { @@ -58,7 +56,7 @@ public enum QueryType { * Generic query data object */ public Object queryData = null; - + /** * Default constructor */ @@ -133,10 +131,10 @@ public Query getProtobuf() { break; case NOTSET: - throw new IllegalArgumentException("Query type not set. Unable to generate data."); + throw new IllegalArgumentException("Query type not set. Unable to generate data."); } - + return query.build(); } } diff --git a/sdk/src/main/java/com/hedera/sdk/query/HederaQueryBySolidityID.java b/sdk/src/main/java/com/hedera/sdk/query/HederaQueryBySolidityID.java index 4c64e921a..7b7f45b5c 100644 --- a/sdk/src/main/java/com/hedera/sdk/query/HederaQueryBySolidityID.java +++ b/sdk/src/main/java/com/hedera/sdk/query/HederaQueryBySolidityID.java @@ -1,9 +1,7 @@ package com.hedera.sdk.query; import java.io.Serializable; -import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import com.hedera.sdk.common.HederaAccountID; import com.hedera.sdk.common.HederaContractID; import com.hedera.sdk.common.Utilities; @@ -17,7 +15,7 @@ * */ public class HederaQueryBySolidityID implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaQueryBySolidityID.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaQueryBySolidityID.class); private static final long serialVersionUID = 1; private ResponseCodeEnum precheckResult = ResponseCodeEnum.UNKNOWN; private long cost = 0; @@ -48,7 +46,7 @@ public HederaContractID contractID() { public void setNode (HederaNode node) { this.node = node; } - + /** * Default constructor */ @@ -79,7 +77,7 @@ public byte[] getStateProof() { } /** - * Runs the query to get results from a solidityIDQuery + * Runs the query to get results from a solidityIDQuery * If successful, the method populates the properties this object depending on the type of answer requested * @param payment a {@link HederaTransaction} message to indicate how this query will be paid for, this can be null for Cost queries * @param responseType the type of response requested from the query @@ -89,7 +87,7 @@ public byte[] getStateProof() { */ public boolean query(HederaTransaction payment, HederaQueryHeader.QueryResponseType responseType, String solidityID) throws InterruptedException { boolean result = true; - + // build the query // Header @@ -98,26 +96,26 @@ public boolean query(HederaTransaction payment, HederaQueryHeader.QueryResponseT queryHeader.payment = payment; queryHeader.responseType = responseType; } - + // get solidity id query GetBySolidityIDQuery.Builder getBySolidityIDQuery = GetBySolidityIDQuery.newBuilder(); getBySolidityIDQuery.setSolidityID(solidityID); getBySolidityIDQuery.setHeader(queryHeader.getProtobuf()); - + // the query itself HederaQuery query = new HederaQuery(); query.queryType = QueryType.GETBYSOLIDITYID; query.queryData = getBySolidityIDQuery.build(); - + // query now set, send to network Utilities.throwIfNull("Node", this.node); Response response = this.node.getContractBySolidityId(query); GetBySolidityIDResponse.Builder getBySolidityIDResponse = response.getGetBySolidityID().toBuilder(); - + // check response header first ResponseHeader.Builder responseHeader = getBySolidityIDResponse.getHeaderBuilder(); - + this.precheckResult = responseHeader.getNodeTransactionPrecheckCode(); if (this.precheckResult == ResponseCodeEnum.OK) { @@ -126,7 +124,7 @@ public boolean query(HederaTransaction payment, HederaQueryHeader.QueryResponseT this.stateProof = responseHeader.getStateProof().toByteArray(); this.contractID = null; this.accountID = null; - + if (getBySolidityIDResponse.hasAccountID()) { this.accountID = new HederaAccountID(getBySolidityIDResponse.getAccountID()); } @@ -136,7 +134,7 @@ public boolean query(HederaTransaction payment, HederaQueryHeader.QueryResponseT } else { result = false; } - + return result; } @@ -186,5 +184,5 @@ public boolean queryCostAnswerStateProof(String solidityID) throws InterruptedEx return query(null, HederaQueryHeader.QueryResponseType.COST_ANSWER_STATE_PROOF, solidityID); } - + } diff --git a/sdk/src/main/java/com/hedera/sdk/query/HederaQueryHeader.java b/sdk/src/main/java/com/hedera/sdk/query/HederaQueryHeader.java index 21570679a..14746fd44 100644 --- a/sdk/src/main/java/com/hedera/sdk/query/HederaQueryHeader.java +++ b/sdk/src/main/java/com/hedera/sdk/query/HederaQueryHeader.java @@ -1,10 +1,7 @@ package com.hedera.sdk.query; import java.io.Serializable; - -import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import com.hedera.sdk.transaction.HederaTransaction; import com.hederahashgraph.api.proto.java.*; /** @@ -12,7 +9,7 @@ * */ public class HederaQueryHeader implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaQuery.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaQuery.class); private static final long serialVersionUID = 1; /** * Allowed types of responses required by the query @@ -34,7 +31,7 @@ public enum QueryResponseType { public QueryResponseType responseType = QueryResponseType.ANSWER_ONLY; /** - * Default constructor + * Default constructor */ public HederaQueryHeader() { @@ -78,10 +75,11 @@ public QueryHeader getProtobuf() { break; case NOTSET: - throw new IllegalArgumentException("Response type not set. Unable to generate data."); + throw new IllegalArgumentException("Response type not set. Unable to generate data."); } - + return queryHeader.build(); } } + \ No newline at end of file diff --git a/sdk/src/main/java/com/hedera/sdk/transaction/HederaTransaction.java b/sdk/src/main/java/com/hedera/sdk/transaction/HederaTransaction.java index 3819a6a11..ed14e8ea9 100644 --- a/sdk/src/main/java/com/hedera/sdk/transaction/HederaTransaction.java +++ b/sdk/src/main/java/com/hedera/sdk/transaction/HederaTransaction.java @@ -1,7 +1,7 @@ package com.hedera.sdk.transaction; + import java.io.Serializable; import java.util.ArrayList; -import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.hedera.sdk.account.HederaAccount; import com.hedera.sdk.account.HederaAccountAmount; @@ -24,7 +24,7 @@ * */ public class HederaTransaction implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaTransaction.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaTransaction.class); private static final long serialVersionUID = 1; private ResponseCodeEnum precheckResult = ResponseCodeEnum.UNKNOWN; private long cost = 0; @@ -32,7 +32,7 @@ public class HederaTransaction implements Serializable { private HederaNode node = null; private HederaTransactionReceipt transactionReceipt = null; private HederaTransactionRecord transactionRecord = null; - + /** * get or set the body ({@link HederaTransactionBody} of the transaction */ @@ -80,7 +80,7 @@ public long getCost() { public byte[] getStateProof() { return this.stateProof; } - + /** * Default constructor */ @@ -97,6 +97,7 @@ public HederaTransaction(HederaTransactionBody body, HederaSignatureList sigs) { this.body = body; this.signatureList = sigs; + } /** * returns the protobuf for this transaction @@ -106,11 +107,12 @@ public Transaction getProtobuf() { // Generates the protobuf payload for this class Transaction.Builder transactionProtobuf = Transaction.newBuilder(); - + transactionProtobuf.setBody(this.body.getProtobuf()); // if we have key signature pairs, use these\ transactionProtobuf.setSigs(this.signatureList.getProtobuf()); + return transactionProtobuf.build(); } /** @@ -126,9 +128,9 @@ public void addSignature(HederaSignature signature) { /** * Gets a receipt for a transaction - * Get the receipt of a transaction, given its transaction ID. Once a transaction reaches consensus, - * then information about whether it succeeded or failed will be available until the end of the receipt period. - * Before and after the receipt period, and for a transaction that was never submitted, the receipt is unknown. + * Get the receipt of a transaction, given its transaction ID. Once a transaction reaches consensus, + * then information about whether it succeeded or failed will be available until the end of the receipt period. + * Before and after the receipt period, and for a transaction that was never submitted, the receipt is unknown. * This query is free (the payment field is left empty). * @param transactionID the transactionID the receipt is requested for * @return true if successful @@ -147,18 +149,18 @@ public boolean getReceipt(HederaTransactionID transactionID) throws InterruptedE // Header HederaQueryHeader queryHeader = new HederaQueryHeader(); queryHeader.responseType = QueryResponseType.ANSWER_ONLY; - + // get receipt query TransactionGetReceiptQuery.Builder getReceiptQuery = TransactionGetReceiptQuery.newBuilder(); getReceiptQuery.setTransactionID(transactionID.getProtobuf()); - + getReceiptQuery.setHeader(queryHeader.getProtobuf()); - + // the query itself HederaQuery query = new HederaQuery(); query.queryType = QueryType.TRANSACTIONGETRECEIPT; query.queryData = getReceiptQuery.build(); - + // query now set, send to network Utilities.throwIfNull("Node", this.node); response = this.node.getTransactionReceipt(query); @@ -173,10 +175,10 @@ public boolean getReceipt(HederaTransactionID transactionID) throws InterruptedE return true; } /** - * Get a fast record for a transaction. These only last 180s and are free - * If the transaction created an account, file, or smart contract instance, then the record will contain the ID for what it created. - * If the transaction called a smart contract function, then the record contains the result of that call. - * If the transaction was a cryptocurrency transfer, then the record includes the TransferList which gives the details of that transfer. + * Get a fast record for a transaction. These only last 180s and are free + * If the transaction created an account, file, or smart contract instance, then the record will contain the ID for what it created. + * If the transaction called a smart contract function, then the record contains the result of that call. + * If the transaction was a cryptocurrency transfer, then the record includes the TransferList which gives the details of that transfer. * If the transaction didn't return anything that should be in the record, then the results field will be set to nothing. * @param transactionID the {@link HederaTransactionID} for which the record is requested * @param responseType the type of response required @@ -185,21 +187,21 @@ public boolean getReceipt(HederaTransactionID transactionID) throws InterruptedE */ public boolean getFastRecord(HederaTransactionID transactionID, HederaQueryHeader.QueryResponseType responseType) throws InterruptedException { boolean result = true; - + // build the query // Header HederaQueryHeader queryHeader = new HederaQueryHeader(); - + TransactionGetFastRecordQuery.Builder getQuery = TransactionGetFastRecordQuery.newBuilder(); getQuery.setTransactionID(transactionID.getProtobuf()); getQuery.setHeader(queryHeader.getProtobuf()); - + // the query itself HederaQuery query = new HederaQuery(); query.queryType = QueryType.TRANSACTIONGETFASTRECORD; query.queryData = getQuery.build(); - + // query now set, send to network Utilities.throwIfNull("Node", this.node); Response response = this.node.getTransactionFastRecord(query); @@ -209,29 +211,29 @@ public boolean getFastRecord(HederaTransactionID transactionID, HederaQueryHeade ResponseHeader responseHeader = getResponse.getHeader(); this.precheckResult = responseHeader.getNodeTransactionPrecheckCode(); - + if (this.precheckResult == ResponseCodeEnum.OK) { // cost this.cost = responseHeader.getCost(); //state proof this.stateProof = responseHeader.getStateProof().toByteArray(); - + this.transactionRecord = new HederaTransactionRecord(getResponse.getTransactionRecord()); - + } else { result = false; } - + return result; } /** - * Get the record for a transaction. - * If the transaction requested a record, then the record lasts for one hour, and a state proof is available for it. - * If the transaction created an account, file, or smart contract instance, then the record will contain the ID for what it created. - * If the transaction called a smart contract function, then the record contains the result of that call. - * If the transaction was a cryptocurrency transfer, then the record includes the TransferList which gives the details of that transfer. + * Get the record for a transaction. + * If the transaction requested a record, then the record lasts for one hour, and a state proof is available for it. + * If the transaction created an account, file, or smart contract instance, then the record will contain the ID for what it created. + * If the transaction called a smart contract function, then the record contains the result of that call. + * If the transaction was a cryptocurrency transfer, then the record includes the TransferList which gives the details of that transfer. * If the transaction didn't return anything that should be in the record, then the results field will be set to nothing. * @param payment the {@link HederaTransaction} payment for requesting the record * @param transactionID the {@link HederaTransactionID} for which the record is requested @@ -241,7 +243,7 @@ public boolean getFastRecord(HederaTransactionID transactionID, HederaQueryHeade */ public boolean getRecord(HederaTransaction payment, HederaTransactionID transactionID, HederaQueryHeader.QueryResponseType responseType) throws InterruptedException { boolean result = true; - + // build the query // Header @@ -250,17 +252,17 @@ public boolean getRecord(HederaTransaction payment, HederaTransactionID transact queryHeader.payment = payment; queryHeader.responseType = responseType; } - + TransactionGetRecordQuery.Builder getQuery = TransactionGetRecordQuery.newBuilder(); getQuery.setTransactionID(transactionID.getProtobuf()); getQuery.setHeader(queryHeader.getProtobuf()); - - + + // the query itself HederaQuery query = new HederaQuery(); query.queryType = QueryType.TRANSACTIONGETRECORD; query.queryData = getQuery.build(); - + // query now set, send to network Utilities.throwIfNull("Node", this.node); Response response = this.node.getTransactionRecord(query); @@ -270,29 +272,29 @@ public boolean getRecord(HederaTransaction payment, HederaTransactionID transact ResponseHeader responseHeader = getResponse.getHeader(); this.precheckResult = responseHeader.getNodeTransactionPrecheckCode(); - + if (this.precheckResult == ResponseCodeEnum.OK) { // cost this.cost = responseHeader.getCost(); //state proof this.stateProof = responseHeader.getStateProof().toByteArray(); - + this.transactionRecord = new HederaTransactionRecord(getResponse.getTransactionRecord()); - + } else { result = false; } - + return result; } /** - * Get the record for a transaction without a state proof - * If the transaction requested a record, then the record lasts for one hour, and a state proof is available for it. - * If the transaction created an account, file, or smart contract instance, then the record will contain the ID for what it created. - * If the transaction called a smart contract function, then the record contains the result of that call. - * If the transaction was a cryptocurrency transfer, then the record includes the TransferList which gives the details of that transfer. + * Get the record for a transaction without a state proof + * If the transaction requested a record, then the record lasts for one hour, and a state proof is available for it. + * If the transaction created an account, file, or smart contract instance, then the record will contain the ID for what it created. + * If the transaction called a smart contract function, then the record contains the result of that call. + * If the transaction was a cryptocurrency transfer, then the record includes the TransferList which gives the details of that transfer. * If the transaction didn't return anything that should be in the record, then the results field will be set to nothing. * @param payment the {@link HederaTransaction} payment for requesting the record * @param transactionID the {@link HederaTransactionID} for which the record is requested @@ -304,11 +306,11 @@ public boolean getRecordAnswerOnly(HederaTransaction payment, HederaTransactionI return getRecord(payment, transactionID, QueryResponseType.ANSWER_ONLY); } /** - * Get the record for a transaction with a state proof - * If the transaction requested a record, then the record lasts for one hour, and a state proof is available for it. - * If the transaction created an account, file, or smart contract instance, then the record will contain the ID for what it created. - * If the transaction called a smart contract function, then the record contains the result of that call. - * If the transaction was a cryptocurrency transfer, then the record includes the TransferList which gives the details of that transfer. + * Get the record for a transaction with a state proof + * If the transaction requested a record, then the record lasts for one hour, and a state proof is available for it. + * If the transaction created an account, file, or smart contract instance, then the record will contain the ID for what it created. + * If the transaction called a smart contract function, then the record contains the result of that call. + * If the transaction was a cryptocurrency transfer, then the record includes the TransferList which gives the details of that transfer. * If the transaction didn't return anything that should be in the record, then the results field will be set to nothing. * @param payment the {@link HederaTransaction} payment for requesting the record * @param transactionID the {@link HederaTransactionID} for which the record is requested @@ -320,11 +322,11 @@ public boolean getRecordStateProof(HederaTransaction payment, HederaTransactionI return getRecord(payment, transactionID, HederaQueryHeader.QueryResponseType.ANSWER_STATE_PROOF); } /** - * Get cost of obtaining a record for a transaction without a state proof - * If the transaction requested a record, then the record lasts for one hour, and a state proof is available for it. - * If the transaction created an account, file, or smart contract instance, then the record will contain the ID for what it created. - * If the transaction called a smart contract function, then the record contains the result of that call. - * If the transaction was a cryptocurrency transfer, then the record includes the TransferList which gives the details of that transfer. + * Get cost of obtaining a record for a transaction without a state proof + * If the transaction requested a record, then the record lasts for one hour, and a state proof is available for it. + * If the transaction created an account, file, or smart contract instance, then the record will contain the ID for what it created. + * If the transaction called a smart contract function, then the record contains the result of that call. + * If the transaction was a cryptocurrency transfer, then the record includes the TransferList which gives the details of that transfer. * If the transaction didn't return anything that should be in the record, then the results field will be set to nothing. * @param transactionID the {@link HederaTransactionID} for which the record is requested * @return true if successful @@ -335,11 +337,11 @@ public boolean getRecordCostAnswer(HederaTransactionID transactionID) throws Int return getRecord(null, transactionID, HederaQueryHeader.QueryResponseType.COST_ANSWER); } /** - * Get cost of obtaining a record for a transaction with a state proof - * If the transaction requested a record, then the record lasts for one hour, and a state proof is available for it. - * If the transaction created an account, file, or smart contract instance, then the record will contain the ID for what it created. - * If the transaction called a smart contract function, then the record contains the result of that call. - * If the transaction was a cryptocurrency transfer, then the record includes the TransferList which gives the details of that transfer. + * Get cost of obtaining a record for a transaction with a state proof + * If the transaction requested a record, then the record lasts for one hour, and a state proof is available for it. + * If the transaction created an account, file, or smart contract instance, then the record will contain the ID for what it created. + * If the transaction called a smart contract function, then the record contains the result of that call. + * If the transaction was a cryptocurrency transfer, then the record includes the TransferList which gives the details of that transfer. * If the transaction didn't return anything that should be in the record, then the results field will be set to nothing. * @param transactionID the {@link HederaTransactionID} for which the record is requested * @return true if successful @@ -349,7 +351,7 @@ public boolean getRecordCostAnswerStateProof(HederaTransactionID transactionID) return getRecord(null, transactionID, HederaQueryHeader.QueryResponseType.COST_ANSWER_STATE_PROOF); } - + /** * Generates a transfer transaction to enable payments for queries * @param txQueryDefaults the defaults for transactions and queries @@ -358,7 +360,7 @@ public boolean getRecordCostAnswerStateProof(HederaTransactionID transactionID) */ public HederaTransaction(HederaTransactionAndQueryDefaults txQueryDefaults, long queryFee) throws Exception { - + // create a transaction ID (starts now with accountID of the paying account id) HederaTransactionID hederaTransactionID = new HederaTransactionID(txQueryDefaults.payingAccountID); @@ -369,20 +371,20 @@ public HederaTransaction(HederaTransactionAndQueryDefaults txQueryDefaults, long fromAccountAmount = new HederaAccountAmount(txQueryDefaults.payingAccountID.shardNum, txQueryDefaults.payingAccountID.realmNum, txQueryDefaults.payingAccountID.accountNum, -queryFee); // positive amount to the Node's account to pay for the query HederaAccountAmount toAccountAmount = new HederaAccountAmount(txQueryDefaults.node.getAccountID(), queryFee); - + accountAmounts.add(fromAccountAmount); accountAmounts.add(toAccountAmount); - + HederaAccount account = new HederaAccount(); // validate inputs Utilities.throwIfNull("txQueryDefaults", txQueryDefaults); Utilities.throwIfNull("txQueryDefaults.node", txQueryDefaults.node); Utilities.throwIfAccountIDInvalid("txQueryDefaults.node.getAccountID()", txQueryDefaults.node.getAccountID()); Utilities.throwIfNull("txQueryDefaults.payingKeyPair", txQueryDefaults.payingKeyPair); - + account.txQueryDefaults = txQueryDefaults; account.setNode(txQueryDefaults.node); - + // get the body for the transaction so we can sign it TransactionBody transferBody = account.bodyToSignForTransfer( hederaTransactionID @@ -407,8 +409,9 @@ public HederaTransaction(HederaTransactionAndQueryDefaults txQueryDefaults, long , txQueryDefaults.generateRecord , txQueryDefaults.memo , account.getTransferTransactionBody(accountAmounts)); - + // add the signatures this.signatureList = sigsForTransaction; + } } diff --git a/sdk/src/main/java/com/hedera/sdk/transaction/HederaTransactionBody.java b/sdk/src/main/java/com/hedera/sdk/transaction/HederaTransactionBody.java index 90c80c177..2d7fa4c39 100644 --- a/sdk/src/main/java/com/hedera/sdk/transaction/HederaTransactionBody.java +++ b/sdk/src/main/java/com/hedera/sdk/transaction/HederaTransactionBody.java @@ -1,7 +1,6 @@ package com.hedera.sdk.transaction; -import java.io.Serializable; -import org.slf4j.Logger; +import java.io.Serializable; import org.slf4j.LoggerFactory; import com.hedera.sdk.common.HederaAccountID; import com.hedera.sdk.common.HederaDuration; @@ -11,7 +10,7 @@ * this class manages transaction bodies */ public class HederaTransactionBody implements Serializable { - final Logger logger = LoggerFactory.getLogger(HederaTransactionBody.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaTransactionBody.class); private static final long serialVersionUID = 1; /** * enumeration of allowed transaction types @@ -64,7 +63,7 @@ public enum TransactionType { * get or set the type of transaction */ public TransactionType transactionType = TransactionType.NOTSET; - + /** * Default constructor */ @@ -153,10 +152,10 @@ public TransactionBody getProtobuf() { break; case NOTSET: - throw new IllegalArgumentException("Transaction type not set. Unable to generate data."); + throw new IllegalArgumentException("Transaction type not set. Unable to generate data."); } - + return transactionBodyProtobuf.build(); } } diff --git a/sdk/src/main/java/com/hedera/sdk/transaction/HederaTransactionResult.java b/sdk/src/main/java/com/hedera/sdk/transaction/HederaTransactionResult.java index e583d997e..cba4d55e7 100644 --- a/sdk/src/main/java/com/hedera/sdk/transaction/HederaTransactionResult.java +++ b/sdk/src/main/java/com/hedera/sdk/transaction/HederaTransactionResult.java @@ -1,32 +1,29 @@ package com.hedera.sdk.transaction; import java.io.Serializable; - -import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import com.hedera.sdk.common.HederaTransactionID; import com.hederahashgraph.api.proto.java.ResponseCodeEnum; -/* +/* * Holds the response from a transaction call, including the transactionID values necessary to get the transaction ID * for subsequent queries (this is useful if the transaction ID was generated inside the sdk). */ public class HederaTransactionResult implements Serializable { /** - * + * */ private static final long serialVersionUID = 1L; - final Logger logger = LoggerFactory.getLogger(HederaTransactionResult.class); + final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(HederaTransactionResult.class); private ResponseCodeEnum precheckResult = ResponseCodeEnum.OK; /** - * the {@link HederaTransactionID} for this transaction + * the {@link HederaTransactionID} for this transaction */ public HederaTransactionID hederaTransactionID = new HederaTransactionID(); /** * Returns the {@link ResponseCodeEnum} - * @return {@link ResponseCodeEnum} + * @return {@link ResponseCodeEnum} */ public ResponseCodeEnum getPrecheckResult() { diff --git a/sdk/src/main/resources/log4j.xml b/sdk/src/main/resources/log4j.xml deleted file mode 100644 index 2fcff478c..000000000 --- a/sdk/src/main/resources/log4j.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sdk/src/test/java/test/hedera/sdk/cryptography/CryptoUtilsTest.java b/sdk/src/test/java/test/hedera/sdk/cryptography/CryptoUtilsTest.java index fb84edffb..5fd08a366 100644 --- a/sdk/src/test/java/test/hedera/sdk/cryptography/CryptoUtilsTest.java +++ b/sdk/src/test/java/test/hedera/sdk/cryptography/CryptoUtilsTest.java @@ -9,7 +9,8 @@ import org.junit.jupiter.api.TestInstance.Lifecycle; import java.util.List; -import com.hedera.sdk.common.HederaKey.KeyType; +import com.hedera.sdk.common.HederaKeyPair; +import com.hedera.sdk.common.HederaKeyPair.KeyType; import com.hedera.sdk.cryptography.CryptoUtils; import com.hedera.sdk.cryptography.Reference; import com.hedera.sdk.cryptography.Seed; diff --git a/sdk/src/test/java/test/hedera/sdk/cryptography/HederaCryptoKeyPairTest2.java b/sdk/src/test/java/test/hedera/sdk/cryptography/HederaCryptoKeyPairTest2.java index 74018112d..fa9c391a8 100644 --- a/sdk/src/test/java/test/hedera/sdk/cryptography/HederaCryptoKeyPairTest2.java +++ b/sdk/src/test/java/test/hedera/sdk/cryptography/HederaCryptoKeyPairTest2.java @@ -6,7 +6,8 @@ import java.security.SecureRandom; import java.util.Arrays; -import com.hedera.sdk.common.HederaKey.KeyType; +import com.hedera.sdk.common.HederaKeyPair; +import com.hedera.sdk.common.HederaKeyPair.KeyType; import com.hedera.sdk.cryptography.CryptoUtils; import org.junit.jupiter.api.BeforeEach; diff --git a/sdk/src/test/java/test/hedera/sdk/cryptography/KeyTestED25519.java b/sdk/src/test/java/test/hedera/sdk/cryptography/KeyTestED25519.java index 4aa843dbe..f55b9078e 100644 --- a/sdk/src/test/java/test/hedera/sdk/cryptography/KeyTestED25519.java +++ b/sdk/src/test/java/test/hedera/sdk/cryptography/KeyTestED25519.java @@ -12,7 +12,8 @@ import org.junit.jupiter.api.Test; import org.spongycastle.util.encoders.Hex; -import com.hedera.sdk.common.HederaKey.KeyType; +import com.hedera.sdk.common.HederaKeyPair; +import com.hedera.sdk.common.HederaKeyPair.KeyType; @Disabled class KeyTestED25519 { diff --git a/sdk/src/test/java/test/hedera/sdk/file/HederaFileCreateDefaultsTest.java b/sdk/src/test/java/test/hedera/sdk/file/HederaFileCreateDefaultsTest.java index 622ac1b95..3e866f38d 100644 --- a/sdk/src/test/java/test/hedera/sdk/file/HederaFileCreateDefaultsTest.java +++ b/sdk/src/test/java/test/hedera/sdk/file/HederaFileCreateDefaultsTest.java @@ -4,7 +4,8 @@ import static org.junit.Assert.assertNotNull; import static org.junit.jupiter.api.Assertions.assertEquals; -import com.hedera.sdk.common.HederaKey.KeyType; +import com.hedera.sdk.common.HederaKeyPair; +import com.hedera.sdk.common.HederaKeyPair.KeyType; import com.hedera.sdk.file.HederaFileCreateDefaults; import org.junit.jupiter.api.DisplayName; diff --git a/sdk/target/classes/main/proto/AdminDelete.proto b/sdk/target/classes/main/proto/AdminDelete.proto deleted file mode 100644 index e09acf3eb..000000000 --- a/sdk/target/classes/main/proto/AdminDelete.proto +++ /dev/null @@ -1,18 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "BasicTypes.proto"; -import "Timestamp.proto"; - -/* Delete a file or smart contract - can only be done with a Hedera admin multisig. When it is deleted, it immediately disappears from the system as seen by the user, but is still stored internally until the expiration time, at which time it is truly and permanently deleted. Until that time, it can be undeleted by the Hedera admin multisig. When a smart contract is deleted, the cryptocurrency account within it continues to exist, and is not affected by the expiration time here. */ -message AdminDeleteTransactionBody { - oneof id { - FileID fileID = 1; // the file to delete, in the format used in transactions - ContractID contractID = 2; // the contract instance to delete, in the format used in transactions - } - TimestampSeconds expirationTime = 3; // the time at which the "deleted" file should truly be permanently deleted -} diff --git a/sdk/target/classes/main/proto/AdminUndelete.proto b/sdk/target/classes/main/proto/AdminUndelete.proto deleted file mode 100644 index 426add9cf..000000000 --- a/sdk/target/classes/main/proto/AdminUndelete.proto +++ /dev/null @@ -1,16 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "BasicTypes.proto"; - -/* Undelete a file or smart contract that was deleted by AdminDelete - can only be done with a Hedera admin multisig. When it is deleted, it immediately disappears from the system as seen by the user, but is still stored internally until the expiration time, at which time it is truly and permanently deleted. Until that time, it can be undeleted by the Hedera admin multisig. When a smart contract is deleted, the cryptocurrency account within it continues to exist, and is not affected by the expiration time here. */ -message AdminUndeleteTransactionBody { - oneof id { - FileID fileID = 1; // the file to undelete, in the format used in transactions - ContractID contractID = 2; // the contract instance to undelete, in the format used in transactions - } -} diff --git a/sdk/target/classes/main/proto/BasicTypes.proto b/sdk/target/classes/main/proto/BasicTypes.proto deleted file mode 100644 index 4c28b3226..000000000 --- a/sdk/target/classes/main/proto/BasicTypes.proto +++ /dev/null @@ -1,189 +0,0 @@ -syntax = "proto3"; - -package proto; - -import "Timestamp.proto"; -import "Duration.proto"; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -/* Each shard has a nonnegative shard number. Each realm within a given shard has a nonnegative realm number (that number might be reused in other shards). And each account, file, and smart contract instance within a given realm has a nonnegative number (which might be reused in other realms). Every account, file, and smart contract instance is within exactly one realm. So a FileID is a triplet of numbers, like 0.1.2 for entity number 2 within realm 1 within shard 0. Each realm maintains a single counter for assigning numbers, so if there is a file with ID 0.1.2, then there won't be an account or smart contract instance with ID 0.1.2. - - Everything is partitioned into realms so that each Solidity smart contract can access everything in just a single realm, locking all those entities while it's running, but other smart contracts could potentially run in other realms in parallel. So realms allow Solidity to be parallelized somewhat, even though the language itself assumes everything is serial. */ -message ShardID { - int64 shardNum = 1; //the shard number (nonnegative) -} - -/* The ID for a realm. Within a given shard, every realm has a unique ID. Each account, file, and contract instance belongs to exactly one realm. */ -message RealmID { - int64 shardNum = 1; //the shard number (nonnegative) - int64 realmNum = 2; //the realm number (nonnegative) -} - -/* The ID for an a cryptocurrency account */ -message AccountID { - int64 shardNum = 1; //the shard number (nonnegative) - int64 realmNum = 2; //the realm number (nonnegative) - int64 accountNum = 3; //a nonnegative number unique within its realm -} - -/* The ID for a file */ -message FileID { - int64 shardNum = 1; //the shard number (nonnegative) - int64 realmNum = 2; //the realm number (nonnegative) - int64 fileNum = 3; //a nonnegative number unique within its realm -} - -/* The ID for a smart contract instance */ -message ContractID { - int64 shardNum = 1; //the shard number (nonnegative) - int64 realmNum = 2; //the realm number (nonnegative) - int64 contractNum = 3; //a nonnegative number unique within its realm -} - -/* The ID for a transaction. This is used for retrieving receipts and records for a transaction, for appending to a file right after creating it, for instantiating a smart contract with bytecode in a file just created, and internally by the network for detecting when duplicate transactions are submitted. A user might get a transaction processed faster by submitting it to N nodes, each with a different node account, but all with the same TransactionID. Then, the transaction will take effect when the first of all those nodes submits the transaction and it reaches consensus. The other transactions will not take effect. So this could make the transaction take effect faster, if any given node might be slow. However, the full transaction fee is charged for each transaction, so the total fee is N times as much if the transaction is sent to N nodes. */ -message TransactionID { - AccountID accountID = 2; //the account that paid for this transaction - Timestamp transactionValidStart = 1; // the transaction is invalid if consensusTimestamp < transactionID.transactionStartValid -} - -/* A Key can be a public key from one of the three supported systems (ed25519, RSA-3072, ECDSA with p384). Or, it can be the ID of a smart contract instance, which is authorized to act as if it had a key. If an account has an ed25519 key associated with it, then the corresponding private key must sign any transaction to transfer cryptocurrency out of it. And similarly for RSA and ECDSA. - * - * A Key can be a smart contract ID, which means that smart contract is to authorize operations as if it had signed with a key that it owned. The smart contract doesn't actually have a key, and doesn't actually sign a transaction. But it's as if a virtual transaction were created, and the smart contract signed it with a private key. - * - * A key can be a "threshold key", which means a list of M keys, any N of which must sign in order for the threshold signature to be considered valid. The keys within a threshold signature may themselves be threshold signatures, to allow complex signature requirements. - * - * A Key can be a list of keys. Their use is dependent on context. For example, a Hedera file is created with a list of keys, where all of them must sign a transaction to create or modify the file, but only one of them is needed to sign a transaction to delete the file. So it's a single list that sometimes acts as a 1-of-M threshold key, and sometimes acts as an M-of-M threshold key. - * - * A Key can contain a ThresholdKey or KeyList, which in turn contain a Key, so this mutual recursion would allow nesting arbitrarily deep. The current API only allows the nesting to a depth of 3 levels, such as the key being a list of threshold keys, each of which contains a list of primitive keys (e.g., ed25519). In the future, this requirement may be relaxed, to allow deeper nesting. - */ -message Key { - oneof key { - ContractID contractID = 1; // smart contract instance that is authorized as if it had signed with a key - bytes ed25519 = 2; // ed25519 public key - bytes RSA_3072 = 3; //RSA-3072 public key - bytes ECDSA_384 = 4; //ECDSA with the p-384 curve public key - ThresholdKey thresholdKey = 5; // a threshold N followed by a list of M keys, any N of which are required to form a valid signature - KeyList keyList = 6; // a list of Keys. - } -} - -/* A set of public keys that are used together to form a threshold signature. If the threshold is N and there are M keys, then this is an N of M threshold signature. If an account is associated with ThresholdKeys, then a transaction to move cryptocurrency out of it must be signed by a list of M signatures, where at most M-N of them are blank, and the other at least N of them are valid signatures corresponding to at least N of the public keys listed here. */ -message ThresholdKey { - uint32 threshold = 1; // a valid signature set must have at least this many signatures - KeyList keys = 2; // list of all the keys that can sign -} - -/* A list of keys */ -message KeyList { - repeated Key keys = 1; // list of keys -} - -/* A Signature corresponding to a Key. It is a sequence of bytes holding a public key signature from one of the three supported systems (ed25519, RSA-3072, ECDSA with p384). Or, it can be a list of signatures corresponding to a single threshold key. Or, it can be the ID of a smart contract instance, which is authorized to act as if it had a key. If an account has an ed25519 key associated with it, then the corresponding private key must sign any transaction to transfer cryptocurrency out of it. If it has a smart contract ID associated with it, then that smart contract is allowed to transfer cryptocurrency out of it. The smart contract doesn't actually have a key, and doesn't actually sign a transaction. But it's as if a virtual transaction were created, and the smart contract signed it with a private key. A key can also be a "threshold key", which means a list of M keys, any N of which must sign in order for the threshold signature to be considered valid. The keys within a threshold signature may themselves be threshold signatures, to allow complex signature requirements (this nesting is not supported in the currently, but will be supported in a future version of API). If a Signature message is missing the "signature" field, then this is considered to be a null signature. That is useful in cases such as threshold signatures, where some of the signatures can be null. - * - * The definition of Key uses mutual recursion, so it allows nesting that is arbitrarily deep. But the current API only accepts Key messages up to 3 levels deep, such as a list of threshold keys, each of which is a list of primitive keys. Therefore, the matching Signature will have the same limitation. This restriction may be relaxed in future versions of the API, to allow deeper nesting. - */ -message Signature { - oneof signature { - bytes contract = 1; // smart contract virtual signature (always length zero) - bytes ed25519 = 2; // ed25519 signature - bytes RSA_3072 = 3; //RSA-3072 signature - bytes ECDSA_384 = 4; //ECDSA p-384 signature - ThresholdSignature thresholdSignature = 5; // a list of signatures for a single N-of-M threshold Key. This must be a list of exactly M signatures, at least N of which are non-null. - SignatureList signatureList = 6; // a list of M signatures, each corresponding to a Key in a KeyList of the same length. - } -} - -/* A signature corresponding to a ThresholdKey. For an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null. */ -message ThresholdSignature { - SignatureList sigs = 2; // for an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null -} - -/* The signatures corresponding to a KeyList of the same length */ -message SignatureList { - repeated Signature sigs = 2; // each signature corresponds to a Key in the KeyList -} - -/* The functionalities provided by hedera hashgraph */ -enum HederaFunctionality { - CryptoCreates = 0; // crypto create account - CryptoTransfer = 1; // crypto transfer - CryptoUpdate = 2; // crypto update account - CryptoDelete = 3; // crypto delete account - CryptoAddClaim = 4; // crypto add claim to the account - CryptoDeletClaim = 5; // crypto delete claim to the account - ContractCall = 6; // Smart Contract Call - ContractCreate = 7; // Smart Contract Create Contract - ContractUpdate = 8; // Smart Contract update contract - FileCreate = 9; // File Operation create file - FileAppend = 10; // File Operation append file - FileUpdate = 11; // File Operation update file - FileDelete = 12; // File Operation delete file - CryptoGetAccountBalance = 13; // crypto get account balance - CryptoGetAccountRecords = 14; // crypto get account record - CryptoGetInfo = 15; // Crypto get info - ContractCallLocal = 16; // Smart Contract Call - ContractGetInfo = 17; // Smart Contract get info - ContractGetBytecode = 18; // Smart Contract, get the byte code - GetBySolidityID = 19; // Smart Contract, get by solidity ID - GetByKey = 20; // Smart Contract, get by key - CryptoGetClaim = 21; // Crypto get the claim - CryptoGetStakers = 22; // Cryto, get the stakers for the node - FileGetContents = 23; // File Operations get file contents - FileGetInfo = 24; // File Operations get the info of the file - TransactionGetRecord = 25; // Crypto get the transaction records - ContractGetRecords = 26; - CryptoCreate = 27; - -} - -/* The different components used for fee calculation */ - -message FeeComponents { - int64 min = 1; // the minimum fees that needs to be paid - int64 max = 2; // the maximum fees that can be submitted - int64 constant = 3; // a constant determined by the business to calculate the fees - int64 bpt = 4; // bytes per transaction - int64 vpt = 5; // verifications per transaction - int64 rbs = 6; // ram byte seconds - int64 sbs = 7; // storage byte seconds - int64 gas = 8; // ethereum gas - int64 tv = 9; // transaction value (crypto transfers amount, tv is in tiny bars divided by 1000, rounded down) - int64 bpr = 10; // bytes per response - int64 sbpr = 11; // storage bytes per response -} - -/* The fees for a specific transaction or query based on the fee data. */ -message TransactionFeeSchedule { - HederaFunctionality hederaFunctionality = 1; // Specific Transaction or Query - FeeData feeData = 2; // the fee information about the query/data -} - -/* The total fees charged for a trasansaction. It contains three parts namely nodedata, networkdata and servicedata */ -message FeeData { - FeeComponents nodedata = 1; // Fee charged by Node for this functionality - FeeComponents networkdata = 2; // Fee charged for network operations by Hedera - FeeComponents servicedata = 3; // Fee charged for provding service by Hedera -} - -/* The fee schedule for a specific hedera functionality and the time period this fee will be valid for the transaction */ -message FeeSchedule { - repeated TransactionFeeSchedule transactionFeeSchedule = 1; - Duration feeScheduleValidityDuration = 2; // the valid duration for the fee schedule -} - -/* The information about a node */ -message NodeAddress { - bytes ipAddress = 1; // the ip address of the Node - int32 portno = 2; // the port number of the grpc server for the node - bytes memo = 3; // the memo field of the node -} - -/* Gives the node addresses in the address book */ -message NodeAddressBook { - repeated NodeAddress nodeAddress = 1; -} - - - diff --git a/sdk/target/classes/main/proto/ContractCall.proto b/sdk/target/classes/main/proto/ContractCall.proto deleted file mode 100644 index be5f46a1e..000000000 --- a/sdk/target/classes/main/proto/ContractCall.proto +++ /dev/null @@ -1,18 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; - -/* Call a function of the given smart contract instance, giving it functionParameters as its inputs. it can use the given amount of gas, and any unspent gas will be refunded to the paying account. - * - * If this function stores information, it is charged gas to store it. There is a fee in hbars to maintain that storage until the expiration time, and that fee is added as part of the transaction fee.*/ -message ContractCallTransactionBody { - ContractID contractID = 1; // the contract instance to call, in the format used in transactions - int64 gas = 2; // the maximum amount of gas to use for the call - int64 amount = 3; // number of tinybars sent (the function must be payable if this is nonzero) - bytes functionParameters = 4; // which function to call, and the parameters to pass to the function -} diff --git a/sdk/target/classes/main/proto/ContractCallLocal.proto b/sdk/target/classes/main/proto/ContractCallLocal.proto deleted file mode 100644 index aff28599e..000000000 --- a/sdk/target/classes/main/proto/ContractCallLocal.proto +++ /dev/null @@ -1,45 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; -import "src/main/proto/QueryHeader.proto"; -import "src/main/proto/ResponseHeader.proto"; - -/* The log information for an event returned by a smart contract function call. One function call may return several such events. */ -message ContractLoginfo { - ContractID contractID = 1; // address of a contract that emitted the event - bytes bloom = 2; //bloom filter for a particular log - repeated bytes topic = 3; // topics of a particular event - bytes data = 4; // event data -} - -/* The result returned by a call to a smart contract function. This is part of the response to a ContractCallLocal query, and is in the record for a ContractCall or ContractCreateInstance transaction. The ContractCreateInstance transaction record has the results of the call to the constructor. */ -message ContractFunctionResult { - ContractID contractID = 1; // the smart contract instance whose function was called - bytes contractCallResult = 2; // the result returned by the function - string errorMessage = 3; // message In case there was an error during smart contract execution - bytes bloom = 4; // bloom filter for record - uint64 gasUsed = 5; //units of gas used to execute contract - repeated ContractLoginfo logInfo = 6; // the log info for events returned by the function -} - -/* Call a function of the given smart contract instance, giving it functionParameters as its inputs. It can use the given amount of gas, and any unspent gas will be refunded to the paying account. - * - * This is performed locally on the particular node that the client is communicating with. It cannot change the state of the contract instance (and so, cannot spend anything from the instance's cryptocurrency account). It will not have a consensus timestamp. It cannot generate a record or a receipt. The response will contain the output returned by the function call. This is useful for calling getter functions, which purely read the state and don't change it. It is faster and cheaper than a normal call, because it is purely local to a single node. */ -message ContractCallLocalQuery { - QueryHeader header = 1; // standard info sent from client to node, including the signed payment, and what kind of response is requested (cost, state proof, both, or neither). - ContractID contractID = 2; // the contract instance to call, in the format used in transactions - int64 gas = 3; // the amount of gas to use for the call - bytes functionParameters = 4; // which function to call, and the parameters to pass to the function - int64 maxResultSize = 5; // max number of bytes that the result might include. The run will fail if it would have returned more than this number of bytes. -} - -/* Response when the client sends the node ContractCallLocalQuery */ -message ContractCallLocalResponse { - ResponseHeader header = 1; //standard response from node to client, including the requested fields: cost, or state proof, or both, or neither - ContractFunctionResult functionResult = 2; // the value returned by the function (if it completed and didn't fail) -} diff --git a/sdk/target/classes/main/proto/ContractCreate.proto b/sdk/target/classes/main/proto/ContractCreate.proto deleted file mode 100644 index 7dbe9996c..000000000 --- a/sdk/target/classes/main/proto/ContractCreate.proto +++ /dev/null @@ -1,34 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; -import "src/main/proto/BasicTypes.proto"; -import "Duration.proto"; -/* Start a new smart contract instance. After the instance is created, the ContractID for it is in the receipt, or can be retrieved with a GetByKey query, or by asking for a Record of the transaction to be created, and retrieving that. The instance will run the bytecode stored in the given file, referenced either by FileID or by the transaction ID of the transaction that created the file. The constructor will be executed using the given amount of gas, and any unspent gas will be refunded to the paying account. Constructor inputs come from the given constructorParameters. - * - * The instance will exist for autoRenewPeriod seconds. When that is reached, it will renew itself for another autoRenewPeriod seconds by charging its associated cryptocurrency account (which it creates here). If it has insufficient cryptocurrency to extend that long, it will extend as long as it can. If its balance is zero, the instance will be deleted. - * - * A smart contract instance normally enforces rules, so "the code is law". For example, an ERC-20 contract prevents a transfer from being undone without a signature by the recipient of the transfer. This is always enforced if the contract instance was created with the adminKeys being null. But for some uses, it might be desirable to create something like an ERC-20 contract that has a specific group of trusted individuals who can act as a "supreme court" with the ability to override the normal operation, when a sufficient number of them agree to do so. If adminKeys is not null, then they can sign a transaction that can change the state of the smart contract in arbitrary ways, such as to reverse a transaction that violates some standard of behavior that is not covered by the code itself. The admin keys can also be used to change the autoRenewPeriod, and change the adminKeys field itself. The API currently does not implement this ability. But it does allow the adminKeys field to be set and queried, and will in the future implement such admin abilities for any instance that has a non-null adminKeys. - * - * If this constructor stores information, it is charged gas to store it. There is a fee in hbars to maintain that storage until the expiration time, and that fee is added as part of the transaction fee. - * - * An entity (account, file, or smart contract instance) must be created in a particular realm. If the realmID is left null, then a new realm will be created with the given admin key. If a new realm has a null adminKey, then anyone can create/modify/delete entities in that realm. But if an admin key is given, then any transaction to create/modify/delete an entity in that realm must be signed by that key, though anyone can still call functions on smart contract instances that exist in that realm. A realm ceases to exist when everything within it has expired and no longer exists. - * - * The current API ignores shardID, realmID, and newRealmAdminKey, and creates everything in shard 0 and realm 0, with a null key. Future versions of the API will support multiple realms and multiple shards. - */ -message ContractCreateTransactionBody { - FileID fileID = 1; // the file containing the smart contract byte code. A copy will be made and held by the contract instance, and have the same expiration time as the instance. The file is referenced one of two ways: - Key adminKey = 3; // the state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. If this is null, then such modifications are not possible, and there is no administrator that can override the normal operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to authorize changing the admin keys, so there can never be any admin keys for that instance. - int64 gas = 4; // gas to run the constructor - int64 initialBalance = 5; // initial number of tinybars to put into the cryptocurrency account associated with and owned by the smart contract - AccountID proxyAccountID = 6; // ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an invalid account, or is an account that isn't a node, then this account is automatically proxy staked to a node chosen by the network, but without earning payments. If the proxyAccountID account refuses to accept proxy staking at the given fraction, or if it is not currently running a node, then it will behave as if both proxyAccountID and proxyFraction were null. - int32 proxyFraction = 7; // payments earned from proxy staking are shared between the node and this instance's account, with proxyFraction / 10000 going to this account - Duration autoRenewPeriod = 8; // the instance will charge its account every this many seconds to renew for this long - bytes constructorParameters = 9; // parameters to pass to the constructor - - ShardID shardID = 10; // shard in which to create this - RealmID realmID = 11; // realm in which to create this (leave this null to create a new realm) - Key newRealmAdminKey = 12; // if realmID is null, then this the admin key for the new realm that will be created -} diff --git a/sdk/target/classes/main/proto/ContractGetBytecode.proto b/sdk/target/classes/main/proto/ContractGetBytecode.proto deleted file mode 100644 index 4eed07b1f..000000000 --- a/sdk/target/classes/main/proto/ContractGetBytecode.proto +++ /dev/null @@ -1,23 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; -import "src/main/proto/QueryHeader.proto"; -import "src/main/proto/ResponseHeader.proto"; - -/* Get the bytecode for a smart contract instance */ -message ContractGetBytecodeQuery { - QueryHeader header = 1; // standard info sent from client to node, including the signed payment, and what kind of response is requested (cost, state proof, both, or neither). - ContractID contractID = 2; // the contract for which information is requested -} - -/* Response when the client sends the node ContractGetBytecodeQuery */ -message ContractGetBytecodeResponse { - ResponseHeader header = 1; //standard response from node to client, including the requested fields: cost, or state proof, or both, or neither - bytes bytecode = 6; // the bytecode -} - diff --git a/sdk/target/classes/main/proto/ContractGetInfo.proto b/sdk/target/classes/main/proto/ContractGetInfo.proto deleted file mode 100644 index 9a0b4d2d2..000000000 --- a/sdk/target/classes/main/proto/ContractGetInfo.proto +++ /dev/null @@ -1,35 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "Timestamp.proto"; -import "Duration.proto"; -import "src/main/proto/BasicTypes.proto"; -import "src/main/proto/QueryHeader.proto"; -import "src/main/proto/ResponseHeader.proto"; - -/* Get information about a smart contract instance. This includes the account that it uses, the file containing its bytecode, and the time when it will expire. */ -message ContractGetInfoQuery { - QueryHeader header = 1; // standard info sent from client to node, including the signed payment, and what kind of response is requested (cost, state proof, both, or neither). - ContractID contractID = 2; // the contract for which information is requested -} - -/* Response when the client sends the node ContractGetInfoQuery */ -message ContractGetInfoResponse { - ResponseHeader header = 1; //standard response from node to client, including the requested fields: cost, or state proof, or both, or neither - message ContractInfo { - ContractID contractID = 1; // ID of the contract instance, in the format used in transactions - AccountID accountID = 2; // ID of the cryptocurrency account owned by the contract instance, in the format used in transactions - string contractAccountID = 3; // ID of both the contract instance and the cryptocurrency account owned by the contract instance, in the format used by Solidity - Key adminKey = 4; // the state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. If this is null, then such modifications are not possible, and there is no administrator that can override the normal operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to authorize changing the admin keys, so there can never be any admin keys for that instance. */ - Timestamp expirationTime = 5; // the current time at which this contract instance (and its account) is set to expire - Duration autoRenewPeriod = 6; // the expiration time will extend every this many seconds. If there are insufficient funds, then it extends as long as possible. If the account is empty when it expires, then it is deleted. - int64 storage = 7; // number of bytes of storage being used by this instance (which affects the cost to extend the expiration time) - } - - ContractInfo contractInfo = 2; // the information about this contract instance (a state proof can be generated for this) -} - diff --git a/sdk/target/classes/main/proto/ContractGetRecords.proto b/sdk/target/classes/main/proto/ContractGetRecords.proto deleted file mode 100644 index 5a6b19761..000000000 --- a/sdk/target/classes/main/proto/ContractGetRecords.proto +++ /dev/null @@ -1,24 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; -import "src/main/proto/TransactionRecord.proto"; -import "src/main/proto/QueryHeader.proto"; -import "src/main/proto/ResponseHeader.proto"; - -/* Get all the records for a smart contract instance, for any function call (or the constructor call) during the last 24 hours, for which a Record was requested. */ -message ContractGetRecordsQuery { - QueryHeader header = 1; // standard info sent from client to node, including the signed payment, and what kind of response is requested (cost, state proof, both, or neither). - ContractID contractID = 2; // the smart contract instance for which the records should be retrieved -} - -/* Response when the client sends the node ContractGetRecordsQuery */ -message ContractGetRecordsResponse { - ResponseHeader header = 1; //standard response from node to client, including the requested fields: cost, or state proof, or both, or neither - ContractID contractID = 2; // the smart contract instance that this record is for - repeated TransactionRecord records = 3; // list of records, each with contractCreateResult or contractCallResult as its body -} diff --git a/sdk/target/classes/main/proto/ContractUpdate.proto b/sdk/target/classes/main/proto/ContractUpdate.proto deleted file mode 100644 index 5fd1d70fd..000000000 --- a/sdk/target/classes/main/proto/ContractUpdate.proto +++ /dev/null @@ -1,21 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; -import "Duration.proto"; -import "Timestamp.proto"; - -/* Modify a smart contract instance to have the given parameter values. Any null field is ignored (left unchanged). If only the contractInstanceExpirationTime is being modified, then no signature is needed on this transaction other than for the account paying for the transaction itself. But if any of the other fields are being modified, then it must be signed by the adminKey. The use of adminKey is not currently supported in this API, but in the future will be implemented to allow these fields to be modified, and also to make modifications to the state of the instance. If the contract is created with no admin key, then none of the fields can be changed that need an admin signature, and therefore no admin key can ever be added. So if there is no admin key, then things like the bytecode are immutable. But if there is an admin key, then they can be changed. For example, the admin key might be a threshold key, which requires 3 of 5 binding arbitration judges to agree before the bytecode can be changed. This can be used to add flexibility to the mangement of smart contract behavior. But this is optional. If the smart contract is created without an admin key, then such a key can never be added, and its bytecode will be immutable. */ -message ContractUpdateTransactionBody { - ContractID contractID = 1; // the contract instance to update (this can't be changed) - Timestamp expirationTime = 2; // extend the expiration of the instance and its account to this time (no effect if it already is this time or later) - Key adminKey = 3; // the state of the instance can be modified arbitrarily if this key signs a transaction to modify it. If this is null, then such modifications are not possible, and there is no administrator that can override the normal operation of this smart contract instance. - AccountID proxyAccountID = 6; // ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an invalid account, or is an account that isn't a node, then this account is automatically proxy staked to a node chosen by the network, but without earning payments. If the proxyAccountID account refuses to accept proxy staking at the given fraction, or if it is not currently running a node, then it will behave as if both proxyAccountID and proxyFraction were null. - Duration autoRenewPeriod = 7; // the instance will charge its account every this many seconds to renew for this long - FileID fileID = 8; // the file containing the smart contract byte code. A copy will be made and held by the contract instance, and have the same expiration time as the instance. The file is referenced one of two ways: -} - diff --git a/sdk/target/classes/main/proto/CreateFeeSchedule.proto b/sdk/target/classes/main/proto/CreateFeeSchedule.proto deleted file mode 100644 index ef89bee04..000000000 --- a/sdk/target/classes/main/proto/CreateFeeSchedule.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; - -/* The transaction body to update the fee schedule. */ -message CreateFeeScheduleTransactionBody { - Key key = 1; // the key that must sign to update the Fee Schedule - repeated TransactionFeeSchedule transactionFeeSchedule = 2; // The fee schedule for a specific hedera functionality and the time period this fee will be valid for the transaction -} diff --git a/sdk/target/classes/main/proto/CryptoAddClaim.proto b/sdk/target/classes/main/proto/CryptoAddClaim.proto deleted file mode 100644 index 9061542ac..000000000 --- a/sdk/target/classes/main/proto/CryptoAddClaim.proto +++ /dev/null @@ -1,26 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - - -import "src/main/proto/BasicTypes.proto"; - -/* A hash (presumably of some kind of credential or certificate), along with a list of threshold keys. Each of them must reach its threshold when signing the transaction, to attach this claim to this account. At least one of them must reach its threshold to delete this Claim from this account. This is intended to provide a revocation service: all the authorities agree to attach the hash, to attest to the fact that the credential or certificate is valid. Any one of the authorities can later delete the hash, to indicate that the credential has been revoked. In this way, any client can prove to a third party that any particular account has certain credentials, or to identity facts proved about it, and that none of them have been revoked yet. */ -message Claim { - AccountID accountID = 1; //the account to which the claim is attached - bytes hash = 2; // 48 byte SHA-384 hash (presumably of some kind of credential or certificate) - KeyList keys = 3; // list of keys: all must sign the transaction to attach the claim, and any one of them can later delete it. Each "key" can actually be a threshold key containing multiple other keys (including other threshold keys). -} - -/* Attach the given hash to the given account. The hash can be deleted by the keys used to transfer money from the account. The hash can also be deleted by any one of the deleteKeys (where that one may itself be a threshold key made up of multiple keys). Therefore, this acts as a revocation service for claims about the account. External authorities may issue certificates or credentials of some kind that make a claim about this account. The account owner can then attach a hash of that claim to the account. The transaction that adds the claim will be signed by the owner of the account, and also by all the authorities that are attesting to the truth of that claim. If the claim ever ceases to be true, such as when a certificate is revoked, then any one of the listed authorities has the ability to delete it. The account owner also has the ability to delete it at any time. -* -* In this way, it acts as a revocation server, and the account owner can prove to any third party that the claim is still true for this account, by sending the third party the signed credential, and then having the third party query to discover whether the hash of that credential is still attached to the account. -* -* For a given account, each Claim must contain a different hash. To modify the list of keys in a Claim, the existing Claim should first be deleted, then the Claim with the new list of keys can be added. */ -message CryptoAddClaimTransactionBody { - AccountID accountID = 2; // the account that the claim should be attached to - Claim claim = 3; // a hash of some credential/certificate, along with the keys that authorized it and are allowed to delete it -} diff --git a/sdk/target/classes/main/proto/CryptoCreate.proto b/sdk/target/classes/main/proto/CryptoCreate.proto deleted file mode 100644 index 819cd1163..000000000 --- a/sdk/target/classes/main/proto/CryptoCreate.proto +++ /dev/null @@ -1,32 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; -import "Duration.proto"; - -/* Create a new account. After the account is created, the AccountID for it is in the receipt, or can be retrieved with a GetByKey query, or by asking for a Record of the transaction to be created, and retrieving that. The account can then automatically generate records for large transfers into it or out of it, which each last for 24 hours. Records are generated for any transfer that exceeds the thresholds given here. This account is charged cryptocurrency for each record generated, so the thresholds are useful for limiting Record generation to happen only for large transactions. The Key field is the key used to sign transactions for this account. If the account has receiverSigRequired set to true, then all cryptocurrency transfers must be signed by this account's key, both for transfers in and out. If it is false, then only transfers out have to be signed by it. When the account is created, the payer account is charged enough hbars so that the new account will not expire for the next autoRenewPeriod seconds. When it reaches the expiration time, the new account will then be automatically charged to renew for another autoRenewPeriod seconds. If it does not have enough hbars to renew for that long, then the remaining hbars are used to extend its expiration as long as possible. If it is has a zero balance when it expires, then it is deleted. This transaction must be signed by the payer account. If receiverSigRequired is false, then the transaction does not have to be signed by the keys in the keys field. If it is true, then it must be signed by them, in addition to the keys of the payer account. - * - * An entity (account, file, or smart contract instance) must be created in a particular realm. If the realmID is left null, then a new realm will be created with the given admin key. If a new realm has a null adminKey, then anyone can create/modify/delete entities in that realm. But if an admin key is given, then any transaction to create/modify/delete an entity in that realm must be signed by that key, though anyone can still call functions on smart contract instances that exist in that realm. A realm ceases to exist when everything within it has expired and no longer exists. - * - * The current API ignores shardID, realmID, and newRealmAdminKey, and creates everything in shard 0 and realm 0, with a null key. Future versions of the API will support multiple realms and multiple shards. - */ -message CryptoCreateTransactionBody { - Key key = 1; // the key that must sign each transfer out of the account. If receiverSigRequired is true, then it must also sign any transfer into the account. - uint64 initialBalance = 2; // the initial number of tinybars to put into the account - AccountID proxyAccountID = 3; // ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an invalid account, or is an account that isn't a node, then this account is automatically proxy staked to a node chosen by the network, but without earning payments. If the proxyAccountID account refuses to accept proxy staking at the given fraction, or if it is not currently running a node, then it will behave as if both proxyAccountID and proxyFraction were null. - int32 proxyFraction = 4; // payments earned from proxy staking are shared between the node and this account, with proxyFraction / 10000 going to this account - int32 maxReceiveProxyFraction = 5; // when another account tries to proxy stake to this account, accept it only if the proxyFraction from that other account is at most maxReceiveProxyFraction - uint64 sendRecordThreshold = 6; // create an account record for any transaction withdrawing more than this many tinybars - uint64 receiveRecordThreshold = 7; // create an account record for any transaction depositing more than this many tinybars - bool receiverSigRequired = 8; // if true, this account's key must sign any transaction depositing into this account (in addition to all withdrawals). This field is immutable; it cannot be changed by a CryptoUpdate transaction. - Duration autoRenewPeriod = 9; // the account is charged to extend its expiration date every this many seconds. If it doesn't have enough, it extends as long as possible. If it is empty when it expires, then it is deleted. - - - ShardID shardID = 10; // shard in which to create this - RealmID realmID = 11; // realm in which to create this (leave this null to create a new realm) - Key newRealmAdminKey = 12; // if realmID is null, then this the admin key for the new realm that will be created -} diff --git a/sdk/target/classes/main/proto/CryptoDelete.proto b/sdk/target/classes/main/proto/CryptoDelete.proto deleted file mode 100644 index 937941522..000000000 --- a/sdk/target/classes/main/proto/CryptoDelete.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; - -/* Mark an account as deleted, moving all its current hbars to another account. It will remain in the ledger, marked as deleted, until it expires. Transfers into it a deleted account fail. But a deleted account can still have its expiration extended in the normal way. */ -message CryptoDeleteTransactionBody { - AccountID transferAccountID = 1; // the account to receive all remaining hbars - AccountID deleteAccountID = 2; // the account to delete -} diff --git a/sdk/target/classes/main/proto/CryptoDeleteClaim.proto b/sdk/target/classes/main/proto/CryptoDeleteClaim.proto deleted file mode 100644 index 8f7b5ed18..000000000 --- a/sdk/target/classes/main/proto/CryptoDeleteClaim.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; - -/* Delete a claim hash that was attached to the given account. This transaction is valid if signed by all the keys used for transfers out of the account. It is also valid if signed by any single ThresholdKeys in the deleteKeys list for this hash. See CryptoAddClaimTransaction for more information about claim hashes. */ -message CryptoDeleteClaimTransactionBody { - AccountID accountIDToDeleteFrom = 2; // the account that should have a claim deleted - bytes hashToDelete = 3; // the hash in the claim to delete (a SHA-384 hash, 48 bytes) -} diff --git a/sdk/target/classes/main/proto/CryptoGetAccountBalance.proto b/sdk/target/classes/main/proto/CryptoGetAccountBalance.proto deleted file mode 100644 index 65c0ddf16..000000000 --- a/sdk/target/classes/main/proto/CryptoGetAccountBalance.proto +++ /dev/null @@ -1,25 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; -import "src/main/proto/QueryHeader.proto"; -import "src/main/proto/ResponseHeader.proto"; - -/* Get the balance of a cryptocurrency account. This returns only the balance, so it is a smaller and faster reply than CryptoGetAccountInfoQuery, which returns the balance plus additional information. */ -message CryptoGetAccountBalanceQuery { - QueryHeader header = 1; // standard info sent from client to node, including the signed payment, and what kind of response is requested (cost, state proof, both, or neither). - AccountID accountID = 2; // the account for which information is requested -} - -/* Response when the client sends the node CryptoGetAccountBalanceQuery */ -message CryptoGetAccountBalanceResponse { - ResponseHeader header = 1; //standard response from node to client, including the requested fields: cost, or state proof, or both, or neither - AccountID accountID = 2; // the account that is being described (this is useful with state proofs, for proving to a third party) - uint64 balance = 3; // the current balance, in tinybars -} - - diff --git a/sdk/target/classes/main/proto/CryptoGetAccountRecords.proto b/sdk/target/classes/main/proto/CryptoGetAccountRecords.proto deleted file mode 100644 index b52f41327..000000000 --- a/sdk/target/classes/main/proto/CryptoGetAccountRecords.proto +++ /dev/null @@ -1,26 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; -import "src/main/proto/TransactionRecord.proto"; -import "src/main/proto/QueryHeader.proto"; -import "src/main/proto/ResponseHeader.proto"; - -/* Get all the records for an account for any transfers into it and out of it, that were above the threshold, during the last 24 hours. */ -message CryptoGetAccountRecordsQuery { - QueryHeader header = 1; // standard info sent from client to node, including the signed payment, and what kind of response is requested (cost, state proof, both, or neither). - AccountID accountID = 2; // the account for which the records should be retrieved -} - -/* Response when the client sends the node CryptoGetAccountRecordsQuery */ -message CryptoGetAccountRecordsResponse { - ResponseHeader header = 1; //standard response from node to client, including the requested fields: cost, or state proof, or both, or neither - AccountID accountID = 2; // the account that this record is for - repeated TransactionRecord records = 3; // list of records, each with CryptoRecordBody as their body -} - - diff --git a/sdk/target/classes/main/proto/CryptoGetClaim.proto b/sdk/target/classes/main/proto/CryptoGetClaim.proto deleted file mode 100644 index 8d5112710..000000000 --- a/sdk/target/classes/main/proto/CryptoGetClaim.proto +++ /dev/null @@ -1,26 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; -import "src/main/proto/QueryHeader.proto"; -import "src/main/proto/ResponseHeader.proto"; -import "CryptoAddClaim.proto"; - -/* Get a single claim attached to an account, or return null if it does not exist. */ -message CryptoGetClaimQuery { - QueryHeader header = 1; // standard info sent from client to node, including the signed payment, and what kind of response is requested (cost, state proof, both, or neither). - AccountID accountID = 2; // the account to which the claim may be attached - bytes hash = 3; // the hash of the claim -} - -/* Response when the client sends the node CryptoGetClaimQuery. If the claim exists, there can be a state proof for that single claim. If the claim doesn't exist, then the state proof must be obtained for the account as a whole, which lists all the attached claims, which then proves that any claim not on the list must not exist. */ -message CryptoGetClaimResponse { - ResponseHeader header = 1; //standard response from node to client, including the requested fields: cost, or state proof, or both, or neither - Claim claim = 2; // the claim (account, hash, keys), or null if there is no Claim with the given hash attached to the given account -} - - diff --git a/sdk/target/classes/main/proto/CryptoGetInfo.proto b/sdk/target/classes/main/proto/CryptoGetInfo.proto deleted file mode 100644 index a58ada98f..000000000 --- a/sdk/target/classes/main/proto/CryptoGetInfo.proto +++ /dev/null @@ -1,42 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "Timestamp.proto"; -import "Duration.proto"; -import "src/main/proto/BasicTypes.proto"; -import "src/main/proto/QueryHeader.proto"; -import "src/main/proto/ResponseHeader.proto"; -import "CryptoAddClaim.proto"; - -/* Get all the information about an account, including the balance. This does not get the list of account records. */ -message CryptoGetInfoQuery { - QueryHeader header = 1; // standard info sent from client to node, including the signed payment, and what kind of response is requested (cost, state proof, both, or neither). - AccountID accountID = 2; // the account for which information is requested -} - -/* Response when the client sends the node CryptoGetInfoQuery */ -message CryptoGetInfoResponse { - ResponseHeader header = 1; //standard response from node to client, including the requested fields: cost, or state proof, or both, or neither - - message AccountInfo { - AccountID accountID = 1; // the account for which this information applies - string contractAccountID = 2; // ID of both the contract instance and the cryptocurrency account owned by the contract instance, in the format used by Solidity - bool deleted = 3; // if true, then this account has been deleted, it will disappear when it expires, and all transactions for it will fail except the transaction to extend its expiration date - AccountID proxyAccountID = 4; // ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an invalid account, or is an account that isn't a node, then this account is automatically proxy staked to a node chosen by the network, but without earning payments. If the proxyAccountID account refuses to accept proxy staking at the given fraction, or if it is not currently running a node, then it will behave as if both proxyAccountID and proxyFraction were null. - int32 proxyFraction = 5; // payments earned from proxy staking are shared between the node and this account, with proxyFraction / 10000 going to this account - int64 proxyReceived = 6; // total number of tinybars proxy staked to this account - Key key = 7; // the key for the account, which must sign in order to transfer out, or to modify the account in any way other than extending its expiration date. - uint64 balance = 8; // the current number of tinybars in the account - uint64 generateSendRecordThreshold = 9; // account records will be created (and this account charged for them) for any transaction withdrawing more than this many tinybars - uint64 generateReceiveRecordThreshold = 10; // account records will be created (and this account charged for them) for any transaction depositing more than this many tinybars - bool receiverSigRequired = 11; // if true, no transaction can transfer to this account unless signed by this account's key - Timestamp expirationTime = 12; // the current time at which this account is set to expire - Duration autoRenewPeriod = 13; // the expiration time will extend every this many seconds. If there are insufficient funds, then it extends as long as possible. If it is empty when it expires, then it is deleted. - repeated Claim claims = 14; // all of the claims attached to the account (each of which is a hash along with the keys that authorized it and can delete it ) - } - AccountInfo accountInfo = 2; // info about the account (a state proof can be generated for this) -} diff --git a/sdk/target/classes/main/proto/CryptoGetStakers.proto b/sdk/target/classes/main/proto/CryptoGetStakers.proto deleted file mode 100644 index 6d985812c..000000000 --- a/sdk/target/classes/main/proto/CryptoGetStakers.proto +++ /dev/null @@ -1,33 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; -import "src/main/proto/QueryHeader.proto"; -import "src/main/proto/ResponseHeader.proto"; - -/* Get all the accounts that are proxy staking to this account. For each of them, give the amount currently staked. This is not yet implemented, but will be in a future version of the API. */ -message CryptoGetStakersQuery { - QueryHeader header = 1; // standard info sent from client to node, including the signed payment, and what kind of response is requested (cost, state proof, both, or neither). - AccountID accountID = 2; // the account for which the records should be retrieved -} - -/* information about a single account that is proxy staking */ -message ProxyStaker { - AccountID accountID = 1; // the account that is proxy staking - int64 amount = 2; // number of hbars that are currently proxy staked -} - -/* all of the accounts proxy staking to a given account, and the amounts proxy staked */ -message AllProxyStakers { - AccountID accountID = 1; // the account that is being proxy staked to - repeated ProxyStaker proxyStaker = 2; // each of the proxy staking accounts, and the amount they are proxy staking -} -/* Response when the client sends the node CryptoGetStakersQuery */ -message CryptoGetStakersResponse { - ResponseHeader header = 1; //standard response from node to client, including the requested fields: cost, or state proof, or both, or neither - AllProxyStakers stakers = 3; // list of accounts proxy staking to this account, and the amount each is currently proxy staking -} diff --git a/sdk/target/classes/main/proto/CryptoService.proto b/sdk/target/classes/main/proto/CryptoService.proto deleted file mode 100644 index 05c161a86..000000000 --- a/sdk/target/classes/main/proto/CryptoService.proto +++ /dev/null @@ -1,42 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.service.proto.java"; - -import "Query.proto"; -import "src/main/proto/Response.proto"; -import "src/main/proto/TransactionResponse.proto"; -import "src/main/proto/Transaction.proto"; - -/* The request and responses for different crypto services. */ -service CryptoService { - - rpc createAccount (Transaction) returns (TransactionResponse); // Creates a new account by submitting the transaction. The grpc server returns the TransactionResponse - - rpc updateAccount (Transaction) returns (TransactionResponse); // Updates an account by submitting the transaction. The grpc server returns the TransactionResponse - - rpc cryptoTransfer (Transaction) returns (TransactionResponse); // Initiates a transfer by submitting the transaction. The grpc server returns the TransactionResponse - - rpc cryptoDelete (Transaction) returns (TransactionResponse); // Deletes and account by submitting the transaction. The grpc server returns the TransactionResponse - - rpc addClaim (Transaction) returns (TransactionResponse); // Adds a claim by submitting the transaction. The grpc server returns the TransactionResponse - - rpc deleteClaim (Transaction) returns (TransactionResponse); // Deletes a claim by submitting the transaction. The grpc server returns the TransactionResponse - - rpc getClaim (Query) returns (Response); // Retrieves the claim for an account by submitting the query. - - rpc getAccountRecords (Query) returns (Response); // Retrieves the record(fetch by AccountID ID) for an account by submitting the query. - - rpc cryptoGetBalance (Query) returns (Response); // Retrieves the balance for an account by submitting the query. - - rpc getAccountInfo (Query) returns (Response); // Retrieves the account information for an account by submitting the query. - - rpc getTransactionReceipts (Query) returns (Response); // Retrieves the transaction receipts for an account by TxId which last for 180sec only for no fee. - - rpc getFastTransactionRecord (Query) returns (Response); // Retrieves the transaction record by TxID which last for 180sec only for no fee. - - rpc getTxRecordByTxID (Query) returns (Response); // Retrieves the transactions record(fetch by Transaction ID) for an account by submitting the query. - - rpc getStakersByAccountID (Query) returns (Response); // Retrieves the stakers for a node by account ID by submitting the query. -} \ No newline at end of file diff --git a/sdk/target/classes/main/proto/CryptoTransfer.proto b/sdk/target/classes/main/proto/CryptoTransfer.proto deleted file mode 100644 index 4225b52b1..000000000 --- a/sdk/target/classes/main/proto/CryptoTransfer.proto +++ /dev/null @@ -1,24 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; - -/* An account, and the amount that it sends or receives during a cryptocurrency transfer. */ -message AccountAmount { - AccountID accountID = 1; // an account that sends or receives cryptocurrency - sint64 amount = 2; // number of tinybars that the account sends (negative) or receives (positive) -} - -/* a list of accounts and amounts to transfer out of each account (negative) or into it (positive). */ -message TransferList { - repeated AccountAmount accountAmounts = 1; // list of AccountAmount pairs, each of which has an account and an amount to transfer into it (positive) or out of it (negative) -} - -/* Transfer cryptocurrency from some accounts to other accounts. The accounts list can contain up to 10 accounts. The amounts list must be the same length as the accounts list. Each negative amount is withdrawn from the corresponding account (a sender), and each positive one is added to the corresponding account (a receiver). The amounts list must sum to zero. Each amount is a number of tinyBars (there are 100,000,000 tinyBars in one Hbar). If any sender account fails to have sufficient hbars to do the withdrawal, then the entire transaction fails, and none of those transfers occur, though the transaction fee is still charged. This transaction must be signed by the keys for all the sending accounts, and for any receiving accounts that have receiverSigRequired == true. The signatures are in the same order as the accounts, skipping those accounts that don't need a signature. */ -message CryptoTransferTransactionBody { - TransferList transfers = 1; // accounts and amounts to transfer -} diff --git a/sdk/target/classes/main/proto/CryptoUpdate.proto b/sdk/target/classes/main/proto/CryptoUpdate.proto deleted file mode 100644 index 5bef6ae15..000000000 --- a/sdk/target/classes/main/proto/CryptoUpdate.proto +++ /dev/null @@ -1,22 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; -import "Duration.proto"; -import "Timestamp.proto"; - -/* Change properties for the given account. Any null field is ignored (left unchanged). The receiverSigRequired boolean field cannot be changed; it is immutable. This transaction must be signed by the existing key for this account. If the transaction is changing the key field, then the transaction must be signed by both the old key (from before the change) and the new key. The old key must sign for security. The new key must sign as a safeguard to avoid accidentally changing to an invalid key, and then having no way to recover. When extending the expiration date, the cost is affected by the size of the list of attached claims, and of the keys associated with the claims and the account. */ -message CryptoUpdateTransactionBody { - AccountID accountIDToUpdate = 2; // the account to modify - Key key = 3; // the new key - AccountID proxyAccountID = 4; // ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an invalid account, or is an account that isn't a node, then this account is automatically proxy staked to a node chosen by the network, but without earning payments. If the proxyAccountID account refuses to accept proxy staking at the given fraction, or if it is not currently running a node, then it will behave as if both proxyAccountID and proxyFraction were null. - int32 proxyFraction = 5; // payments earned from proxy staking are shared between the node and this account, with proxyFraction / 10000 going to this account - uint64 sendRecordThreshold = 6; // the new threshold for generating records for sending - uint64 receiveRecordThreshold = 7; // the new threshold for generating records for receiving - Duration autoRenewPeriod = 8; // the new frequency with which it will automatically extend the expiration period - Timestamp expirationTime = 9; // the new expiration time to extend to (ignored if equal to or before the current one) -} diff --git a/sdk/target/classes/main/proto/Duration.proto b/sdk/target/classes/main/proto/Duration.proto deleted file mode 100644 index d163360ca..000000000 --- a/sdk/target/classes/main/proto/Duration.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; -/* The length of a period of time. This is an identical data structure to the protobuf Duration.proto (see the comments in https://github.com/google/protobuf/blob/master/src/google/protobuf/duration.proto) */ -message Duration { - int64 seconds = 1; // number of seconds - int32 nanos = 2; // number of nanoseconds that is added to seconds to get the length of the duration -} diff --git a/sdk/target/classes/main/proto/FileAppend.proto b/sdk/target/classes/main/proto/FileAppend.proto deleted file mode 100644 index e706c68a5..000000000 --- a/sdk/target/classes/main/proto/FileAppend.proto +++ /dev/null @@ -1,15 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - - -import "src/main/proto/BasicTypes.proto"; - -/* Append the given contents to the end of the file. If a file is too big to create with a single FileCreateTransaction, then it can be created with the first part of its contents, and then appended multiple times to create the entire file. */ -message FileAppendTransactionBody { - FileID fileID = 2; // the file to append to - bytes contents = 4; // the bytes to append to the contents of the file -} diff --git a/sdk/target/classes/main/proto/FileCreate.proto b/sdk/target/classes/main/proto/FileCreate.proto deleted file mode 100644 index 69eb1e291..000000000 --- a/sdk/target/classes/main/proto/FileCreate.proto +++ /dev/null @@ -1,31 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; -import "Timestamp.proto"; - -/* Create a new file, containing the given contents. It is referenced by its FileID, and does not have a filename, so it is important to get the FileID. After the file is created, the FileID for it can be found in the receipt, or retrieved with a GetByKey query, or by asking for a Record of the transaction to be created, and retrieving that. - * - * The file contains the given contents (possibly empty). The file will automatically disappear at the fileExpirationTime, unless its expiration is extended by another transaction before that time. If the file is deleted, then its contents will become empty and it will be marked as deleted until it expires, and then it will cease to exist. See FileGetInfoQuery for more information about files. - * - * The keys field is a list of keys. All the keys on the list must sign to create or modify a file, but only one of them needs to sign in order to delete the file. Each of those "keys" may itself be threshold key containing other keys (including other threshold keys). In other words, the behavior is an AND for create/modify, OR for delete. This is useful for acting as a revocation server. If it is desired to have the behavior be AND for all 3 operations (or OR for all 3), then the list should have only a single Key, which is a threshold key, with N=1 for OR, N=M for AND. - * - * If a file is created without ANY keys in the keys field, the file is immutable ONLY the expirationTime of the file can be changed using FileUpdate API. The file contents or its keys cannot be changed. - * - * An entity (account, file, or smart contract instance) must be created in a particular realm. If the realmID is left null, then a new realm will be created with the given admin key. If a new realm has a null adminKey, then anyone can create/modify/delete entities in that realm. But if an admin key is given, then any transaction to create/modify/delete an entity in that realm must be signed by that key, though anyone can still call functions on smart contract instances that exist in that realm. A realm ceases to exist when everything within it has expired and no longer exists. - * - * The current API ignores shardID, realmID, and newRealmAdminKey, and creates everything in shard 0 and realm 0, with a null key. Future versions of the API will support multiple realms and multiple shards. - */ -message FileCreateTransactionBody { - Timestamp expirationTime = 2; // the time at which this file should expire (unless FileUpdateTransaction is used before then to extend its life) - KeyList keys = 3; // all these keys must sign to create or modify the file. Any one of them can sign to delete the file. - bytes contents = 4; // the bytes that are the contents of the file - - ShardID shardID = 5; // shard in which to create this - RealmID realmID = 6; // realm in which to create this (leave this null to create a new realm) - Key newRealmAdminKey = 7; // if realmID is null, then this the admin key for the new realm that will be created -} diff --git a/sdk/target/classes/main/proto/FileDelete.proto b/sdk/target/classes/main/proto/FileDelete.proto deleted file mode 100644 index 03be9a93f..000000000 --- a/sdk/target/classes/main/proto/FileDelete.proto +++ /dev/null @@ -1,13 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; - -/* Delete the given file. After deletion, it will be marked as deleted and will have no contents. But information about it will continue to exist until it expires. A list of keys was given when the file was created. All the keys on that list must sign transactions to create or modify the file, but any single one of them can be used to delete the file. Each "key" on that list may itself be a threshold key containing other keys (including other threshold keys). */ -message FileDeleteTransactionBody { - FileID fileID = 2; // the file to delete. It will be marked as deleted until it expires. Then it will disappear. -} diff --git a/sdk/target/classes/main/proto/FileGetContents.proto b/sdk/target/classes/main/proto/FileGetContents.proto deleted file mode 100644 index b1062204d..000000000 --- a/sdk/target/classes/main/proto/FileGetContents.proto +++ /dev/null @@ -1,28 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; -import "src/main/proto/QueryHeader.proto"; -import "src/main/proto/ResponseHeader.proto"; - -/* Get the contents of a file. The content field is empty (no bytes) if the file is empty. */ -message FileGetContentsQuery { - QueryHeader header = 1; // standard info sent from client to node, including the signed payment, and what kind of response is requested (cost, state proof, both, or neither). - FileID fileID = 2; // the file whose contents are requested -} - -/* Response when the client sends the node FileGetContentsQuery */ -message FileGetContentsResponse { - ResponseHeader header = 1; //standard response from node to client, including the requested fields: cost, or state proof, or both, or neither - message FileContents { - FileID fileID = 1; // The file whose contents are being returned - bytes contents = 2; // the bytes contained in the file - } - FileContents fileContents = 2; // the file ID and contents (a state proof can be generated for this) -} - - diff --git a/sdk/target/classes/main/proto/FileGetInfo.proto b/sdk/target/classes/main/proto/FileGetInfo.proto deleted file mode 100644 index 87fc97773..000000000 --- a/sdk/target/classes/main/proto/FileGetInfo.proto +++ /dev/null @@ -1,31 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "Timestamp.proto"; -import "src/main/proto/BasicTypes.proto"; -import "src/main/proto/QueryHeader.proto"; -import "src/main/proto/ResponseHeader.proto"; - -/* Get all of the information about a file, except for its contents. When a file expires, it no longer exists, and there will be no info about it, and the fileInfo field will be blank. If a transaction or smart contract deletes the file, but it has not yet expired, then the fileInfo field will be non-empty, the deleted field will be true, its size will be 0, and its contents will be empty. Note that each file has a FileID, but does not have a filename. */ -message FileGetInfoQuery { - QueryHeader header = 1; // standard info sent from client to node, including the signed payment, and what kind of response is requested (cost, state proof, both, or neither). - FileID fileID = 2; // the file for which information is requested -} - -/* Response when the client sends the node FileGetInfoQuery */ -message FileGetInfoResponse { - ResponseHeader header = 1; //standard response from node to client, including the requested fields: cost, or state proof, or both, or neither - - message FileInfo { - FileID fileID = 1; // the account for which information is requested - int64 size = 2; // number of bytes in contents - Timestamp expirationTime = 3; // the current time at which this account is set to expire - bool deleted = 4; // true if deleted but not yet expired - KeyList keys = 5; // one of these keys must sign in order to modify or delete the file - } - FileInfo fileInfo = 2; // the information about the file (a state proof can be generated for this) -} diff --git a/sdk/target/classes/main/proto/FileService.proto b/sdk/target/classes/main/proto/FileService.proto deleted file mode 100644 index 061f61d8f..000000000 --- a/sdk/target/classes/main/proto/FileService.proto +++ /dev/null @@ -1,29 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.service.proto.java"; - -import "Query.proto"; -import "src/main/proto/Response.proto"; -import "src/main/proto/TransactionResponse.proto"; -import "src/main/proto/Transaction.proto"; - -/* The request and responses for different file services. */ -service FileService { - rpc createFile (Transaction) returns (TransactionResponse); // Creates a file with the content by submitting the transaction. The grpc server returns the TransactionResponse - - rpc updateFile (Transaction) returns (TransactionResponse); // Updates a file by submitting the transaction. The grpc server returns the TransactionResponse - - rpc deleteFile (Transaction) returns (TransactionResponse); // Deletes a file by submitting the transaction. The grpc server returns the TransactionResponse - - rpc appendContent (Transaction) returns (TransactionResponse); // Appends the file contents(for a given FileID) by submitting the transaction. The grpc server returns the TransactionResponse - - rpc getFileContent (Query) returns (Response); // Retrieves the file content by submitting the query. The grpc server returns the Response - - rpc getFileInfo (Query) returns (Response); // Retrieves the file information by submitting the query. The grpc server returns the Response - - rpc adminDelete (Transaction) returns (TransactionResponse); // Deletes a file by submitting the transaction when the account has admin privileges on the file. The grpc server returns the TransactionResponse - - rpc adminUndelete (Transaction) returns (TransactionResponse); // UnDeletes a file by submitting the transaction when the account has admin privileges on the file. The grpc server returns the TransactionResponse -} \ No newline at end of file diff --git a/sdk/target/classes/main/proto/FileUpdate.proto b/sdk/target/classes/main/proto/FileUpdate.proto deleted file mode 100644 index db7427713..000000000 --- a/sdk/target/classes/main/proto/FileUpdate.proto +++ /dev/null @@ -1,20 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; -import "Timestamp.proto"; - -/* Modify some of the metadata for a file. Any null field is ignored (left unchanged). Any field that is null is left unchanged. If contents is non-null, then the file's contents will be replaced with the given bytes. This transaction must be signed by all the keys for that file. If the transaction is modifying the keys field, then it must be signed by all the keys in both the old list and the new list. - * - * If a file was created without ANY keys in the keys field, ONLY the expirationTime of the file can be changed using this call. The file contents or its keys cannot be changed. - */ -message FileUpdateTransactionBody { - FileID fileID = 1; // the file to update - Timestamp expirationTime = 2; // the new time at which it should expire (ignored if not later than the current value) - KeyList keys = 3; // the keys that can modify or delete the file - bytes contents = 4; // the new file contents. All the bytes in the old contents are discarded. -} diff --git a/sdk/target/classes/main/proto/GetByKey.proto b/sdk/target/classes/main/proto/GetByKey.proto deleted file mode 100644 index 3a1a716c5..000000000 --- a/sdk/target/classes/main/proto/GetByKey.proto +++ /dev/null @@ -1,34 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; -import "src/main/proto/QueryHeader.proto"; -import "src/main/proto/ResponseHeader.proto"; -import "CryptoAddClaim.proto"; - -/* Get all accounts, claims, files, and smart contract instances whose associated keys include the given Key. The given Key must not be a contractID or a ThresholdKey. This is not yet implemented in the API, but will be in the future. */ -message GetByKeyQuery { - QueryHeader header = 1; // standard info sent from client to node, including the signed payment, and what kind of response is requested (cost, state proof, both, or neither). - Key key = 2; // the key to search for. It must not contain a contractID nor a ThresholdSignature. -} - -/* the ID for a single entity (account, claim, file, or smart contract instance) */ -message EntityID { - oneof entity { - AccountID accountID = 1; // a cryptocurrency account - Claim claim = 2; // a claim attached to an account - FileID fileID = 3; // a file - ContractID contractID = 4; // a smart contract instance - } -} -/* Response when the client sends the node GetByKeyQuery */ -message GetByKeyResponse { - ResponseHeader header = 1; //standard response from node to client, including the requested fields: cost, or state proof, or both, or neither - repeated EntityID entities = 2; // list of entities that include this public key in their associated Key list -} - - diff --git a/sdk/target/classes/main/proto/GetBySolidityID.proto b/sdk/target/classes/main/proto/GetBySolidityID.proto deleted file mode 100644 index ec92eda11..000000000 --- a/sdk/target/classes/main/proto/GetBySolidityID.proto +++ /dev/null @@ -1,26 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; -import "src/main/proto/QueryHeader.proto"; -import "src/main/proto/ResponseHeader.proto"; - -/* Get the IDs in the format used by transactions, given the ID in the format used by Solidity. If the Solidity ID is for a smart contract instance, then both the ContractID and associated AccountID will be returned. */ -message GetBySolidityIDQuery { - QueryHeader header = 1; // standard info sent from client to node, including the signed payment, and what kind of response is requested (cost, state proof, both, or neither). - string solidityID = 2; // the ID in the format used by Solidity -} - -/* Response when the client sends the node GetBySolidityIDQuery */ -message GetBySolidityIDResponse { - ResponseHeader header = 1; //standard response from node to client, including the requested fields: cost, or state proof, or both, or neither - AccountID accountID = 2; // a cryptocurrency account - FileID fileID = 3; // a file - ContractID contractID = 4; // a smart contract instance (if this is included, then the associated accountID will also be included) -} - - diff --git a/sdk/target/classes/main/proto/Query.proto b/sdk/target/classes/main/proto/Query.proto deleted file mode 100644 index 19ae9f70d..000000000 --- a/sdk/target/classes/main/proto/Query.proto +++ /dev/null @@ -1,52 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/GetByKey.proto"; -import "src/main/proto/GetBySolidityID.proto"; - -import "src/main/proto/ContractCallLocal.proto"; -import "src/main/proto/ContractGetInfo.proto"; -import "src/main/proto/ContractGetBytecode.proto"; -import "ContractGetRecords.proto"; - -import "src/main/proto/CryptoGetAccountBalance.proto"; -import "src/main/proto/CryptoGetAccountRecords.proto"; -import "src/main/proto/CryptoGetInfo.proto"; -import "CryptoGetClaim.proto"; -import "CryptoGetStakers.proto"; - -import "FileGetContents.proto"; -import "src/main/proto/FileGetInfo.proto"; - -import "src/main/proto/TransactionGetReceipt.proto"; -import "src/main/proto/TransactionGetRecord.proto"; -import "TransactionGetFastRecord.proto"; - -/* A single query, which is sent from the client to the node. This includes all possible queries. */ -message Query { - oneof query { - GetByKeyQuery getByKey = 1; // get all entities associated with a given key - GetBySolidityIDQuery getBySolidityID = 2; // get the IDs in the format used in transactions, given the format used in Solidity - ContractCallLocalQuery contractCallLocal = 3; // call a function of a smart contract instance - ContractGetInfoQuery contractGetInfo = 4; // get information about a smart contract instance - ContractGetBytecodeQuery contractGetBytecode = 5; // get bytecode used by a smart contract instance - ContractGetRecordsQuery ContractGetRecords = 6; // - - CryptoGetAccountBalanceQuery cryptogetAccountBalance = 7; // get the current balance in a cryptocurrency account - CryptoGetAccountRecordsQuery cryptoGetAccountRecords = 8; // get all the records that currently exist for transactions involving an account - CryptoGetInfoQuery cryptoGetInfo = 9; // get all information about an account - CryptoGetClaimQuery cryptoGetClaim = 10; // get a single claim from a single account (or null if it doesn't exist) - CryptoGetStakersQuery cryptoGetProxyStakers = 11; // get all the accounts that proxy stake to a given account, and how much they proxy stake (not yet implemented in the current API) - - FileGetContentsQuery fileGetContents = 12; // get the contents of a file (the bytes stored in it) - FileGetInfoQuery fileGetInfo = 13; // get information about a file, such as its expiration date - - TransactionGetReceiptQuery transactionGetReceipt = 14; // get a receipt for a transaction (lasts 180 seconds) - TransactionGetRecordQuery transactionGetRecord = 15; // get a record for a transaction (lasts 1 hour) - TransactionGetFastRecordQuery transactionGetFastRecord = 16; // get a record for a transaction (lasts 180 seconds) - } -} diff --git a/sdk/target/classes/main/proto/QueryHeader.proto b/sdk/target/classes/main/proto/QueryHeader.proto deleted file mode 100644 index 12de7e58c..000000000 --- a/sdk/target/classes/main/proto/QueryHeader.proto +++ /dev/null @@ -1,22 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/Transaction.proto"; - -/* The client uses the ResponseType to request that the node send it just the answer, or both the answer and a state proof. It can also ask for just the cost for getting the answer or both. If the payment in the query fails the precheck, then the response may have some fields blank. The state proof is only available for some types of information. It is available for a Record, but not a receipt. It is available for the information in each kind of *GetInfo request. */ -enum ResponseType { - ANSWER_ONLY = 0; // Response returns answer - ANSWER_STATE_PROOF = 1; // Response returns both answer and state proof - COST_ANSWER = 2; // Response returns the cost of answer - COST_ANSWER_STATE_PROOF = 3; // Response returns the total cost of answer and state proof -} - -/* Each query from the client to the node will contain the QueryHeader, which gives the requested response type, and includes a payment for the response. It will sometimes leave payment blank: it is blank for TransactionGetReceiptQuery. It can also be left blank when the responseType is costAnswer or costAnswerStateProof. But it needs to be filled in for all other cases. The idea is that an answer that is only a few bytes (or that was paid for earlier) can be given for free. But if the answer is something that requires many bytes or much computation (like a state proof), then it should be paid for. */ -message QueryHeader { - Transaction payment = 1; // a signed CryptoTransferTransaction to pay the node a fee for handling this query - ResponseType responseType = 2; // the requested response, asking for cost, state proof, both, or neither -} diff --git a/sdk/target/classes/main/proto/Response.proto b/sdk/target/classes/main/proto/Response.proto deleted file mode 100644 index df010a3e4..000000000 --- a/sdk/target/classes/main/proto/Response.proto +++ /dev/null @@ -1,53 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/GetByKey.proto"; -import "src/main/proto/GetBySolidityID.proto"; - -import "src/main/proto/ContractCallLocal.proto"; -import "src/main/proto/ContractGetBytecode.proto"; -import "src/main/proto/ContractGetInfo.proto"; -import "src/main/proto/ContractGetRecords.proto"; - -import "src/main/proto/CryptoGetAccountBalance.proto"; -import "src/main/proto/CryptoGetAccountRecords.proto"; -import "src/main/proto/CryptoGetInfo.proto"; -import "CryptoGetClaim.proto"; -import "CryptoGetStakers.proto"; - -import "FileGetContents.proto"; -import "src/main/proto/FileGetInfo.proto"; - -import "src/main/proto/TransactionGetReceipt.proto"; -import "src/main/proto/TransactionGetRecord.proto"; -import "TransactionGetFastRecord.proto"; - -/* A single response, which is returned from the node to the client, after the client sent the node a query. This includes all responses. */ -message Response { - oneof response { - GetByKeyResponse getByKey = 1; // get all entities associated with a given key - GetBySolidityIDResponse getBySolidityID = 2; // get the IDs in the format used in transactions, given the format used in Solidity - - ContractCallLocalResponse contractCallLocal = 3; // call a function of a smart contract instance - ContractGetBytecodeResponse contractGetBytecodeResponse = 5; // get the bytecode for a smart contract instance - ContractGetInfoResponse contractGetInfo = 4; // get information about a smart contract instance - ContractGetRecordsResponse contractGetRecordsResponse = 6; //Get all existing records for a smart contract instance - - CryptoGetAccountBalanceResponse cryptogetAccountBalance = 7; // get the current balance in a cryptocurrency account - CryptoGetAccountRecordsResponse cryptoGetAccountRecords = 8; // get all the records that currently exist for transactions involving an account - CryptoGetInfoResponse cryptoGetInfo = 9; // get all information about an account - CryptoGetClaimResponse cryptoGetClaim = 10; // get a single claim from a single account (or null if it doesn't exist) - CryptoGetStakersResponse cryptoGetProxyStakers = 11; // get all the accounts that proxy stake to a given account, and how much they proxy stake - - FileGetContentsResponse fileGetContents = 12; // get the contents of a file (the bytes stored in it) - FileGetInfoResponse fileGetInfo = 13; // get information about a file, such as its expiration date - - TransactionGetReceiptResponse transactionGetReceipt = 14; // get a receipt for a transaction (lasts 180 seconds) - TransactionGetRecordResponse transactionGetRecord = 15; // get a record for a transaction (lasts 1 hour) - TransactionGetFastRecordResponse transactionGetFastRecord = 16; // get a record for a transaction (lasts 180 seconds) - } -} \ No newline at end of file diff --git a/sdk/target/classes/main/proto/ResponseCode.proto b/sdk/target/classes/main/proto/ResponseCode.proto deleted file mode 100644 index 665cc6168..000000000 --- a/sdk/target/classes/main/proto/ResponseCode.proto +++ /dev/null @@ -1,77 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -enum ResponseCodeEnum { - // response codes for pre check validation - OK = 0; // the transaction passed the precheck - INVALID_TRANSACTION = 1; // For any error not handled by specific error codes listed below. - PAYER_ACCOUNT_NOT_FOUND = 2; //Payer account does not exist. - INVALID_NODE_ACCOUNT=3; //Node Account provided does not match the node account of the node the transaction was submitted to. - TRANSACTION_EXPIRED = 4; // Pre-Check TransactionValidStart + transactionValidDuration is less than current consensus time. - INVALID_TRANSACTION_START = 5;// Transaction start time is greater than current consensus time - INVALID_TRANSACTION_DURATION=6;//valid transaction duration is a positive non zero number that does not exceed 120 seconds - INVALID_SIGNATURE = 7;//the transaction signature is not valid - MEMO_TOO_LONG =8;//Transaction memo size exceeded 100 bytes - INSUFFICIENT_TX_FEE = 9; // the transaction fee is insufficient for this type of transaction - INSUFFICIENT_PAYER_BALANCE = 10; // the payer account has insufficient cryptocurrency to pay the transaction fee - DUPLICATE_TRANSACTION = 11; // this transaction ID is a duplicate of one that was submitted to this node or reached consensus in the last 180 seconds (receipt period) - BUSY = 12; //If API is throttled out - NOT_SUPPORTED = 13; //not supported API - /*response codes used in queries */ - INVALID_FILE_ID = 14;//the file id is invalid or does not exist - INVALID_ACCOUNT_ID = 15;//the account id is invalid or does not exist - INVALID_CONTRACT_ID = 16;//the contract id is invalid or does ont exist - INVALID_TRANSACTION_ID =17;//transaction id is not valid - RECEIPT_NOT_FOUND = 18;//receipt for given transaction id does not exist - RECORD_NOT_FOUND = 19;//record for given transaction id does not exist - INVALID_SOLIDITY_ID=20;//the solidity id is invalid or entity with this solidity id does not exist - - // response code for Transaction receipt - UNKNOWN = 21; // hasn't yet reached consensus, or has already expired - SUCCESS = 22; // the transaction succeeded - FAIL_INVALID = 23; // the transaction failed because it is invalid - FAIL_FEE = 24; // the transaction fee was insufficient - FAIL_BALANCE = 25; // the paying account had insufficient cryptocurrency - - //Crypto Response codes - KEY_REQUIRED = 26; //Key not provided in the transaction body - BAD_ENCODING = 27; //Unsupported algorithm/encoding used for keys in the transaction - INSUFFICIENT_ACCOUNT_BALANCE=28; //When the account balance is not sufficient for the transfer - INVALID_SOLIDITY_ADDRESS=29; //During an update transaction when the system is not able to find the Users Solidity address - - //Smart contract creation or execution - INSUFFICIENT_GAS =30; //Not enough gas was supplied to execute tranasction - CONTRACT_SIZE_LIMIT_EXCEEDED =31; //contract byte code size is over the limit - LOCAL_CALL_MODIFICATION_EXCEPTION=32;//local execution (query) is requested for a function which changes state - CONTRACT_REVERT_EXECUTED=33; //Contract REVERT OPCODE executed - CONTRACT_EXECUTION_EXCEPTION=34;//For any contract execution related error not handled by specific error codes listed above. - INVALID_RECEIVING_NODE_ACCOUNT = 35; //In Query validation, account with +ve(amount) value should be Receiving node account, the receiver account should be only one account in the list - MISSING_QUERY_HEADER = 36; // Header is missing in Query request - - - - ACCOUNT_UPDATE_FAILED = 37; // the update of the account failed - INVALID_KEY_ENCODING = 38; - NULL_SOLIDITY_ADDRESS = 39; // null solidity address - - CONTRACT_UPDATE_FAILED = 40; // update of the contract failed - INVALID_QUERY_HEADER = 41; // the query header is invalid - - INVALID_FEE_SUBMITTED = 42; // Invalid fee submitted*/ - INVALID_PAYER_SIGNATURE = 43; // payer signature is invalid - - - KEY_NOT_PROVIDED = 44; - INVALID_EXPIRATION_TIME = 45; - NO_WACL_KEY = 46; - FILE_CONTENT_EMPTY = 47; - INVALID_ACCOUNT_AMOUNTS = 48; // The crypto transfer credit and debit don't equal to 0 - // new response codes to be added - EMPTY_TRANSACTION_BODY = 49; // transaction body is empty - INVALID_TRANSACTION_BODY = 50; // invalid transaction body - -} \ No newline at end of file diff --git a/sdk/target/classes/main/proto/ResponseHeader.proto b/sdk/target/classes/main/proto/ResponseHeader.proto deleted file mode 100644 index f0f85b5eb..000000000 --- a/sdk/target/classes/main/proto/ResponseHeader.proto +++ /dev/null @@ -1,18 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/TransactionResponse.proto"; -import "src/main/proto/QueryHeader.proto"; -import "ResponseCode.proto"; - -/* Every query receives a response containing the QueryResponseHeader. Either or both of the cost and stateProof fields may be blank, if the responseType didn��t ask for the cost or stateProof. */ -message ResponseHeader { - ResponseCodeEnum nodeTransactionPrecheckCode = 1; // result of fee transaction precheck, saying it passed, or why it failed - ResponseType responseType = 2; // the requested response is repeated back here, for convenience - uint64 cost = 3; // the fee that would be charged to get the requested information (if a cost was requested) - bytes stateProof = 4; // the state proof for this information (if a state proof was requested, and is available) -} diff --git a/sdk/target/classes/main/proto/SmartContractService.proto b/sdk/target/classes/main/proto/SmartContractService.proto deleted file mode 100644 index f76b5fb49..000000000 --- a/sdk/target/classes/main/proto/SmartContractService.proto +++ /dev/null @@ -1,30 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.service.proto.java"; - -import "src/main/proto/TransactionResponse.proto"; -import "Query.proto"; -import "Response.proto"; -import "Transaction.proto"; - -/* The request and responses for different smart contract services. */ -service SmartContractService { - rpc createContract (Transaction) returns (TransactionResponse); // Creates a contract by submitting the transaction. The grpc server returns the TransactionResponse - - rpc updateContract (Transaction) returns (TransactionResponse); // Updates a contract with the content by submitting the transaction. The grpc server returns the TransactionResponse - - rpc contractCallMethod (Transaction) returns (TransactionResponse); // Calls a contract by submitting the transaction. The grpc server returns the TransactionResponse - - rpc getContractInfo (Query) returns (Response); // Retrieves the contract information by submitting the query. The grpc server returns the Response - - rpc contractCallLocalMethod (Query) returns (Response); // Calls a smart contract by submitting the query. The grpc server returns the Response - - rpc ContractGetBytecode (Query) returns (Response); // Retrieves the byte code of a contract by submitting the query. The grpc server returns the Response - - rpc getBySolidityID (Query) returns (Response); // Retrieves a contract(using Solidity ID) by submitting the query. The grpc server returns the Response - - rpc getTxRecordByContractID (Query) returns (Response); // Retrieves a contract(using contract ID) by submitting the query. The grpc server returns the Response - - } \ No newline at end of file diff --git a/sdk/target/classes/main/proto/Timestamp.proto b/sdk/target/classes/main/proto/Timestamp.proto deleted file mode 100644 index 57bffcefc..000000000 --- a/sdk/target/classes/main/proto/Timestamp.proto +++ /dev/null @@ -1,18 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -/* An exact date and time. This is the same data structure as the protobuf Timestamp.proto (see the comments in https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto) */ -message Timestamp { - int64 seconds = 1; // number of complete seconds since the start of the epoch - int32 nanos = 2; // number of nanoseconds since the start of the last second -} - -/* An exact date and time, with a resolution of one second (no nanoseconds). */ -message TimestampSeconds { - int64 seconds = 1; // number of complete seconds since the start of the epoch -} - diff --git a/sdk/target/classes/main/proto/Transaction.proto b/sdk/target/classes/main/proto/Transaction.proto deleted file mode 100644 index 63f1d5461..000000000 --- a/sdk/target/classes/main/proto/Transaction.proto +++ /dev/null @@ -1,64 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "AdminDelete.proto"; -import "AdminUndelete.proto"; - -import "ContractCall.proto"; -import "ContractCreate.proto"; -import "ContractUpdate.proto"; - -import "CryptoAddClaim.proto"; -import "CryptoCreate.proto"; -import "src/main/proto/CryptoDelete.proto"; -import "src/main/proto/CryptoDeleteClaim.proto"; -import "src/main/proto/CryptoTransfer.proto"; -import "CryptoUpdate.proto"; - -import "FileAppend.proto"; -import "FileCreate.proto"; -import "FileDelete.proto"; -import "src/main/proto/FileUpdate.proto"; - -import "Duration.proto"; -import "src/main/proto/BasicTypes.proto"; - -/* A single transaction. All transaction types are possible here. */ -message TransactionBody { - TransactionID transactionID = 1; // the ID for this transaction, which includes the payer's account (the account paying the transaction fee). If two transactions have the same transactionID, they won't both have an effect - AccountID nodeAccountID = 2; // the account of the node that submits the client's transaction to the network - uint64 transactionFee = 3; // the fee the client pays, which is split between the network and the node - Duration transactionValidDuration = 4; //the transaction is invalid if consensusTimestamp > transactionID.transactionValidStart + transactionValidDuration - bool generateRecord = 5; // should a record of this transaction be generated? (A receipt is always generated, but the record is optional) - string memo = 6; // any notes or descriptions that should be put into the record (max length 100) - oneof data { - AdminDeleteTransactionBody adminDelete = 20; // Hedera multisig admin deletes a file or smart contract - AdminUndeleteTransactionBody adminUndelete = 21; //to undelete an entity deleted by AdminDelete - - ContractCallTransactionBody contractCall = 7; // call a function of a contract instance - ContractCreateTransactionBody contractCreateInstance = 8; // create a contract instance - ContractUpdateTransactionBody contractUpdateInstance = 9; // modify info such as expiration date for a contract instance - - CryptoAddClaimTransactionBody cryptoAddClaim = 10; // attach a new claim to an account - CryptoCreateTransactionBody cryptoCreateAccount = 11; // create a new cryptocurrency account - CryptoDeleteTransactionBody cryptoDelete = 12; // delete a cryptocurrency account (mark as deleted, and transfer hbars out) - CryptoDeleteClaimTransactionBody cryptoDeleteClaim = 13; // remove a claim from an account - CryptoTransferTransactionBody cryptoTransfer = 14; // transfer hbars between accounts - CryptoUpdateTransactionBody cryptoUpdateAccount = 15; // modify information such as the expiration date for an account - - FileAppendTransactionBody fileAppend = 16; // add bytes to the end of the contents of a file - FileCreateTransactionBody fileCreate = 17; // create a new file - FileDeleteTransactionBody fileDelete = 18; // delete a file (remove contents and mark as deleted until it expires) - FileUpdateTransactionBody fileUpdate = 19; // modify information such as the expiration date for a file - } -} - -/* A single signed transaction, including all its signatures. The SignatureList will have a Signature for each Key in the transaction, either explicit or implicit, in the order that they appear in the transaction. For example, a CryptoTransfer will first have a Signature corresponding to the Key for the paying account, followed by a Signature corresponding to the Key for each account that is sending or receiving cryptocurrency in the transfer. */ -message Transaction { - TransactionBody body = 1; // the body of the transaction, which needs to be signed - SignatureList sigs = 2; // the signatures on the body, to authorize the transaction -} diff --git a/sdk/target/classes/main/proto/TransactionGetFastRecord.proto b/sdk/target/classes/main/proto/TransactionGetFastRecord.proto deleted file mode 100644 index 38f3a6847..000000000 --- a/sdk/target/classes/main/proto/TransactionGetFastRecord.proto +++ /dev/null @@ -1,22 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "TransactionRecord.proto"; -import "BasicTypes.proto"; -import "QueryHeader.proto"; -import "ResponseHeader.proto"; - -/* Get the tx record of a transaction, given its transaction ID. Once a transaction reaches consensus, then information about whether it succeeded or failed will be available until the end of the receipt period. Before and after the receipt period, and for a transaction that was never submitted, the receipt is unknown. This query is free (the payment field is left empty). */ -message TransactionGetFastRecordQuery { - QueryHeader header = 1; // standard info sent from client to node, including the signed payment, and what kind of response is requested (cost, state proof, both, or neither). - TransactionID transactionID = 2; // the ID of the transaction for which the record is requested. -} -/* Response when the client sends the node TransactionGetFastRecordQuery. If it created a new entity (account, file, or smart contract instance) then one of the three ID fields will be filled in with the ID of the new entity. Sometimes a single transaction will create more than one new entity, such as when a new contract instance is created, and this also creates the new account that it owned by that instance. */ -message TransactionGetFastRecordResponse { - ResponseHeader header = 1; //standard response from node to client, including the requested fields: cost, or state proof, or both, or neither - TransactionRecord transactionRecord = 2; // the requested record -} diff --git a/sdk/target/classes/main/proto/TransactionGetReceipt.proto b/sdk/target/classes/main/proto/TransactionGetReceipt.proto deleted file mode 100644 index 0614f41b1..000000000 --- a/sdk/target/classes/main/proto/TransactionGetReceipt.proto +++ /dev/null @@ -1,22 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "TransactionReceipt.proto"; -import "src/main/proto/BasicTypes.proto"; -import "src/main/proto/QueryHeader.proto"; -import "src/main/proto/ResponseHeader.proto"; - -/* Get the receipt of a transaction, given its transaction ID. Once a transaction reaches consensus, then information about whether it succeeded or failed will be available until the end of the receipt period. Before and after the receipt period, and for a transaction that was never submitted, the receipt is unknown. This query is free (the payment field is left empty). */ -message TransactionGetReceiptQuery { - QueryHeader header = 1; // standard info sent from client to node, including the signed payment, and what kind of response is requested (cost, state proof, both, or neither). - TransactionID transactionID = 2; // the ID of the transaction for which the receipt is requested. -} -/* Response when the client sends the node TransactionGetReceiptQuery. If it created a new entity (account, file, or smart contract instance) then one of the three ID fields will be filled in with the ID of the new entity. Sometimes a single transaction will create more than one new entity, such as when a new contract instance is created, and this also creates the new account that it owned by that instance. */ -message TransactionGetReceiptResponse { - ResponseHeader header = 1; //standard response from node to client, including the requested fields: cost, or state proof, or both, or neither - TransactionReceipt receipt = 2; // the receipt, indicating it reached consensus (and whether it succeeded or failed) or is currently unknown (because it hasn't reached consensus yet, or the transaction has expired already), and including the ID of any new account/file/instance created by that transaction. -} diff --git a/sdk/target/classes/main/proto/TransactionGetRecord.proto b/sdk/target/classes/main/proto/TransactionGetRecord.proto deleted file mode 100644 index 4dea06b08..000000000 --- a/sdk/target/classes/main/proto/TransactionGetRecord.proto +++ /dev/null @@ -1,24 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/TransactionRecord.proto"; -import "src/main/proto/BasicTypes.proto"; -import "src/main/proto/QueryHeader.proto"; -import "src/main/proto/ResponseHeader.proto"; - -/* Get the record for a transaction. If the transaction requested a record, then the record lasts for one hour, and a state proof is available for it. If the transaction created an account, file, or smart contract instance, then the record will contain the ID for what it created. If the transaction called a smart contract function, then the record contains the result of that call. If the transaction was a cryptocurrency transfer, then the record includes the TransferList which gives the details of that transfer. If the transaction didn't return anything that should be in the record, then the results field will be set to nothing. */ -message TransactionGetRecordQuery { - QueryHeader header = 1; // standard info sent from client to node, including the signed payment, and what kind of response is requested (cost, state proof, both, or neither). - TransactionID transactionID = 2; // the ID of the transaction for which the record is requested. -} - -/* Response when the client sends the node TransactionGetRecordQuery */ -message TransactionGetRecordResponse { - ResponseHeader header = 1; //standard response from node to client, including the requested fields: cost, or state proof, or both, or neither. - TransactionRecord transactionRecord = 3; // the requested record -} - diff --git a/sdk/target/classes/main/proto/TransactionReceipt.proto b/sdk/target/classes/main/proto/TransactionReceipt.proto deleted file mode 100644 index b04ed7d68..000000000 --- a/sdk/target/classes/main/proto/TransactionReceipt.proto +++ /dev/null @@ -1,19 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "src/main/proto/BasicTypes.proto"; -import "ResponseCode.proto"; - - -/* The consensus result for a transaction, which might not be currently known, or may succeed or fail. */ -message TransactionReceipt { - ResponseCodeEnum status = 1; // whether the transaction succeeded or failed (or is unknown) - - AccountID accountID = 2; // the account ID, if a new account was created - FileID fileID = 3; // the file ID, if a new file was created - ContractID contractID = 4; // the contract ID, if a new smart contract instance was created -} diff --git a/sdk/target/classes/main/proto/TransactionRecord.proto b/sdk/target/classes/main/proto/TransactionRecord.proto deleted file mode 100644 index 71035180c..000000000 --- a/sdk/target/classes/main/proto/TransactionRecord.proto +++ /dev/null @@ -1,27 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "Timestamp.proto"; -import "src/main/proto/BasicTypes.proto"; -import "TransactionReceipt.proto"; -import "src/main/proto/CryptoTransfer.proto"; -import "src/main/proto/ContractCallLocal.proto"; - -/* Response when the client sends the node TransactionGetRecordResponse */ -message TransactionRecord { - TransactionReceipt receipt = 1; // the status (reach consensus, or failed, or is unknown) and the ID of any new account/file/instance created. - bytes transactionHash = 2; // the hash of the Transaction that executed (not the hash of any Transaction that failed for having a duplicate TransactionID)_ - Timestamp consensusTimestamp = 3; // the consensus timestamp (or null if didn't reach consensus yet) - TransactionID transactionID = 4; // the ID of the transaction this record represents - string memo = 5; // the memo that was submitted as part of the transaction (max 100 bytes) - uint64 transactionFee = 6; // the transaction fee in the transaction - oneof body { - ContractFunctionResult contractCallResult = 7; // record of the value returned by the smart contract function (if it completed and didn't fail) from ContractCallTransaction - ContractFunctionResult contractCreateResult = 8; // record of the value returned by the smart contract constructor (if it completed and didn't fail) from ContractCreateTransaction - TransferList transferList = 9; // record of results of a CryptoTransferTransaction - } -} diff --git a/sdk/target/classes/main/proto/TransactionResponse.proto b/sdk/target/classes/main/proto/TransactionResponse.proto deleted file mode 100644 index 02178163a..000000000 --- a/sdk/target/classes/main/proto/TransactionResponse.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; - -package proto; - -option java_package = "com.hederahashgraph.api.proto.java"; -option java_multiple_files = true; - -import "ResponseCode.proto"; - - -/* When the client sends the node a transaction of any kind, the node replies with this, which simply says that the transaction passed the precheck (so the node will submit it to the network) or it failed (so it won't). To learn the consensus result, the client should later obtain a receipt (free), or can buy a more detailed record (not free). */ -message TransactionResponse { - ResponseCodeEnum nodeTransactionPrecheckCode = 1; // whether the transaction passed the precheck, or why it failed -} diff --git a/sdk/target/classes/main/resources/log4j.xml b/sdk/target/classes/main/resources/log4j.xml deleted file mode 100644 index 2fcff478c..000000000 --- a/sdk/target/classes/main/resources/log4j.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml deleted file mode 100644 index 76c76d778..000000000 --- a/src/main/resources/logback.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n - - - - - - - \ No newline at end of file diff --git a/target/apidocs/javadoc.sh b/target/apidocs/javadoc.sh deleted file mode 100755 index 8f24ab6a7..000000000 --- a/target/apidocs/javadoc.sh +++ /dev/null @@ -1 +0,0 @@ -/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/javadoc @options @packages \ No newline at end of file diff --git a/target/apidocs/options b/target/apidocs/options deleted file mode 100644 index 479fc5114..000000000 --- a/target/apidocs/options +++ /dev/null @@ -1,24 +0,0 @@ --classpath -'/Users/gregscullard/.m2/repository/nekohtml/nekohtml/1.9.6.2/nekohtml-1.9.6.2.jar:/Users/gregscullard/.m2/repository/org/apache/maven/maven-plugin-registry/2.2.1/maven-plugin-registry-2.2.1.jar:/Users/gregscullard/.m2/repository/org/codehaus/plexus/plexus-archiver/3.3/plexus-archiver-3.3.jar:/Users/gregscullard/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.jar:/Users/gregscullard/.m2/repository/io/netty/netty-buffer/4.1.27.Final/netty-buffer-4.1.27.Final.jar:/Users/gregscullard/.m2/repository/net/i2p/crypto/eddsa/0.3.0/eddsa-0.3.0.jar:/Users/gregscullard/.m2/repository/org/apache/maven/wagon/wagon-http/1.0-beta-6/wagon-http-1.0-beta-6.jar:/Users/gregscullard/.m2/repository/com/madgag/spongycastle/prov/1.53.0.0/prov-1.53.0.0.jar:/Users/gregscullard/.m2/repository/org/apache/maven/maven-repository-metadata/2.2.1/maven-repository-metadata-2.2.1.jar:/Users/gregscullard/.m2/repository/org/objenesis/objenesis/1.0/objenesis-1.0.jar:/Users/gregscullard/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/Users/gregscullard/.m2/repository/com/google/api/grpc/proto-google-common-protos/1.12.0/proto-google-common-protos-1.12.0.jar:/Users/gregscullard/.m2/repository/com/google/protobuf/protobuf-java/3.6.0/protobuf-java-3.6.0.jar:/Users/gregscullard/.m2/repository/org/springframework/spring-tx/4.2.0.RELEASE/spring-tx-4.2.0.RELEASE.jar:/Users/gregscullard/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.5.0/jackson-annotations-2.5.0.jar:/Users/gregscullard/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar:/Users/gregscullard/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar:/Users/gregscullard/.m2/repository/com/typesafe/config/1.2.1/config-1.2.1.jar:/Users/gregscullard/.m2/repository/io/netty/netty-handler/4.1.27.Final/netty-handler-4.1.27.Final.jar:/Users/gregscullard/.m2/repository/org/apache/maven/maven-plugin-descriptor/2.2.1/maven-plugin-descriptor-2.2.1.jar:/Users/gregscullard/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.5.1/jackson-core-2.5.1.jar:/Users/gregscullard/.m2/repository/javax/xml/bind/jaxb-api/2.3.0/jaxb-api-2.3.0.jar:/Users/gregscullard/.m2/repository/org/apache/maven/doxia/doxia-core/1.4/doxia-core-1.4.jar:/Users/gregscullard/.m2/repository/classworlds/classworlds/1.1/classworlds-1.1.jar:/Users/gregscullard/.m2/repository/org/apache/maven/shared/maven-invoker/2.2/maven-invoker-2.2.jar:/Users/gregscullard/.m2/repository/com/google/errorprone/error_prone_annotations/2.1.2/error_prone_annotations-2.1.2.jar:/Users/gregscullard/.m2/repository/org/codehaus/plexus/plexus-container-default/1.0-alpha-9/plexus-container-default-1.0-alpha-9.jar:/Users/gregscullard/.m2/repository/io/netty/netty-common/4.1.27.Final/netty-common-4.1.27.Final.jar:/Users/gregscullard/.m2/repository/io/grpc/grpc-stub/1.14.0/grpc-stub-1.14.0.jar:/Users/gregscullard/.m2/repository/org/apache/maven/plugins/maven-javadoc-plugin/2.10.4/maven-javadoc-plugin-2.10.4.jar:/Users/gregscullard/.m2/repository/com/madgag/spongycastle/core/1.58.0.0/core-1.58.0.0.jar:/Users/gregscullard/.m2/repository/com/thoughtworks/qdox/qdox/1.12.1/qdox-1.12.1.jar:/Users/gregscullard/.m2/repository/org/iq80/snappy/snappy/0.4/snappy-0.4.jar:/Users/gregscullard/.m2/repository/org/ethereum/ethereumj-core/1.6.3-RELEASE/ethereumj-core-1.6.3-RELEASE.jar:/Users/gregscullard/.m2/repository/io/opencensus/opencensus-contrib-grpc-metrics/0.12.3/opencensus-contrib-grpc-metrics-0.12.3.jar:/Users/gregscullard/.m2/repository/org/springframework/spring-beans/4.2.0.RELEASE/spring-beans-4.2.0.RELEASE.jar:/Users/gregscullard/.m2/repository/com/sun/xml/bind/jaxb-impl/2.3.0/jaxb-impl-2.3.0.jar:/Users/gregscullard/.m2/repository/org/iq80/leveldb/leveldb/0.7/leveldb-0.7.jar:/Users/gregscullard/.m2/repository/commons-chain/commons-chain/1.1/commons-chain-1.1.jar:/Users/gregscullard/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar:/Users/gregscullard/.m2/repository/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar:/Users/gregscullard/.m2/repository/io/netty/netty-resolver/4.1.27.Final/netty-resolver-4.1.27.Final.jar:/Users/gregscullard/.m2/repository/org/apache/maven/maven-toolchain/2.2.1/maven-toolchain-2.2.1.jar:/Users/gregscullard/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar:/Users/gregscullard/.m2/repository/org/apache/struts/struts-tiles/1.3.8/struts-tiles-1.3.8.jar:/Users/gregscullard/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.4/doxia-module-xhtml-1.4.jar:/Users/gregscullard/.m2/repository/com/cedarsoftware/java-util/1.8.0/java-util-1.8.0.jar:/Users/gregscullard/.m2/repository/io/grpc/grpc-protobuf-lite/1.14.0/grpc-protobuf-lite-1.14.0.jar:/Users/gregscullard/.m2/repository/io/grpc/grpc-testing/1.14.0/grpc-testing-1.14.0.jar:/Users/gregscullard/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar:/Users/gregscullard/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.4/doxia-logging-api-1.4.jar:/Users/gregscullard/.m2/repository/org/javassist/javassist/3.15.0-GA/javassist-3.15.0-GA.jar:/Users/gregscullard/.m2/repository/org/apache/maven/maven-profile/2.2.1/maven-profile-2.2.1.jar:/Users/gregscullard/.m2/repository/org/apache/httpcomponents/httpcore/4.2.2/httpcore-4.2.2.jar:/Users/gregscullard/.m2/repository/nekohtml/xercesMinimal/1.9.6.2/xercesMinimal-1.9.6.2.jar:/Users/gregscullard/.m2/repository/org/apache/maven/wagon/wagon-http-lightweight/1.0-beta-6/wagon-http-lightweight-1.0-beta-6.jar:/Users/gregscullard/.m2/repository/org/springframework/spring-expression/4.2.0.RELEASE/spring-expression-4.2.0.RELEASE.jar:/Users/gregscullard/.m2/repository/io/grpc/grpc-protobuf-nano/1.14.0/grpc-protobuf-nano-1.14.0.jar:/Users/gregscullard/.m2/repository/org/apache/struts/struts-taglib/1.3.8/struts-taglib-1.3.8.jar:/Users/gregscullard/.m2/repository/commons-codec/commons-codec/1.10/commons-codec-1.10.jar:/Users/gregscullard/.m2/repository/io/grpc/grpc-all/1.14.0/grpc-all-1.14.0.jar:/Users/gregscullard/.m2/repository/com/googlecode/concurrent-locks/concurrent-locks/1.0.0/concurrent-locks-1.0.0.jar:/Users/gregscullard/.m2/repository/org/springframework/spring-aop/4.2.0.RELEASE/spring-aop-4.2.0.RELEASE.jar:/Users/gregscullard/.m2/repository/com/google/code/gson/gson/2.7/gson-2.7.jar:/Users/gregscullard/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/Users/gregscullard/.m2/repository/org/apache/maven/maven-plugin-api/2.2.1/maven-plugin-api-2.2.1.jar:/Users/gregscullard/.m2/repository/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar:/Users/gregscullard/.m2/repository/io/netty/netty-handler-proxy/4.1.27.Final/netty-handler-proxy-4.1.27.Final.jar:/Users/gregscullard/.m2/repository/junit/junit/4.12/junit-4.12.jar:/Users/gregscullard/.m2/repository/org/apache/maven/maven-plugin-parameter-documenter/2.2.1/maven-plugin-parameter-documenter-2.2.1.jar:/Users/gregscullard/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar:/Users/gregscullard/.m2/repository/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.jar:/Users/gregscullard/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar:/Users/gregscullard/.m2/repository/com/google/protobuf/nano/protobuf-javanano/3.0.0-alpha-5/protobuf-javanano-3.0.0-alpha-5.jar:/Users/gregscullard/.m2/repository/org/slf4j/slf4j-log4j12/1.7.21/slf4j-log4j12-1.7.21.jar:/Users/gregscullard/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/1.3/maven-common-artifact-filters-1.3.jar:/Users/gregscullard/.m2/repository/net/java/dev/jna/jna/4.2.2/jna-4.2.2.jar:/Users/gregscullard/.m2/repository/org/apache/maven/maven-core/2.2.1/maven-core-2.2.1.jar:/Users/gregscullard/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar:/Users/gregscullard/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar:/Users/gregscullard/.m2/repository/org/ethereum/solcJ-all/0.4.8/solcJ-all-0.4.8.jar:/Users/gregscullard/.m2/repository/io/grpc/grpc-netty/1.14.0/grpc-netty-1.14.0.jar:/Users/gregscullard/.m2/repository/io/netty/netty-codec-http2/4.1.27.Final/netty-codec-http2-4.1.27.Final.jar:/Users/gregscullard/.m2/repository/org/apache/struts/struts-core/1.3.8/struts-core-1.3.8.jar:/Users/gregscullard/.m2/repository/org/apache/maven/wagon/wagon-provider-api/1.0-beta-6/wagon-provider-api-1.0-beta-6.jar:/Users/gregscullard/.m2/repository/io/netty/netty-transport/4.1.27.Final/netty-transport-4.1.27.Final.jar:/Users/gregscullard/.m2/repository/com/squareup/okio/okio/1.13.0/okio-1.13.0.jar:/Users/gregscullard/.m2/repository/javax/activation/activation/1.1.1/activation-1.1.1.jar:/Users/gregscullard/.m2/repository/io/grpc/grpc-okhttp/1.14.0/grpc-okhttp-1.14.0.jar:/Users/gregscullard/.m2/repository/org/codehaus/plexus/plexus-io/2.7.1/plexus-io-2.7.1.jar:/Users/gregscullard/.m2/repository/com/google/auth/google-auth-library-credentials/0.9.0/google-auth-library-credentials-0.9.0.jar:/Users/gregscullard/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar:/Users/gregscullard/.m2/repository/com/google/guava/guava/20.0/guava-20.0.jar:/Users/gregscullard/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/Users/gregscullard/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar:/Users/gregscullard/.m2/repository/org/apache/maven/maven-error-diagnostics/2.2.1/maven-error-diagnostics-2.2.1.jar:/Users/gregscullard/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar:/Users/gregscullard/.m2/repository/org/ethereum/leveldbjni-all/1.18.3/leveldbjni-all-1.18.3.jar:/Users/gregscullard/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/Users/gregscullard/.m2/repository/io/opencensus/opencensus-api/0.12.3/opencensus-api-0.12.3.jar:/Users/gregscullard/.m2/repository/antlr/antlr/2.7.2/antlr-2.7.2.jar:/Users/gregscullard/.m2/repository/io/netty/netty-all/4.0.30.Final/netty-all-4.0.30.Final.jar:/Users/gregscullard/.m2/repository/dom4j/dom4j/1.1/dom4j-1.1.jar:/Users/gregscullard/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.24/plexus-utils-3.0.24.jar:/Users/gregscullard/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/gregscullard/.m2/repository/org/apache/maven/maven-artifact-manager/2.2.1/maven-artifact-manager-2.2.1.jar:/Users/gregscullard/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.4/doxia-site-renderer-1.4.jar:/Users/gregscullard/.m2/repository/org/apache/maven/maven-artifact/2.2.1/maven-artifact-2.2.1.jar:/Users/gregscullard/.m2/repository/org/apache/maven/wagon/wagon-ssh-common/1.0-beta-6/wagon-ssh-common-1.0-beta-6.jar:/Users/gregscullard/.m2/repository/com/google/code/findbugs/jsr305/3.0.0/jsr305-3.0.0.jar:/Users/gregscullard/.m2/repository/org/springframework/spring-core/4.2.0.RELEASE/spring-core-4.2.0.RELEASE.jar:/Users/gregscullard/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar:/Users/gregscullard/.m2/repository/org/apache/maven/wagon/wagon-ssh/1.0-beta-6/wagon-ssh-1.0-beta-6.jar:/Users/gregscullard/.m2/repository/io/grpc/grpc-core/1.14.0/grpc-core-1.14.0.jar:/Users/gregscullard/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.4/doxia-sink-api-1.4.jar:/Users/gregscullard/.m2/repository/org/apache/maven/maven-project/2.2.1/maven-project-2.2.1.jar:/Users/gregscullard/.m2/repository/sslext/sslext/1.2-0/sslext-1.2-0.jar:/Users/gregscullard/.m2/repository/org/apache/velocity/velocity-tools/2.0/velocity-tools-2.0.jar:/Users/gregscullard/.m2/repository/commons-validator/commons-validator/1.3.1/commons-validator-1.3.1.jar:/Users/gregscullard/.m2/repository/io/netty/netty-codec/4.1.27.Final/netty-codec-4.1.27.Final.jar:/Users/gregscullard/.m2/repository/io/grpc/grpc-context/1.14.0/grpc-context-1.14.0.jar:/Users/gregscullard/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/Users/gregscullard/.m2/repository/org/apache/maven/doxia/doxia-module-fml/1.4/doxia-module-fml-1.4.jar:/Users/gregscullard/.m2/repository/io/netty/netty-codec-http/4.1.27.Final/netty-codec-http-4.1.27.Final.jar:/Users/gregscullard/.m2/repository/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar:/Users/gregscullard/.m2/repository/org/apache/maven/maven-monitor/2.2.1/maven-monitor-2.2.1.jar:/Users/gregscullard/.m2/repository/org/apache/httpcomponents/httpclient/4.2.3/httpclient-4.2.3.jar:/Users/gregscullard/.m2/repository/com/squareup/okhttp/okhttp/2.5.0/okhttp-2.5.0.jar:/Users/gregscullard/.m2/repository/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar:/Users/gregscullard/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar:/Users/gregscullard/.m2/repository/org/apache/commons/commons-collections4/4.0/commons-collections4-4.0.jar:/Users/gregscullard/.m2/repository/io/netty/netty-codec-socks/4.1.27.Final/netty-codec-socks-4.1.27.Final.jar:/Users/gregscullard/.m2/repository/io/grpc/grpc-protobuf/1.14.0/grpc-protobuf-1.14.0.jar:/Users/gregscullard/.m2/repository/org/apache/maven/maven-model/2.2.1/maven-model-2.2.1.jar:/Users/gregscullard/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar:/Users/gregscullard/.m2/repository/org/apache/commons/commons-compress/1.11/commons-compress-1.11.jar:/Users/gregscullard/.m2/repository/org/springframework/spring-jdbc/4.2.0.RELEASE/spring-jdbc-4.2.0.RELEASE.jar:/Users/gregscullard/.m2/repository/org/apache/maven/maven-settings/2.2.1/maven-settings-2.2.1.jar:/Users/gregscullard/.m2/repository/com/cedarsoftware/json-io/2.4.1/json-io-2.4.1.jar:/Users/gregscullard/.m2/repository/org/apache/maven/maven-archiver/2.5/maven-archiver-2.5.jar:/Users/gregscullard/.m2/repository/com/jcraft/jsch/0.1.38/jsch-0.1.38.jar:/Users/gregscullard/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.5.1/jackson-databind-2.5.1.jar:/Users/gregscullard/.m2/repository/io/grpc/grpc-auth/1.14.0/grpc-auth-1.14.0.jar:/Users/gregscullard/.m2/repository/org/springframework/spring-context/4.2.0.RELEASE/spring-context-4.2.0.RELEASE.jar:/Users/gregscullard/.m2/repository/org/iq80/leveldb/leveldb-api/0.7/leveldb-api-0.7.jar:/Users/gregscullard/.m2/repository/com/sun/xml/bind/jaxb-core/2.3.0/jaxb-core-2.3.0.jar:/Users/gregscullard/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar:/Users/gregscullard/.m2/repository/org/apache/maven/wagon/wagon-http-shared/1.0-beta-6/wagon-http-shared-1.0-beta-6.jar:/Users/gregscullard/.m2/repository/org/springframework/spring-orm/4.2.0.RELEASE/spring-orm-4.2.0.RELEASE.jar:/Users/gregscullard/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar:/Users/gregscullard/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.4/doxia-decoration-model-1.4.jar' --encoding -'UTF-8' --protected --sourcepath -'/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java:/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources:/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/annotations' --author --bottom -'Copyright © 2019. All rights reserved.' --charset -'UTF-8' --d -'/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/apidocs' --docencoding -'UTF-8' --doctitle -'hedera-sdk-java 0.1.0 API' --linkoffline -'https://docs.oracle.com/javase/8/docs/api' '/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/javadoc-bundle-options' --use --version --windowtitle -'hedera-sdk-java 0.1.0 API' \ No newline at end of file diff --git a/target/apidocs/packages b/target/apidocs/packages deleted file mode 100644 index 90cfb781f..000000000 --- a/target/apidocs/packages +++ /dev/null @@ -1,9 +0,0 @@ -com.hedera.sdk.account -com.hedera.sdk.common -com.hedera.sdk.contract -com.hedera.sdk.cryptography -com.hedera.sdk.file -com.hedera.sdk.node -com.hedera.sdk.query -com.hedera.sdk.transaction -com.hederahashgraph.api.proto.java \ No newline at end of file diff --git a/target/classes/META-INF/MANIFEST.MF b/target/classes/META-INF/MANIFEST.MF deleted file mode 100644 index 7cef823cd..000000000 --- a/target/classes/META-INF/MANIFEST.MF +++ /dev/null @@ -1,5 +0,0 @@ -Manifest-Version: 1.0 -Built-By: gregscullard -Build-Jdk: 1.8.0_162 -Created-By: Maven Integration for Eclipse - diff --git a/target/classes/META-INF/maven/com.hedera.hashgraph/java-sdk/pom.properties b/target/classes/META-INF/maven/com.hedera.hashgraph/java-sdk/pom.properties deleted file mode 100644 index 2057e330a..000000000 --- a/target/classes/META-INF/maven/com.hedera.hashgraph/java-sdk/pom.properties +++ /dev/null @@ -1,7 +0,0 @@ -#Generated by Maven Integration for Eclipse -#Fri Jan 11 16:35:56 CET 2019 -version=0.2.0 -groupId=com.hedera.hashgraph -m2e.projectName=sdk -m2e.projectLocation=/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java -artifactId=java-sdk diff --git a/target/classes/META-INF/maven/com.hedera.hashgraph/java-sdk/pom.xml b/target/classes/META-INF/maven/com.hedera.hashgraph/java-sdk/pom.xml deleted file mode 100644 index f46624b83..000000000 --- a/target/classes/META-INF/maven/com.hedera.hashgraph/java-sdk/pom.xml +++ /dev/null @@ -1,393 +0,0 @@ - - - 4.0.0 - - com.hedera.hashgraph - java-sdk - 0.2.0 - jar - - hedera-sdk-java - Java SDK for interacting with the Hedera API - http://www.hedera.com - - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - Hedera Hashgraph - http://www.hedera.com - - - - - scm:git:git://github.com/hashgraph/hedera-sdk-java.git - scm:git:ssh://github.com:hashgraph/hedera-sdk-java.git - http://github.com/hashgraph/hedera-sdk-java - - - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - - - UTF-8 - 1.14.0 - 3.6.1 - - - - artifactory-central - Swirlds Artifactory-releases - https://art.swirlds.com/artifactory/swirlds - - true - - - - - ${basedir}/src/main/java - - - src - - **/*.java - - - - ${basedir}/src/main/resources - ${project.build.directory} - - logback.xml - - - - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.5 - - - true - - - - sign-artifacts - verify - - sign - - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 - true - - ossrh - https://oss.sonatype.org/ - false - - - - org.apache.maven.plugins - maven-source-plugin - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-shade-plugin - 3.2.0 - - - - *:* - - META-INF/*.SF - META-INF/*.DSA - META-INF/*.RSA - - - - - - junit:junit - *:xml-apis - org.apache.maven:lib:tests - - - - - - package - - shade - - - true - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.0 - - 10 - - - - org.apache.maven.plugins - maven-javadoc-plugin - - com.hedera.sdk.api.proto.* - com.hedera.sdk.muquit.* - test.com.hedera.* - net.i2p.* - org.json.* - -html5 - - - - attach-javadocs - - jar - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.19.1 - - - org.junit.platform - junit-platform-surefire-provider - 1.1.0 - - - org.junit.jupiter - junit-jupiter-engine - 5.2.0 - - - - - maven-deploy-plugin - 2.7 - - internal.repo::default::file://${project.build.directory}/mvn-repo - - - - default-deploy - deploy - - deploy - - - - - - - - - - org.apache.maven.plugins - maven-project-info-reports-plugin - 2.8 - - false - - - - - - - javax.xml.bind - jaxb-api - 2.3.0 - - - com.sun.xml.bind - jaxb-core - 2.3.0 - - - com.sun.xml.bind - jaxb-impl - 2.3.0 - - - javax.activation - activation - 1.1.1 - - - org.junit.jupiter - junit-jupiter-api - 5.2.0 - test - - - org.junit.jupiter - junit-jupiter-engine - 5.2.0 - test - - - org.junit.platform - junit-platform-suite-api - 1.1.0 - test - - - org.junit.platform - junit-platform-commons - 1.2.0 - test - - - org.junit.platform - junit-platform-engine - 1.2.0 - test - - - org.junit.platform - junit-platform-launcher - 1.1.0 - test - - - org.junit.platform - junit-platform-runner - 1.1.0 - test - - - net.java.dev.jna - jna - 4.2.2 - - - commons-codec - commons-codec - 1.10 - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.10.4 - maven-plugin - - - org.slf4j - slf4j-api - - - org.slf4j - slf4j-nop - - - org.slf4j - slf4j-jdk14 - - - org.slf4j - jcl-over-slf4j - - - - - com.google.api.grpc - proto-google-common-protos - 1.12.0 - - - com.google.protobuf - protobuf-java - 3.6.0 - - - io.grpc - grpc-all - 1.17.1 - - - org.junit.jupiter - junit-jupiter-params - 5.2.0 - test - - - net.i2p.crypto - eddsa - 0.3.0 - - - com.madgag.spongycastle - core - 1.58.0.0 - - - com.opencrowd - hapi-proto - 1.0-SNAPSHOT - - - ch.qos.logback - logback-classic - 1.2.3 - - - org.slf4j - slf4j-api - - - - - ch.qos.logback - logback-core - 1.2.3 - - - org.bouncycastle - bcpkix-jdk15on - 1.60 - - - org.slf4j - slf4j-api - 1.7.25 - - - diff --git a/target/classes/com/hedera/account/AccountAddClaim.class b/target/classes/com/hedera/account/AccountAddClaim.class deleted file mode 100644 index b164cee0e..000000000 Binary files a/target/classes/com/hedera/account/AccountAddClaim.class and /dev/null differ diff --git a/target/classes/com/hedera/account/AccountCreate.class b/target/classes/com/hedera/account/AccountCreate.class deleted file mode 100644 index 47a30de17..000000000 Binary files a/target/classes/com/hedera/account/AccountCreate.class and /dev/null differ diff --git a/target/classes/com/hedera/account/AccountGetBalance.class b/target/classes/com/hedera/account/AccountGetBalance.class deleted file mode 100644 index a110e27d2..000000000 Binary files a/target/classes/com/hedera/account/AccountGetBalance.class and /dev/null differ diff --git a/target/classes/com/hedera/account/AccountGetInfo.class b/target/classes/com/hedera/account/AccountGetInfo.class deleted file mode 100644 index 93889d2fd..000000000 Binary files a/target/classes/com/hedera/account/AccountGetInfo.class and /dev/null differ diff --git a/target/classes/com/hedera/account/AccountGetRecords.class b/target/classes/com/hedera/account/AccountGetRecords.class deleted file mode 100644 index 17d7cb296..000000000 Binary files a/target/classes/com/hedera/account/AccountGetRecords.class and /dev/null differ diff --git a/target/classes/com/hedera/account/AccountSend.class b/target/classes/com/hedera/account/AccountSend.class deleted file mode 100644 index 96f008a6c..000000000 Binary files a/target/classes/com/hedera/account/AccountSend.class and /dev/null differ diff --git a/target/classes/com/hedera/account/AccountUpdate.class b/target/classes/com/hedera/account/AccountUpdate.class deleted file mode 100644 index 3ef01a87e..000000000 Binary files a/target/classes/com/hedera/account/AccountUpdate.class and /dev/null differ diff --git a/target/classes/com/hedera/account/DemoAccount.class b/target/classes/com/hedera/account/DemoAccount.class deleted file mode 100644 index 3d5dc5eb7..000000000 Binary files a/target/classes/com/hedera/account/DemoAccount.class and /dev/null differ diff --git a/target/classes/com/hedera/account/DemoAccountAsync.class b/target/classes/com/hedera/account/DemoAccountAsync.class deleted file mode 100644 index 7b6a7f17a..000000000 Binary files a/target/classes/com/hedera/account/DemoAccountAsync.class and /dev/null differ diff --git a/target/classes/com/hedera/contracts/ContractCall.class b/target/classes/com/hedera/contracts/ContractCall.class deleted file mode 100644 index 4b92d8410..000000000 Binary files a/target/classes/com/hedera/contracts/ContractCall.class and /dev/null differ diff --git a/target/classes/com/hedera/contracts/ContractCreate.class b/target/classes/com/hedera/contracts/ContractCreate.class deleted file mode 100644 index 95a48cd3f..000000000 Binary files a/target/classes/com/hedera/contracts/ContractCreate.class and /dev/null differ diff --git a/target/classes/com/hedera/contracts/ContractGetBytecode.class b/target/classes/com/hedera/contracts/ContractGetBytecode.class deleted file mode 100644 index cea187380..000000000 Binary files a/target/classes/com/hedera/contracts/ContractGetBytecode.class and /dev/null differ diff --git a/target/classes/com/hedera/contracts/ContractGetInfo.class b/target/classes/com/hedera/contracts/ContractGetInfo.class deleted file mode 100644 index f4bc48480..000000000 Binary files a/target/classes/com/hedera/contracts/ContractGetInfo.class and /dev/null differ diff --git a/target/classes/com/hedera/contracts/ContractRunLocal.class b/target/classes/com/hedera/contracts/ContractRunLocal.class deleted file mode 100644 index 69824483a..000000000 Binary files a/target/classes/com/hedera/contracts/ContractRunLocal.class and /dev/null differ diff --git a/target/classes/com/hedera/contracts/ContractUpdate.class b/target/classes/com/hedera/contracts/ContractUpdate.class deleted file mode 100644 index c98661391..000000000 Binary files a/target/classes/com/hedera/contracts/ContractUpdate.class and /dev/null differ diff --git a/target/classes/com/hedera/contracts/DemoContract.class b/target/classes/com/hedera/contracts/DemoContract.class deleted file mode 100644 index 716662bef..000000000 Binary files a/target/classes/com/hedera/contracts/DemoContract.class and /dev/null differ diff --git a/target/classes/com/hedera/contracts/SoliditySupport.class b/target/classes/com/hedera/contracts/SoliditySupport.class deleted file mode 100644 index dc17bdae8..000000000 Binary files a/target/classes/com/hedera/contracts/SoliditySupport.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/accountWrappers/AccountAddClaim.class b/target/classes/com/hedera/examples/accountWrappers/AccountAddClaim.class deleted file mode 100644 index 8f6a4086a..000000000 Binary files a/target/classes/com/hedera/examples/accountWrappers/AccountAddClaim.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/accountWrappers/AccountCreate.class b/target/classes/com/hedera/examples/accountWrappers/AccountCreate.class deleted file mode 100644 index eaa1ff382..000000000 Binary files a/target/classes/com/hedera/examples/accountWrappers/AccountCreate.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/accountWrappers/AccountGetBalance.class b/target/classes/com/hedera/examples/accountWrappers/AccountGetBalance.class deleted file mode 100644 index 32537639f..000000000 Binary files a/target/classes/com/hedera/examples/accountWrappers/AccountGetBalance.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/accountWrappers/AccountGetInfo.class b/target/classes/com/hedera/examples/accountWrappers/AccountGetInfo.class deleted file mode 100644 index 3b3104f78..000000000 Binary files a/target/classes/com/hedera/examples/accountWrappers/AccountGetInfo.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/accountWrappers/AccountGetRecords.class b/target/classes/com/hedera/examples/accountWrappers/AccountGetRecords.class deleted file mode 100644 index 70a47cb9e..000000000 Binary files a/target/classes/com/hedera/examples/accountWrappers/AccountGetRecords.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/accountWrappers/AccountSend.class b/target/classes/com/hedera/examples/accountWrappers/AccountSend.class deleted file mode 100644 index e1c80fcf6..000000000 Binary files a/target/classes/com/hedera/examples/accountWrappers/AccountSend.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/accountWrappers/AccountUpdate.class b/target/classes/com/hedera/examples/accountWrappers/AccountUpdate.class deleted file mode 100644 index 297f828dc..000000000 Binary files a/target/classes/com/hedera/examples/accountWrappers/AccountUpdate.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/contractWrappers/ContractCall.class b/target/classes/com/hedera/examples/contractWrappers/ContractCall.class deleted file mode 100644 index 18dfafd69..000000000 Binary files a/target/classes/com/hedera/examples/contractWrappers/ContractCall.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/contractWrappers/ContractCreate.class b/target/classes/com/hedera/examples/contractWrappers/ContractCreate.class deleted file mode 100644 index 54f24c6e5..000000000 Binary files a/target/classes/com/hedera/examples/contractWrappers/ContractCreate.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/contractWrappers/ContractGetBytecode.class b/target/classes/com/hedera/examples/contractWrappers/ContractGetBytecode.class deleted file mode 100644 index e707ae363..000000000 Binary files a/target/classes/com/hedera/examples/contractWrappers/ContractGetBytecode.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/contractWrappers/ContractGetInfo.class b/target/classes/com/hedera/examples/contractWrappers/ContractGetInfo.class deleted file mode 100644 index 08f600106..000000000 Binary files a/target/classes/com/hedera/examples/contractWrappers/ContractGetInfo.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/contractWrappers/ContractRunLocal.class b/target/classes/com/hedera/examples/contractWrappers/ContractRunLocal.class deleted file mode 100644 index e48c95b5b..000000000 Binary files a/target/classes/com/hedera/examples/contractWrappers/ContractRunLocal.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/contractWrappers/ContractUpdate.class b/target/classes/com/hedera/examples/contractWrappers/ContractUpdate.class deleted file mode 100644 index 8c405b7e8..000000000 Binary files a/target/classes/com/hedera/examples/contractWrappers/ContractUpdate.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/contractWrappers/SoliditySupport.class b/target/classes/com/hedera/examples/contractWrappers/SoliditySupport.class deleted file mode 100644 index d8a58073b..000000000 Binary files a/target/classes/com/hedera/examples/contractWrappers/SoliditySupport.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/fileWrappers/FileAppend.class b/target/classes/com/hedera/examples/fileWrappers/FileAppend.class deleted file mode 100644 index e5ee2ac64..000000000 Binary files a/target/classes/com/hedera/examples/fileWrappers/FileAppend.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/fileWrappers/FileCreate.class b/target/classes/com/hedera/examples/fileWrappers/FileCreate.class deleted file mode 100644 index c1f38f917..000000000 Binary files a/target/classes/com/hedera/examples/fileWrappers/FileCreate.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/fileWrappers/FileDelete.class b/target/classes/com/hedera/examples/fileWrappers/FileDelete.class deleted file mode 100644 index 658071d6e..000000000 Binary files a/target/classes/com/hedera/examples/fileWrappers/FileDelete.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/fileWrappers/FileGetContents.class b/target/classes/com/hedera/examples/fileWrappers/FileGetContents.class deleted file mode 100644 index 2607f6fa5..000000000 Binary files a/target/classes/com/hedera/examples/fileWrappers/FileGetContents.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/fileWrappers/FileGetInfo.class b/target/classes/com/hedera/examples/fileWrappers/FileGetInfo.class deleted file mode 100644 index 390907f6e..000000000 Binary files a/target/classes/com/hedera/examples/fileWrappers/FileGetInfo.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/fileWrappers/FileUpdate.class b/target/classes/com/hedera/examples/fileWrappers/FileUpdate.class deleted file mode 100644 index ea97cb490..000000000 Binary files a/target/classes/com/hedera/examples/fileWrappers/FileUpdate.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/simple/DemoAccount.class b/target/classes/com/hedera/examples/simple/DemoAccount.class deleted file mode 100644 index 108455585..000000000 Binary files a/target/classes/com/hedera/examples/simple/DemoAccount.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/simple/DemoAccountAsync.class b/target/classes/com/hedera/examples/simple/DemoAccountAsync.class deleted file mode 100644 index 4fecec43d..000000000 Binary files a/target/classes/com/hedera/examples/simple/DemoAccountAsync.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/simple/DemoContract.class b/target/classes/com/hedera/examples/simple/DemoContract.class deleted file mode 100644 index a8b906f27..000000000 Binary files a/target/classes/com/hedera/examples/simple/DemoContract.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/simple/DemoFile.class b/target/classes/com/hedera/examples/simple/DemoFile.class deleted file mode 100644 index 9ef722304..000000000 Binary files a/target/classes/com/hedera/examples/simple/DemoFile.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/simple/package-info.class b/target/classes/com/hedera/examples/simple/package-info.class deleted file mode 100644 index 34c781693..000000000 Binary files a/target/classes/com/hedera/examples/simple/package-info.class and /dev/null differ diff --git a/target/classes/com/hedera/examples/utilities/ExampleUtilities.class b/target/classes/com/hedera/examples/utilities/ExampleUtilities.class deleted file mode 100644 index bddc10425..000000000 Binary files a/target/classes/com/hedera/examples/utilities/ExampleUtilities.class and /dev/null differ diff --git a/target/classes/com/hedera/file/DemoFile.class b/target/classes/com/hedera/file/DemoFile.class deleted file mode 100644 index b6055c0ed..000000000 Binary files a/target/classes/com/hedera/file/DemoFile.class and /dev/null differ diff --git a/target/classes/com/hedera/file/FileAppend.class b/target/classes/com/hedera/file/FileAppend.class deleted file mode 100644 index 7aa2b805d..000000000 Binary files a/target/classes/com/hedera/file/FileAppend.class and /dev/null differ diff --git a/target/classes/com/hedera/file/FileCreate.class b/target/classes/com/hedera/file/FileCreate.class deleted file mode 100644 index ff2f631c1..000000000 Binary files a/target/classes/com/hedera/file/FileCreate.class and /dev/null differ diff --git a/target/classes/com/hedera/file/FileDelete.class b/target/classes/com/hedera/file/FileDelete.class deleted file mode 100644 index e4877ee68..000000000 Binary files a/target/classes/com/hedera/file/FileDelete.class and /dev/null differ diff --git a/target/classes/com/hedera/file/FileGetContents.class b/target/classes/com/hedera/file/FileGetContents.class deleted file mode 100644 index 10ca17bc7..000000000 Binary files a/target/classes/com/hedera/file/FileGetContents.class and /dev/null differ diff --git a/target/classes/com/hedera/file/FileGetInfo.class b/target/classes/com/hedera/file/FileGetInfo.class deleted file mode 100644 index 5f0a8ca36..000000000 Binary files a/target/classes/com/hedera/file/FileGetInfo.class and /dev/null differ diff --git a/target/classes/com/hedera/file/FileUpdate.class b/target/classes/com/hedera/file/FileUpdate.class deleted file mode 100644 index 138432026..000000000 Binary files a/target/classes/com/hedera/file/FileUpdate.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/account/HederaAccount.class b/target/classes/com/hedera/sdk/account/HederaAccount.class deleted file mode 100644 index 4155314d9..000000000 Binary files a/target/classes/com/hedera/sdk/account/HederaAccount.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/account/HederaAccountAmount.class b/target/classes/com/hedera/sdk/account/HederaAccountAmount.class deleted file mode 100644 index 4eaf8c66f..000000000 Binary files a/target/classes/com/hedera/sdk/account/HederaAccountAmount.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/account/HederaAccountCreateDefaults.class b/target/classes/com/hedera/sdk/account/HederaAccountCreateDefaults.class deleted file mode 100644 index 72782c546..000000000 Binary files a/target/classes/com/hedera/sdk/account/HederaAccountCreateDefaults.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/account/HederaAccountUpdateValues.class b/target/classes/com/hedera/sdk/account/HederaAccountUpdateValues.class deleted file mode 100644 index 2c78f7d74..000000000 Binary files a/target/classes/com/hedera/sdk/account/HederaAccountUpdateValues.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/account/HederaClaim.class b/target/classes/com/hedera/sdk/account/HederaClaim.class deleted file mode 100644 index 0ed22d2a5..000000000 Binary files a/target/classes/com/hedera/sdk/account/HederaClaim.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/account/HederaProxyStaker.class b/target/classes/com/hedera/sdk/account/HederaProxyStaker.class deleted file mode 100644 index af76a8904..000000000 Binary files a/target/classes/com/hedera/sdk/account/HederaProxyStaker.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/account/HederaProxyStakers.class b/target/classes/com/hedera/sdk/account/HederaProxyStakers.class deleted file mode 100644 index 1f3091385..000000000 Binary files a/target/classes/com/hedera/sdk/account/HederaProxyStakers.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/account/package-info.class b/target/classes/com/hedera/sdk/account/package-info.class deleted file mode 100644 index e5e18a560..000000000 Binary files a/target/classes/com/hedera/sdk/account/package-info.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaAccountID.class b/target/classes/com/hedera/sdk/common/HederaAccountID.class deleted file mode 100644 index 5f45822d2..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaAccountID.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaContractID.class b/target/classes/com/hedera/sdk/common/HederaContractID.class deleted file mode 100644 index be207bad1..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaContractID.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaDuration.class b/target/classes/com/hedera/sdk/common/HederaDuration.class deleted file mode 100644 index 56b197182..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaDuration.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaEntityID.class b/target/classes/com/hedera/sdk/common/HederaEntityID.class deleted file mode 100644 index cf9d3f513..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaEntityID.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaFeeComponents.class b/target/classes/com/hedera/sdk/common/HederaFeeComponents.class deleted file mode 100644 index b1e64ca2c..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaFeeComponents.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaFeeData.class b/target/classes/com/hedera/sdk/common/HederaFeeData.class deleted file mode 100644 index bed19ccfc..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaFeeData.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaFeeSchedule.class b/target/classes/com/hedera/sdk/common/HederaFeeSchedule.class deleted file mode 100644 index e6da9144d..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaFeeSchedule.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaFileID.class b/target/classes/com/hedera/sdk/common/HederaFileID.class deleted file mode 100644 index 290cc4140..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaFileID.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaKey$KeyType.class b/target/classes/com/hedera/sdk/common/HederaKey$KeyType.class deleted file mode 100644 index 05066ef29..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaKey$KeyType.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaKey.class b/target/classes/com/hedera/sdk/common/HederaKey.class deleted file mode 100644 index 41e18df23..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaKey.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaKeyList.class b/target/classes/com/hedera/sdk/common/HederaKeyList.class deleted file mode 100644 index 3ad193b71..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaKeyList.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaKeySignature.class b/target/classes/com/hedera/sdk/common/HederaKeySignature.class deleted file mode 100644 index 8f55cfb8f..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaKeySignature.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaKeySignatureList.class b/target/classes/com/hedera/sdk/common/HederaKeySignatureList.class deleted file mode 100644 index 3d0cd5881..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaKeySignatureList.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaKeySignatureThreshold.class b/target/classes/com/hedera/sdk/common/HederaKeySignatureThreshold.class deleted file mode 100644 index f5782206b..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaKeySignatureThreshold.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaKeyThreshold.class b/target/classes/com/hedera/sdk/common/HederaKeyThreshold.class deleted file mode 100644 index 2e7e8652d..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaKeyThreshold.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaKeyUUIDDescription.class b/target/classes/com/hedera/sdk/common/HederaKeyUUIDDescription.class deleted file mode 100644 index b790c1968..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaKeyUUIDDescription.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaNodeAddress.class b/target/classes/com/hedera/sdk/common/HederaNodeAddress.class deleted file mode 100644 index 0a67f3886..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaNodeAddress.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaNodeAddressBook.class b/target/classes/com/hedera/sdk/common/HederaNodeAddressBook.class deleted file mode 100644 index e0cc31c64..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaNodeAddressBook.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaRealmID.class b/target/classes/com/hedera/sdk/common/HederaRealmID.class deleted file mode 100644 index e04d728c2..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaRealmID.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaShardID.class b/target/classes/com/hedera/sdk/common/HederaShardID.class deleted file mode 100644 index fff97d66e..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaShardID.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaSignature.class b/target/classes/com/hedera/sdk/common/HederaSignature.class deleted file mode 100644 index 384431918..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaSignature.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaSignatureList.class b/target/classes/com/hedera/sdk/common/HederaSignatureList.class deleted file mode 100644 index 6d119d017..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaSignatureList.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaSignatureThreshold.class b/target/classes/com/hedera/sdk/common/HederaSignatureThreshold.class deleted file mode 100644 index 2176ef689..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaSignatureThreshold.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaTimeStamp.class b/target/classes/com/hedera/sdk/common/HederaTimeStamp.class deleted file mode 100644 index 2e869a959..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaTimeStamp.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaTransactionAndQueryDefaults.class b/target/classes/com/hedera/sdk/common/HederaTransactionAndQueryDefaults.class deleted file mode 100644 index 786c8c8fb..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaTransactionAndQueryDefaults.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaTransactionFeeSchedule.class b/target/classes/com/hedera/sdk/common/HederaTransactionFeeSchedule.class deleted file mode 100644 index b234fee2c..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaTransactionFeeSchedule.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaTransactionID.class b/target/classes/com/hedera/sdk/common/HederaTransactionID.class deleted file mode 100644 index 66e030901..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaTransactionID.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaTransactionReceipt.class b/target/classes/com/hedera/sdk/common/HederaTransactionReceipt.class deleted file mode 100644 index edb432379..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaTransactionReceipt.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaTransactionRecord$BodyType.class b/target/classes/com/hedera/sdk/common/HederaTransactionRecord$BodyType.class deleted file mode 100644 index d3b775285..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaTransactionRecord$BodyType.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaTransactionRecord.class b/target/classes/com/hedera/sdk/common/HederaTransactionRecord.class deleted file mode 100644 index 0c4064c4d..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaTransactionRecord.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaTransactionState$TransactionState.class b/target/classes/com/hedera/sdk/common/HederaTransactionState$TransactionState.class deleted file mode 100644 index 8223e8c30..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaTransactionState$TransactionState.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/HederaTransactionState.class b/target/classes/com/hedera/sdk/common/HederaTransactionState.class deleted file mode 100644 index a5931ae9a..000000000 Binary files a/target/classes/com/hedera/sdk/common/HederaTransactionState.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/Utilities.class b/target/classes/com/hedera/sdk/common/Utilities.class deleted file mode 100644 index 460db33d3..000000000 Binary files a/target/classes/com/hedera/sdk/common/Utilities.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/common/package-info.class b/target/classes/com/hedera/sdk/common/package-info.class deleted file mode 100644 index 528240887..000000000 Binary files a/target/classes/com/hedera/sdk/common/package-info.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/contract/HederaContract.class b/target/classes/com/hedera/sdk/contract/HederaContract.class deleted file mode 100644 index bd6dc7063..000000000 Binary files a/target/classes/com/hedera/sdk/contract/HederaContract.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/contract/HederaContractFunctionResult.class b/target/classes/com/hedera/sdk/contract/HederaContractFunctionResult.class deleted file mode 100644 index b0099ec51..000000000 Binary files a/target/classes/com/hedera/sdk/contract/HederaContractFunctionResult.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/contract/HederaContractLogInfo.class b/target/classes/com/hedera/sdk/contract/HederaContractLogInfo.class deleted file mode 100644 index a217439cb..000000000 Binary files a/target/classes/com/hedera/sdk/contract/HederaContractLogInfo.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/contract/package-info.class b/target/classes/com/hedera/sdk/contract/package-info.class deleted file mode 100644 index b92d0a649..000000000 Binary files a/target/classes/com/hedera/sdk/contract/package-info.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/cryptography/AbstractKeyPair.class b/target/classes/com/hedera/sdk/cryptography/AbstractKeyPair.class deleted file mode 100644 index d386d6918..000000000 Binary files a/target/classes/com/hedera/sdk/cryptography/AbstractKeyPair.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/cryptography/CryptoUtils.class b/target/classes/com/hedera/sdk/cryptography/CryptoUtils.class deleted file mode 100644 index e55f683ff..000000000 Binary files a/target/classes/com/hedera/sdk/cryptography/CryptoUtils.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/cryptography/ECKeyPair$ECDSASignature.class b/target/classes/com/hedera/sdk/cryptography/ECKeyPair$ECDSASignature.class deleted file mode 100644 index 36b836463..000000000 Binary files a/target/classes/com/hedera/sdk/cryptography/ECKeyPair$ECDSASignature.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/cryptography/ECKeyPair.class b/target/classes/com/hedera/sdk/cryptography/ECKeyPair.class deleted file mode 100644 index 1ef7a4db8..000000000 Binary files a/target/classes/com/hedera/sdk/cryptography/ECKeyPair.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/cryptography/EDKeyPair.class b/target/classes/com/hedera/sdk/cryptography/EDKeyPair.class deleted file mode 100644 index 811471d23..000000000 Binary files a/target/classes/com/hedera/sdk/cryptography/EDKeyPair.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/cryptography/KeyPair.class b/target/classes/com/hedera/sdk/cryptography/KeyPair.class deleted file mode 100644 index 5232a024c..000000000 Binary files a/target/classes/com/hedera/sdk/cryptography/KeyPair.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/cryptography/Reference.class b/target/classes/com/hedera/sdk/cryptography/Reference.class deleted file mode 100644 index 38b647043..000000000 Binary files a/target/classes/com/hedera/sdk/cryptography/Reference.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/cryptography/Seed.class b/target/classes/com/hedera/sdk/cryptography/Seed.class deleted file mode 100644 index a3d5f09af..000000000 Binary files a/target/classes/com/hedera/sdk/cryptography/Seed.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/cryptography/WordList.class b/target/classes/com/hedera/sdk/cryptography/WordList.class deleted file mode 100644 index 6b7fe5cf9..000000000 Binary files a/target/classes/com/hedera/sdk/cryptography/WordList.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/cryptography/package-info.class b/target/classes/com/hedera/sdk/cryptography/package-info.class deleted file mode 100644 index b5798ec77..000000000 Binary files a/target/classes/com/hedera/sdk/cryptography/package-info.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/file/HederaFile.class b/target/classes/com/hedera/sdk/file/HederaFile.class deleted file mode 100644 index 151b7a680..000000000 Binary files a/target/classes/com/hedera/sdk/file/HederaFile.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/file/HederaFileCreateDefaults.class b/target/classes/com/hedera/sdk/file/HederaFileCreateDefaults.class deleted file mode 100644 index 8f3852510..000000000 Binary files a/target/classes/com/hedera/sdk/file/HederaFileCreateDefaults.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/file/package-info.class b/target/classes/com/hedera/sdk/file/package-info.class deleted file mode 100644 index a2d7542c0..000000000 Binary files a/target/classes/com/hedera/sdk/file/package-info.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/node/HederaNode.class b/target/classes/com/hedera/sdk/node/HederaNode.class deleted file mode 100644 index 7053ada98..000000000 Binary files a/target/classes/com/hedera/sdk/node/HederaNode.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/node/package-info.class b/target/classes/com/hedera/sdk/node/package-info.class deleted file mode 100644 index 69076f4af..000000000 Binary files a/target/classes/com/hedera/sdk/node/package-info.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/query/HederaQuery$QueryType.class b/target/classes/com/hedera/sdk/query/HederaQuery$QueryType.class deleted file mode 100644 index 5bb2a78e6..000000000 Binary files a/target/classes/com/hedera/sdk/query/HederaQuery$QueryType.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/query/HederaQuery.class b/target/classes/com/hedera/sdk/query/HederaQuery.class deleted file mode 100644 index eafe61c8e..000000000 Binary files a/target/classes/com/hedera/sdk/query/HederaQuery.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/query/HederaQueryBySolidityID.class b/target/classes/com/hedera/sdk/query/HederaQueryBySolidityID.class deleted file mode 100644 index 67bfee8cc..000000000 Binary files a/target/classes/com/hedera/sdk/query/HederaQueryBySolidityID.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/query/HederaQueryHeader$QueryResponseType.class b/target/classes/com/hedera/sdk/query/HederaQueryHeader$QueryResponseType.class deleted file mode 100644 index e1aeac1c0..000000000 Binary files a/target/classes/com/hedera/sdk/query/HederaQueryHeader$QueryResponseType.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/query/HederaQueryHeader.class b/target/classes/com/hedera/sdk/query/HederaQueryHeader.class deleted file mode 100644 index 91e463ed7..000000000 Binary files a/target/classes/com/hedera/sdk/query/HederaQueryHeader.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/query/package-info.class b/target/classes/com/hedera/sdk/query/package-info.class deleted file mode 100644 index 22ea7a69e..000000000 Binary files a/target/classes/com/hedera/sdk/query/package-info.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/transaction/HederaTransaction.class b/target/classes/com/hedera/sdk/transaction/HederaTransaction.class deleted file mode 100644 index b19569ea7..000000000 Binary files a/target/classes/com/hedera/sdk/transaction/HederaTransaction.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/transaction/HederaTransactionBody$TransactionType.class b/target/classes/com/hedera/sdk/transaction/HederaTransactionBody$TransactionType.class deleted file mode 100644 index 5db4e8189..000000000 Binary files a/target/classes/com/hedera/sdk/transaction/HederaTransactionBody$TransactionType.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/transaction/HederaTransactionBody.class b/target/classes/com/hedera/sdk/transaction/HederaTransactionBody.class deleted file mode 100644 index c1c004958..000000000 Binary files a/target/classes/com/hedera/sdk/transaction/HederaTransactionBody.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/transaction/HederaTransactionResult.class b/target/classes/com/hedera/sdk/transaction/HederaTransactionResult.class deleted file mode 100644 index b14e697b0..000000000 Binary files a/target/classes/com/hedera/sdk/transaction/HederaTransactionResult.class and /dev/null differ diff --git a/target/classes/com/hedera/sdk/transaction/package-info.class b/target/classes/com/hedera/sdk/transaction/package-info.class deleted file mode 100644 index 082070e6c..000000000 Binary files a/target/classes/com/hedera/sdk/transaction/package-info.class and /dev/null differ diff --git a/target/classes/com/hedera/utilities/ExampleUtilities.class b/target/classes/com/hedera/utilities/ExampleUtilities.class deleted file mode 100644 index d8f02e1d5..000000000 Binary files a/target/classes/com/hedera/utilities/ExampleUtilities.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AccountID$1.class b/target/classes/com/hederahashgraph/api/proto/java/AccountID$1.class deleted file mode 100644 index dd72a1809..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AccountID$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AccountID$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/AccountID$Builder.class deleted file mode 100644 index f0ab82c13..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AccountID$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AccountID.class b/target/classes/com/hederahashgraph/api/proto/java/AccountID.class deleted file mode 100644 index ad9cea0d8..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AccountID.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AccountIDOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/AccountIDOrBuilder.class deleted file mode 100644 index 61c3e997f..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AccountIDOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AdminDelete$1.class b/target/classes/com/hederahashgraph/api/proto/java/AdminDelete$1.class deleted file mode 100644 index 3b9cf98f3..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AdminDelete$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AdminDelete.class b/target/classes/com/hederahashgraph/api/proto/java/AdminDelete.class deleted file mode 100644 index 96082384d..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AdminDelete.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBody$1.class b/target/classes/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBody$1.class deleted file mode 100644 index 51d9a85a1..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBody$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBody$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBody$Builder.class deleted file mode 100644 index 4322f6c8e..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBody$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBody$IdCase.class b/target/classes/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBody$IdCase.class deleted file mode 100644 index cc38f0471..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBody$IdCase.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBody.class b/target/classes/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBody.class deleted file mode 100644 index 6932ad577..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBody.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBodyOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBodyOrBuilder.class deleted file mode 100644 index d369aff6a..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBodyOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AdminUndelete$1.class b/target/classes/com/hederahashgraph/api/proto/java/AdminUndelete$1.class deleted file mode 100644 index 7d6fd3ce3..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AdminUndelete$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AdminUndelete.class b/target/classes/com/hederahashgraph/api/proto/java/AdminUndelete.class deleted file mode 100644 index 28412449b..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AdminUndelete.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBody$1.class b/target/classes/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBody$1.class deleted file mode 100644 index 63c1dc544..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBody$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBody$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBody$Builder.class deleted file mode 100644 index cf31810f2..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBody$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBody$IdCase.class b/target/classes/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBody$IdCase.class deleted file mode 100644 index d8339a633..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBody$IdCase.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBody.class b/target/classes/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBody.class deleted file mode 100644 index 01b30beb3..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBody.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBodyOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBodyOrBuilder.class deleted file mode 100644 index 22d34085e..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBodyOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/BasicTypes$1.class b/target/classes/com/hederahashgraph/api/proto/java/BasicTypes$1.class deleted file mode 100644 index 6dcd895de..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/BasicTypes$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/BasicTypes.class b/target/classes/com/hederahashgraph/api/proto/java/BasicTypes.class deleted file mode 100644 index 69d12546c..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/BasicTypes.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/ContractID$1.class b/target/classes/com/hederahashgraph/api/proto/java/ContractID$1.class deleted file mode 100644 index bb32a0cfe..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/ContractID$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/ContractID$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/ContractID$Builder.class deleted file mode 100644 index eb8e814a5..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/ContractID$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/ContractID.class b/target/classes/com/hederahashgraph/api/proto/java/ContractID.class deleted file mode 100644 index 2a6d3572e..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/ContractID.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/ContractIDOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/ContractIDOrBuilder.class deleted file mode 100644 index d32fac47d..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/ContractIDOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/FeeComponents$1.class b/target/classes/com/hederahashgraph/api/proto/java/FeeComponents$1.class deleted file mode 100644 index c54ced553..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/FeeComponents$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/FeeComponents$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/FeeComponents$Builder.class deleted file mode 100644 index 94b388ddf..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/FeeComponents$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/FeeComponents.class b/target/classes/com/hederahashgraph/api/proto/java/FeeComponents.class deleted file mode 100644 index 2361296c7..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/FeeComponents.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/FeeComponentsOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/FeeComponentsOrBuilder.class deleted file mode 100644 index dfd19978d..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/FeeComponentsOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/FeeData$1.class b/target/classes/com/hederahashgraph/api/proto/java/FeeData$1.class deleted file mode 100644 index a010fa618..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/FeeData$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/FeeData$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/FeeData$Builder.class deleted file mode 100644 index e77dd54d7..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/FeeData$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/FeeData.class b/target/classes/com/hederahashgraph/api/proto/java/FeeData.class deleted file mode 100644 index 4a0e0f9a6..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/FeeData.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/FeeDataOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/FeeDataOrBuilder.class deleted file mode 100644 index d9c8d9e2d..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/FeeDataOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/FeeSchedule$1.class b/target/classes/com/hederahashgraph/api/proto/java/FeeSchedule$1.class deleted file mode 100644 index a61f34d01..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/FeeSchedule$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/FeeSchedule$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/FeeSchedule$Builder.class deleted file mode 100644 index 9ee4d69b3..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/FeeSchedule$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/FeeSchedule.class b/target/classes/com/hederahashgraph/api/proto/java/FeeSchedule.class deleted file mode 100644 index 58c8c7c21..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/FeeSchedule.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/FeeScheduleOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/FeeScheduleOrBuilder.class deleted file mode 100644 index 5ebaa625e..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/FeeScheduleOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/FileID$1.class b/target/classes/com/hederahashgraph/api/proto/java/FileID$1.class deleted file mode 100644 index 5598be71b..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/FileID$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/FileID$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/FileID$Builder.class deleted file mode 100644 index 5cb1f5a19..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/FileID$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/FileID.class b/target/classes/com/hederahashgraph/api/proto/java/FileID.class deleted file mode 100644 index 5a963d91e..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/FileID.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/FileIDOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/FileIDOrBuilder.class deleted file mode 100644 index c5d50ee5d..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/FileIDOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/HederaFunctionality$1.class b/target/classes/com/hederahashgraph/api/proto/java/HederaFunctionality$1.class deleted file mode 100644 index b5316b52b..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/HederaFunctionality$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/HederaFunctionality.class b/target/classes/com/hederahashgraph/api/proto/java/HederaFunctionality.class deleted file mode 100644 index e619cb6a9..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/HederaFunctionality.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/Key$1.class b/target/classes/com/hederahashgraph/api/proto/java/Key$1.class deleted file mode 100644 index 987c96164..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/Key$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/Key$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/Key$Builder.class deleted file mode 100644 index 0754b58ab..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/Key$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/Key$KeyCase.class b/target/classes/com/hederahashgraph/api/proto/java/Key$KeyCase.class deleted file mode 100644 index 5ad46e3bc..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/Key$KeyCase.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/Key.class b/target/classes/com/hederahashgraph/api/proto/java/Key.class deleted file mode 100644 index c7e9fcd43..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/Key.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/KeyList$1.class b/target/classes/com/hederahashgraph/api/proto/java/KeyList$1.class deleted file mode 100644 index c5fcac018..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/KeyList$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/KeyList$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/KeyList$Builder.class deleted file mode 100644 index a3331c21a..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/KeyList$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/KeyList.class b/target/classes/com/hederahashgraph/api/proto/java/KeyList.class deleted file mode 100644 index 5c5eee47e..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/KeyList.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/KeyListOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/KeyListOrBuilder.class deleted file mode 100644 index f61a54a57..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/KeyListOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/KeyOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/KeyOrBuilder.class deleted file mode 100644 index f03c3b532..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/KeyOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/NodeAddress$1.class b/target/classes/com/hederahashgraph/api/proto/java/NodeAddress$1.class deleted file mode 100644 index ad7ef25f3..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/NodeAddress$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/NodeAddress$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/NodeAddress$Builder.class deleted file mode 100644 index 5f8038179..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/NodeAddress$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/NodeAddress.class b/target/classes/com/hederahashgraph/api/proto/java/NodeAddress.class deleted file mode 100644 index 18c909d2b..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/NodeAddress.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/NodeAddressBook$1.class b/target/classes/com/hederahashgraph/api/proto/java/NodeAddressBook$1.class deleted file mode 100644 index 25a454757..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/NodeAddressBook$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/NodeAddressBook$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/NodeAddressBook$Builder.class deleted file mode 100644 index 1bd055e21..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/NodeAddressBook$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/NodeAddressBook.class b/target/classes/com/hederahashgraph/api/proto/java/NodeAddressBook.class deleted file mode 100644 index 7d32aeadb..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/NodeAddressBook.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/NodeAddressBookOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/NodeAddressBookOrBuilder.class deleted file mode 100644 index be7a69c0e..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/NodeAddressBookOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/NodeAddressOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/NodeAddressOrBuilder.class deleted file mode 100644 index acc328828..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/NodeAddressOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/RealmID$1.class b/target/classes/com/hederahashgraph/api/proto/java/RealmID$1.class deleted file mode 100644 index 4688c4cc5..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/RealmID$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/RealmID$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/RealmID$Builder.class deleted file mode 100644 index 15b460bb9..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/RealmID$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/RealmID.class b/target/classes/com/hederahashgraph/api/proto/java/RealmID.class deleted file mode 100644 index 145910e82..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/RealmID.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/RealmIDOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/RealmIDOrBuilder.class deleted file mode 100644 index 76aa9e62f..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/RealmIDOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/ShardID$1.class b/target/classes/com/hederahashgraph/api/proto/java/ShardID$1.class deleted file mode 100644 index bbd71f79a..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/ShardID$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/ShardID$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/ShardID$Builder.class deleted file mode 100644 index 00aced7b7..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/ShardID$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/ShardID.class b/target/classes/com/hederahashgraph/api/proto/java/ShardID.class deleted file mode 100644 index 1a661c8d6..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/ShardID.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/ShardIDOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/ShardIDOrBuilder.class deleted file mode 100644 index 201febe74..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/ShardIDOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/Signature$1.class b/target/classes/com/hederahashgraph/api/proto/java/Signature$1.class deleted file mode 100644 index bed2a6c1f..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/Signature$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/Signature$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/Signature$Builder.class deleted file mode 100644 index 376511184..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/Signature$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/Signature$SignatureCase.class b/target/classes/com/hederahashgraph/api/proto/java/Signature$SignatureCase.class deleted file mode 100644 index 476a023cd..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/Signature$SignatureCase.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/Signature.class b/target/classes/com/hederahashgraph/api/proto/java/Signature.class deleted file mode 100644 index 5839c4376..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/Signature.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/SignatureList$1.class b/target/classes/com/hederahashgraph/api/proto/java/SignatureList$1.class deleted file mode 100644 index c554c0bf7..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/SignatureList$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/SignatureList$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/SignatureList$Builder.class deleted file mode 100644 index 21b41e1bd..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/SignatureList$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/SignatureList.class b/target/classes/com/hederahashgraph/api/proto/java/SignatureList.class deleted file mode 100644 index 551f36a86..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/SignatureList.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/SignatureListOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/SignatureListOrBuilder.class deleted file mode 100644 index 4aeee0cd9..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/SignatureListOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/SignatureOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/SignatureOrBuilder.class deleted file mode 100644 index 6b2558026..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/SignatureOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/ThresholdKey$1.class b/target/classes/com/hederahashgraph/api/proto/java/ThresholdKey$1.class deleted file mode 100644 index 59666e687..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/ThresholdKey$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/ThresholdKey$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/ThresholdKey$Builder.class deleted file mode 100644 index 9e9837d1c..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/ThresholdKey$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/ThresholdKey.class b/target/classes/com/hederahashgraph/api/proto/java/ThresholdKey.class deleted file mode 100644 index be5ece6ab..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/ThresholdKey.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/ThresholdKeyOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/ThresholdKeyOrBuilder.class deleted file mode 100644 index 2e5ea8876..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/ThresholdKeyOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/ThresholdSignature$1.class b/target/classes/com/hederahashgraph/api/proto/java/ThresholdSignature$1.class deleted file mode 100644 index 577dd08d4..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/ThresholdSignature$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/ThresholdSignature$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/ThresholdSignature$Builder.class deleted file mode 100644 index 6fb8e1f58..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/ThresholdSignature$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/ThresholdSignature.class b/target/classes/com/hederahashgraph/api/proto/java/ThresholdSignature.class deleted file mode 100644 index 760c7131b..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/ThresholdSignature.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/ThresholdSignatureOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/ThresholdSignatureOrBuilder.class deleted file mode 100644 index 44c34411f..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/ThresholdSignatureOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/TransactionFeeSchedule$1.class b/target/classes/com/hederahashgraph/api/proto/java/TransactionFeeSchedule$1.class deleted file mode 100644 index e2a32e71e..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/TransactionFeeSchedule$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/TransactionFeeSchedule$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/TransactionFeeSchedule$Builder.class deleted file mode 100644 index 60ae63dd9..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/TransactionFeeSchedule$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/TransactionFeeSchedule.class b/target/classes/com/hederahashgraph/api/proto/java/TransactionFeeSchedule.class deleted file mode 100644 index 247a53361..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/TransactionFeeSchedule.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/TransactionFeeScheduleOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/TransactionFeeScheduleOrBuilder.class deleted file mode 100644 index b7e11c965..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/TransactionFeeScheduleOrBuilder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/TransactionID$1.class b/target/classes/com/hederahashgraph/api/proto/java/TransactionID$1.class deleted file mode 100644 index a9b42a051..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/TransactionID$1.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/TransactionID$Builder.class b/target/classes/com/hederahashgraph/api/proto/java/TransactionID$Builder.class deleted file mode 100644 index dadda1fdb..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/TransactionID$Builder.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/TransactionID.class b/target/classes/com/hederahashgraph/api/proto/java/TransactionID.class deleted file mode 100644 index 397d79b55..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/TransactionID.class and /dev/null differ diff --git a/target/classes/com/hederahashgraph/api/proto/java/TransactionIDOrBuilder.class b/target/classes/com/hederahashgraph/api/proto/java/TransactionIDOrBuilder.class deleted file mode 100644 index 4e50a7f00..000000000 Binary files a/target/classes/com/hederahashgraph/api/proto/java/TransactionIDOrBuilder.class and /dev/null differ diff --git a/target/classes/main/resources/logback.xml b/target/classes/main/resources/logback.xml deleted file mode 100644 index 76c76d778..000000000 --- a/target/classes/main/resources/logback.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n - - - - - - - \ No newline at end of file diff --git a/target/classes/org/json/simple/ItemList.class b/target/classes/org/json/simple/ItemList.class deleted file mode 100644 index a56cb985c..000000000 Binary files a/target/classes/org/json/simple/ItemList.class and /dev/null differ diff --git a/target/classes/org/json/simple/JSONArray.class b/target/classes/org/json/simple/JSONArray.class deleted file mode 100644 index 3388800d2..000000000 Binary files a/target/classes/org/json/simple/JSONArray.class and /dev/null differ diff --git a/target/classes/org/json/simple/JSONAware.class b/target/classes/org/json/simple/JSONAware.class deleted file mode 100644 index 9637b7a98..000000000 Binary files a/target/classes/org/json/simple/JSONAware.class and /dev/null differ diff --git a/target/classes/org/json/simple/JSONObject.class b/target/classes/org/json/simple/JSONObject.class deleted file mode 100644 index 8cbf7f42e..000000000 Binary files a/target/classes/org/json/simple/JSONObject.class and /dev/null differ diff --git a/target/classes/org/json/simple/JSONStreamAware.class b/target/classes/org/json/simple/JSONStreamAware.class deleted file mode 100644 index 2091bbefc..000000000 Binary files a/target/classes/org/json/simple/JSONStreamAware.class and /dev/null differ diff --git a/target/classes/org/json/simple/JSONValue.class b/target/classes/org/json/simple/JSONValue.class deleted file mode 100644 index 1903ce1ce..000000000 Binary files a/target/classes/org/json/simple/JSONValue.class and /dev/null differ diff --git a/target/classes/org/json/simple/parser/ContainerFactory.class b/target/classes/org/json/simple/parser/ContainerFactory.class deleted file mode 100644 index 98802d8e2..000000000 Binary files a/target/classes/org/json/simple/parser/ContainerFactory.class and /dev/null differ diff --git a/target/classes/org/json/simple/parser/ContentHandler.class b/target/classes/org/json/simple/parser/ContentHandler.class deleted file mode 100644 index f518d17c3..000000000 Binary files a/target/classes/org/json/simple/parser/ContentHandler.class and /dev/null differ diff --git a/target/classes/org/json/simple/parser/JSONParser.class b/target/classes/org/json/simple/parser/JSONParser.class deleted file mode 100644 index ab39803cf..000000000 Binary files a/target/classes/org/json/simple/parser/JSONParser.class and /dev/null differ diff --git a/target/classes/org/json/simple/parser/ParseException.class b/target/classes/org/json/simple/parser/ParseException.class deleted file mode 100644 index 6c9a9272b..000000000 Binary files a/target/classes/org/json/simple/parser/ParseException.class and /dev/null differ diff --git a/target/classes/org/json/simple/parser/Yylex.class b/target/classes/org/json/simple/parser/Yylex.class deleted file mode 100644 index 51cea2a26..000000000 Binary files a/target/classes/org/json/simple/parser/Yylex.class and /dev/null differ diff --git a/target/classes/org/json/simple/parser/Yytoken.class b/target/classes/org/json/simple/parser/Yytoken.class deleted file mode 100644 index 11123c528..000000000 Binary files a/target/classes/org/json/simple/parser/Yytoken.class and /dev/null differ diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/AccountID.java b/target/generated-sources/com/hederahashgraph/api/proto/java/AccountID.java deleted file mode 100644 index b8d5bc310..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/AccountID.java +++ /dev/null @@ -1,647 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * The ID for an a cryptocurrency account  
- * 
- * - * Protobuf type {@code proto.AccountID} - */ -public final class AccountID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.AccountID) - AccountIDOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccountID.newBuilder() to construct. - private AccountID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccountID() { - shardNum_ = 0L; - realmNum_ = 0L; - accountNum_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AccountID( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder 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: { - - shardNum_ = input.readInt64(); - break; - } - case 16: { - - realmNum_ = input.readInt64(); - break; - } - case 24: { - - accountNum_ = input.readInt64(); - 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 com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_AccountID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_AccountID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.AccountID.class, com.hederahashgraph.api.proto.java.AccountID.Builder.class); - } - - public static final int SHARDNUM_FIELD_NUMBER = 1; - private long shardNum_; - /** - *
-   *the shard number (nonnegative)
-   * 
- * - * int64 shardNum = 1; - */ - public long getShardNum() { - return shardNum_; - } - - public static final int REALMNUM_FIELD_NUMBER = 2; - private long realmNum_; - /** - *
-   *the realm number (nonnegative)
-   * 
- * - * int64 realmNum = 2; - */ - public long getRealmNum() { - return realmNum_; - } - - public static final int ACCOUNTNUM_FIELD_NUMBER = 3; - private long accountNum_; - /** - *
-   *a nonnegative number unique within its realm
-   * 
- * - * int64 accountNum = 3; - */ - public long getAccountNum() { - return accountNum_; - } - - 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 (shardNum_ != 0L) { - output.writeInt64(1, shardNum_); - } - if (realmNum_ != 0L) { - output.writeInt64(2, realmNum_); - } - if (accountNum_ != 0L) { - output.writeInt64(3, accountNum_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (shardNum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, shardNum_); - } - if (realmNum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, realmNum_); - } - if (accountNum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, accountNum_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.hederahashgraph.api.proto.java.AccountID)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.AccountID other = (com.hederahashgraph.api.proto.java.AccountID) obj; - - boolean result = true; - result = result && (getShardNum() - == other.getShardNum()); - result = result && (getRealmNum() - == other.getRealmNum()); - result = result && (getAccountNum() - == other.getAccountNum()); - 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) + SHARDNUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getShardNum()); - hash = (37 * hash) + REALMNUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRealmNum()); - hash = (37 * hash) + ACCOUNTNUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAccountNum()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.AccountID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.AccountID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.AccountID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.AccountID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.AccountID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.AccountID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.AccountID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.AccountID parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.AccountID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.AccountID parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.AccountID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.AccountID parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.AccountID prototype) { - return 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; - } - /** - *
-   * The ID for an a cryptocurrency account  
-   * 
- * - * Protobuf type {@code proto.AccountID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.AccountID) - com.hederahashgraph.api.proto.java.AccountIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_AccountID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_AccountID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.AccountID.class, com.hederahashgraph.api.proto.java.AccountID.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.AccountID.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - shardNum_ = 0L; - - realmNum_ = 0L; - - accountNum_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_AccountID_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.AccountID getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.AccountID build() { - com.hederahashgraph.api.proto.java.AccountID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.AccountID buildPartial() { - com.hederahashgraph.api.proto.java.AccountID result = new com.hederahashgraph.api.proto.java.AccountID(this); - result.shardNum_ = shardNum_; - result.realmNum_ = realmNum_; - result.accountNum_ = accountNum_; - 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 com.hederahashgraph.api.proto.java.AccountID) { - return mergeFrom((com.hederahashgraph.api.proto.java.AccountID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.AccountID other) { - if (other == com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance()) return this; - if (other.getShardNum() != 0L) { - setShardNum(other.getShardNum()); - } - if (other.getRealmNum() != 0L) { - setRealmNum(other.getRealmNum()); - } - if (other.getAccountNum() != 0L) { - setAccountNum(other.getAccountNum()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.hederahashgraph.api.proto.java.AccountID parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.AccountID) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long shardNum_ ; - /** - *
-     *the shard number (nonnegative)
-     * 
- * - * int64 shardNum = 1; - */ - public long getShardNum() { - return shardNum_; - } - /** - *
-     *the shard number (nonnegative)
-     * 
- * - * int64 shardNum = 1; - */ - public Builder setShardNum(long value) { - - shardNum_ = value; - onChanged(); - return this; - } - /** - *
-     *the shard number (nonnegative)
-     * 
- * - * int64 shardNum = 1; - */ - public Builder clearShardNum() { - - shardNum_ = 0L; - onChanged(); - return this; - } - - private long realmNum_ ; - /** - *
-     *the realm number (nonnegative)
-     * 
- * - * int64 realmNum = 2; - */ - public long getRealmNum() { - return realmNum_; - } - /** - *
-     *the realm number (nonnegative)
-     * 
- * - * int64 realmNum = 2; - */ - public Builder setRealmNum(long value) { - - realmNum_ = value; - onChanged(); - return this; - } - /** - *
-     *the realm number (nonnegative)
-     * 
- * - * int64 realmNum = 2; - */ - public Builder clearRealmNum() { - - realmNum_ = 0L; - onChanged(); - return this; - } - - private long accountNum_ ; - /** - *
-     *a nonnegative number unique within its realm
-     * 
- * - * int64 accountNum = 3; - */ - public long getAccountNum() { - return accountNum_; - } - /** - *
-     *a nonnegative number unique within its realm
-     * 
- * - * int64 accountNum = 3; - */ - public Builder setAccountNum(long value) { - - accountNum_ = value; - onChanged(); - return this; - } - /** - *
-     *a nonnegative number unique within its realm
-     * 
- * - * int64 accountNum = 3; - */ - public Builder clearAccountNum() { - - accountNum_ = 0L; - 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:proto.AccountID) - } - - // @@protoc_insertion_point(class_scope:proto.AccountID) - private static final com.hederahashgraph.api.proto.java.AccountID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.AccountID(); - } - - public static com.hederahashgraph.api.proto.java.AccountID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccountID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccountID(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.hederahashgraph.api.proto.java.AccountID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/AccountIDOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/AccountIDOrBuilder.java deleted file mode 100644 index 82e20ff45..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/AccountIDOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface AccountIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.AccountID) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   *the shard number (nonnegative)
-   * 
- * - * int64 shardNum = 1; - */ - long getShardNum(); - - /** - *
-   *the realm number (nonnegative)
-   * 
- * - * int64 realmNum = 2; - */ - long getRealmNum(); - - /** - *
-   *a nonnegative number unique within its realm
-   * 
- * - * int64 accountNum = 3; - */ - long getAccountNum(); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/AdminDelete.java b/target/generated-sources/com/hederahashgraph/api/proto/java/AdminDelete.java deleted file mode 100644 index c3d275954..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/AdminDelete.java +++ /dev/null @@ -1,64 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AdminDelete.proto - -package com.hederahashgraph.api.proto.java; - -public final class AdminDelete { - private AdminDelete() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_AdminDeleteTransactionBody_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_AdminDeleteTransactionBody_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\021AdminDelete.proto\022\005proto\032\020BasicTypes.p" + - "roto\032\017Timestamp.proto\"\235\001\n\032AdminDeleteTra" + - "nsactionBody\022\037\n\006fileID\030\001 \001(\0132\r.proto.Fil" + - "eIDH\000\022\'\n\ncontractID\030\002 \001(\0132\021.proto.Contra" + - "ctIDH\000\022/\n\016expirationTime\030\003 \001(\0132\027.proto.T" + - "imestampSecondsB\004\n\002idB&\n\"com.hederahashg" + - "raph.api.proto.javaP\001b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.hederahashgraph.api.proto.java.BasicTypes.getDescriptor(), - com.hederahashgraph.api.proto.java.TimestampOuterClass.getDescriptor(), - }, assigner); - internal_static_proto_AdminDeleteTransactionBody_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_proto_AdminDeleteTransactionBody_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_AdminDeleteTransactionBody_descriptor, - new java.lang.String[] { "FileID", "ContractID", "ExpirationTime", "Id", }); - com.hederahashgraph.api.proto.java.BasicTypes.getDescriptor(); - com.hederahashgraph.api.proto.java.TimestampOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBody.java b/target/generated-sources/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBody.java deleted file mode 100644 index f8a64cce0..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBody.java +++ /dev/null @@ -1,1223 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AdminDelete.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * Delete a file or smart contract - can only be done with a Hedera admin multisig. When it is deleted, it immediately disappears from the system as seen by the user, but is still stored internally until the expiration time, at which time it is truly and permanently deleted. Until that time, it can be undeleted by the Hedera admin multisig. When a smart contract is deleted, the cryptocurrency account within it continues to exist, and is not affected by the expiration time here. 
- * 
- * - * Protobuf type {@code proto.AdminDeleteTransactionBody} - */ -public final class AdminDeleteTransactionBody extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.AdminDeleteTransactionBody) - AdminDeleteTransactionBodyOrBuilder { -private static final long serialVersionUID = 0L; - // Use AdminDeleteTransactionBody.newBuilder() to construct. - private AdminDeleteTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AdminDeleteTransactionBody() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AdminDeleteTransactionBody( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.hederahashgraph.api.proto.java.FileID.Builder subBuilder = null; - if (idCase_ == 1) { - subBuilder = ((com.hederahashgraph.api.proto.java.FileID) id_).toBuilder(); - } - id_ = - input.readMessage(com.hederahashgraph.api.proto.java.FileID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.FileID) id_); - id_ = subBuilder.buildPartial(); - } - idCase_ = 1; - break; - } - case 18: { - com.hederahashgraph.api.proto.java.ContractID.Builder subBuilder = null; - if (idCase_ == 2) { - subBuilder = ((com.hederahashgraph.api.proto.java.ContractID) id_).toBuilder(); - } - id_ = - input.readMessage(com.hederahashgraph.api.proto.java.ContractID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.ContractID) id_); - id_ = subBuilder.buildPartial(); - } - idCase_ = 2; - break; - } - case 26: { - com.hederahashgraph.api.proto.java.TimestampSeconds.Builder subBuilder = null; - if (expirationTime_ != null) { - subBuilder = expirationTime_.toBuilder(); - } - expirationTime_ = input.readMessage(com.hederahashgraph.api.proto.java.TimestampSeconds.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expirationTime_); - expirationTime_ = subBuilder.buildPartial(); - } - - 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 com.hederahashgraph.api.proto.java.AdminDelete.internal_static_proto_AdminDeleteTransactionBody_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.AdminDelete.internal_static_proto_AdminDeleteTransactionBody_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody.class, com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody.Builder.class); - } - - private int idCase_ = 0; - private java.lang.Object id_; - public enum IdCase - implements com.google.protobuf.Internal.EnumLite { - FILEID(1), - CONTRACTID(2), - ID_NOT_SET(0); - private final int value; - private IdCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static IdCase valueOf(int value) { - return forNumber(value); - } - - public static IdCase forNumber(int value) { - switch (value) { - case 1: return FILEID; - case 2: return CONTRACTID; - case 0: return ID_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public IdCase - getIdCase() { - return IdCase.forNumber( - idCase_); - } - - public static final int FILEID_FIELD_NUMBER = 1; - /** - *
-   * the file to delete, in the format used in transactions
-   * 
- * - * .proto.FileID fileID = 1; - */ - public boolean hasFileID() { - return idCase_ == 1; - } - /** - *
-   * the file to delete, in the format used in transactions
-   * 
- * - * .proto.FileID fileID = 1; - */ - public com.hederahashgraph.api.proto.java.FileID getFileID() { - if (idCase_ == 1) { - return (com.hederahashgraph.api.proto.java.FileID) id_; - } - return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); - } - /** - *
-   * the file to delete, in the format used in transactions
-   * 
- * - * .proto.FileID fileID = 1; - */ - public com.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder() { - if (idCase_ == 1) { - return (com.hederahashgraph.api.proto.java.FileID) id_; - } - return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); - } - - public static final int CONTRACTID_FIELD_NUMBER = 2; - /** - *
-   * the contract instance to delete, in the format used in transactions
-   * 
- * - * .proto.ContractID contractID = 2; - */ - public boolean hasContractID() { - return idCase_ == 2; - } - /** - *
-   * the contract instance to delete, in the format used in transactions
-   * 
- * - * .proto.ContractID contractID = 2; - */ - public com.hederahashgraph.api.proto.java.ContractID getContractID() { - if (idCase_ == 2) { - return (com.hederahashgraph.api.proto.java.ContractID) id_; - } - return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } - /** - *
-   * the contract instance to delete, in the format used in transactions
-   * 
- * - * .proto.ContractID contractID = 2; - */ - public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() { - if (idCase_ == 2) { - return (com.hederahashgraph.api.proto.java.ContractID) id_; - } - return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } - - public static final int EXPIRATIONTIME_FIELD_NUMBER = 3; - private com.hederahashgraph.api.proto.java.TimestampSeconds expirationTime_; - /** - *
-   * the time at which the "deleted" file should truly be permanently deleted
-   * 
- * - * .proto.TimestampSeconds expirationTime = 3; - */ - public boolean hasExpirationTime() { - return expirationTime_ != null; - } - /** - *
-   * the time at which the "deleted" file should truly be permanently deleted
-   * 
- * - * .proto.TimestampSeconds expirationTime = 3; - */ - public com.hederahashgraph.api.proto.java.TimestampSeconds getExpirationTime() { - return expirationTime_ == null ? com.hederahashgraph.api.proto.java.TimestampSeconds.getDefaultInstance() : expirationTime_; - } - /** - *
-   * the time at which the "deleted" file should truly be permanently deleted
-   * 
- * - * .proto.TimestampSeconds expirationTime = 3; - */ - public com.hederahashgraph.api.proto.java.TimestampSecondsOrBuilder getExpirationTimeOrBuilder() { - return getExpirationTime(); - } - - 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 (idCase_ == 1) { - output.writeMessage(1, (com.hederahashgraph.api.proto.java.FileID) id_); - } - if (idCase_ == 2) { - output.writeMessage(2, (com.hederahashgraph.api.proto.java.ContractID) id_); - } - if (expirationTime_ != null) { - output.writeMessage(3, getExpirationTime()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (idCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.hederahashgraph.api.proto.java.FileID) id_); - } - if (idCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.hederahashgraph.api.proto.java.ContractID) id_); - } - if (expirationTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getExpirationTime()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody other = (com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody) obj; - - boolean result = true; - result = result && (hasExpirationTime() == other.hasExpirationTime()); - if (hasExpirationTime()) { - result = result && getExpirationTime() - .equals(other.getExpirationTime()); - } - result = result && getIdCase().equals( - other.getIdCase()); - if (!result) return false; - switch (idCase_) { - case 1: - result = result && getFileID() - .equals(other.getFileID()); - break; - case 2: - result = result && getContractID() - .equals(other.getContractID()); - break; - case 0: - default: - } - 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 (hasExpirationTime()) { - hash = (37 * hash) + EXPIRATIONTIME_FIELD_NUMBER; - hash = (53 * hash) + getExpirationTime().hashCode(); - } - switch (idCase_) { - case 1: - hash = (37 * hash) + FILEID_FIELD_NUMBER; - hash = (53 * hash) + getFileID().hashCode(); - break; - case 2: - hash = (37 * hash) + CONTRACTID_FIELD_NUMBER; - hash = (53 * hash) + getContractID().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody prototype) { - return 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; - } - /** - *
-   * Delete a file or smart contract - can only be done with a Hedera admin multisig. When it is deleted, it immediately disappears from the system as seen by the user, but is still stored internally until the expiration time, at which time it is truly and permanently deleted. Until that time, it can be undeleted by the Hedera admin multisig. When a smart contract is deleted, the cryptocurrency account within it continues to exist, and is not affected by the expiration time here. 
-   * 
- * - * Protobuf type {@code proto.AdminDeleteTransactionBody} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.AdminDeleteTransactionBody) - com.hederahashgraph.api.proto.java.AdminDeleteTransactionBodyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.AdminDelete.internal_static_proto_AdminDeleteTransactionBody_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.AdminDelete.internal_static_proto_AdminDeleteTransactionBody_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody.class, com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.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 (expirationTimeBuilder_ == null) { - expirationTime_ = null; - } else { - expirationTime_ = null; - expirationTimeBuilder_ = null; - } - idCase_ = 0; - id_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.AdminDelete.internal_static_proto_AdminDeleteTransactionBody_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody build() { - com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody buildPartial() { - com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody result = new com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody(this); - if (idCase_ == 1) { - if (fileIDBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = fileIDBuilder_.build(); - } - } - if (idCase_ == 2) { - if (contractIDBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = contractIDBuilder_.build(); - } - } - if (expirationTimeBuilder_ == null) { - result.expirationTime_ = expirationTime_; - } else { - result.expirationTime_ = expirationTimeBuilder_.build(); - } - result.idCase_ = idCase_; - 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 com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody) { - return mergeFrom((com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody other) { - if (other == com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody.getDefaultInstance()) return this; - if (other.hasExpirationTime()) { - mergeExpirationTime(other.getExpirationTime()); - } - switch (other.getIdCase()) { - case FILEID: { - mergeFileID(other.getFileID()); - break; - } - case CONTRACTID: { - mergeContractID(other.getContractID()); - break; - } - case ID_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 { - com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int idCase_ = 0; - private java.lang.Object id_; - public IdCase - getIdCase() { - return IdCase.forNumber( - idCase_); - } - - public Builder clearId() { - idCase_ = 0; - id_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder> fileIDBuilder_; - /** - *
-     * the file to delete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - public boolean hasFileID() { - return idCase_ == 1; - } - /** - *
-     * the file to delete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - public com.hederahashgraph.api.proto.java.FileID getFileID() { - if (fileIDBuilder_ == null) { - if (idCase_ == 1) { - return (com.hederahashgraph.api.proto.java.FileID) id_; - } - return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); - } else { - if (idCase_ == 1) { - return fileIDBuilder_.getMessage(); - } - return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); - } - } - /** - *
-     * the file to delete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - public Builder setFileID(com.hederahashgraph.api.proto.java.FileID value) { - if (fileIDBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - fileIDBuilder_.setMessage(value); - } - idCase_ = 1; - return this; - } - /** - *
-     * the file to delete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - public Builder setFileID( - com.hederahashgraph.api.proto.java.FileID.Builder builderForValue) { - if (fileIDBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - fileIDBuilder_.setMessage(builderForValue.build()); - } - idCase_ = 1; - return this; - } - /** - *
-     * the file to delete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - public Builder mergeFileID(com.hederahashgraph.api.proto.java.FileID value) { - if (fileIDBuilder_ == null) { - if (idCase_ == 1 && - id_ != com.hederahashgraph.api.proto.java.FileID.getDefaultInstance()) { - id_ = com.hederahashgraph.api.proto.java.FileID.newBuilder((com.hederahashgraph.api.proto.java.FileID) id_) - .mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - if (idCase_ == 1) { - fileIDBuilder_.mergeFrom(value); - } - fileIDBuilder_.setMessage(value); - } - idCase_ = 1; - return this; - } - /** - *
-     * the file to delete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - public Builder clearFileID() { - if (fileIDBuilder_ == null) { - if (idCase_ == 1) { - idCase_ = 0; - id_ = null; - onChanged(); - } - } else { - if (idCase_ == 1) { - idCase_ = 0; - id_ = null; - } - fileIDBuilder_.clear(); - } - return this; - } - /** - *
-     * the file to delete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - public com.hederahashgraph.api.proto.java.FileID.Builder getFileIDBuilder() { - return getFileIDFieldBuilder().getBuilder(); - } - /** - *
-     * the file to delete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - public com.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder() { - if ((idCase_ == 1) && (fileIDBuilder_ != null)) { - return fileIDBuilder_.getMessageOrBuilder(); - } else { - if (idCase_ == 1) { - return (com.hederahashgraph.api.proto.java.FileID) id_; - } - return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); - } - } - /** - *
-     * the file to delete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder> - getFileIDFieldBuilder() { - if (fileIDBuilder_ == null) { - if (!(idCase_ == 1)) { - id_ = com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); - } - fileIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder>( - (com.hederahashgraph.api.proto.java.FileID) id_, - getParentForChildren(), - isClean()); - id_ = null; - } - idCase_ = 1; - onChanged();; - return fileIDBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder> contractIDBuilder_; - /** - *
-     * the contract instance to delete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - public boolean hasContractID() { - return idCase_ == 2; - } - /** - *
-     * the contract instance to delete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - public com.hederahashgraph.api.proto.java.ContractID getContractID() { - if (contractIDBuilder_ == null) { - if (idCase_ == 2) { - return (com.hederahashgraph.api.proto.java.ContractID) id_; - } - return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } else { - if (idCase_ == 2) { - return contractIDBuilder_.getMessage(); - } - return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } - } - /** - *
-     * the contract instance to delete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - public Builder setContractID(com.hederahashgraph.api.proto.java.ContractID value) { - if (contractIDBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - contractIDBuilder_.setMessage(value); - } - idCase_ = 2; - return this; - } - /** - *
-     * the contract instance to delete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - public Builder setContractID( - com.hederahashgraph.api.proto.java.ContractID.Builder builderForValue) { - if (contractIDBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - contractIDBuilder_.setMessage(builderForValue.build()); - } - idCase_ = 2; - return this; - } - /** - *
-     * the contract instance to delete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - public Builder mergeContractID(com.hederahashgraph.api.proto.java.ContractID value) { - if (contractIDBuilder_ == null) { - if (idCase_ == 2 && - id_ != com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance()) { - id_ = com.hederahashgraph.api.proto.java.ContractID.newBuilder((com.hederahashgraph.api.proto.java.ContractID) id_) - .mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - if (idCase_ == 2) { - contractIDBuilder_.mergeFrom(value); - } - contractIDBuilder_.setMessage(value); - } - idCase_ = 2; - return this; - } - /** - *
-     * the contract instance to delete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - public Builder clearContractID() { - if (contractIDBuilder_ == null) { - if (idCase_ == 2) { - idCase_ = 0; - id_ = null; - onChanged(); - } - } else { - if (idCase_ == 2) { - idCase_ = 0; - id_ = null; - } - contractIDBuilder_.clear(); - } - return this; - } - /** - *
-     * the contract instance to delete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - public com.hederahashgraph.api.proto.java.ContractID.Builder getContractIDBuilder() { - return getContractIDFieldBuilder().getBuilder(); - } - /** - *
-     * the contract instance to delete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() { - if ((idCase_ == 2) && (contractIDBuilder_ != null)) { - return contractIDBuilder_.getMessageOrBuilder(); - } else { - if (idCase_ == 2) { - return (com.hederahashgraph.api.proto.java.ContractID) id_; - } - return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } - } - /** - *
-     * the contract instance to delete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder> - getContractIDFieldBuilder() { - if (contractIDBuilder_ == null) { - if (!(idCase_ == 2)) { - id_ = com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } - contractIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>( - (com.hederahashgraph.api.proto.java.ContractID) id_, - getParentForChildren(), - isClean()); - id_ = null; - } - idCase_ = 2; - onChanged();; - return contractIDBuilder_; - } - - private com.hederahashgraph.api.proto.java.TimestampSeconds expirationTime_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.TimestampSeconds, com.hederahashgraph.api.proto.java.TimestampSeconds.Builder, com.hederahashgraph.api.proto.java.TimestampSecondsOrBuilder> expirationTimeBuilder_; - /** - *
-     * the time at which the "deleted" file should truly be permanently deleted
-     * 
- * - * .proto.TimestampSeconds expirationTime = 3; - */ - public boolean hasExpirationTime() { - return expirationTimeBuilder_ != null || expirationTime_ != null; - } - /** - *
-     * the time at which the "deleted" file should truly be permanently deleted
-     * 
- * - * .proto.TimestampSeconds expirationTime = 3; - */ - public com.hederahashgraph.api.proto.java.TimestampSeconds getExpirationTime() { - if (expirationTimeBuilder_ == null) { - return expirationTime_ == null ? com.hederahashgraph.api.proto.java.TimestampSeconds.getDefaultInstance() : expirationTime_; - } else { - return expirationTimeBuilder_.getMessage(); - } - } - /** - *
-     * the time at which the "deleted" file should truly be permanently deleted
-     * 
- * - * .proto.TimestampSeconds expirationTime = 3; - */ - public Builder setExpirationTime(com.hederahashgraph.api.proto.java.TimestampSeconds value) { - if (expirationTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expirationTime_ = value; - onChanged(); - } else { - expirationTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * the time at which the "deleted" file should truly be permanently deleted
-     * 
- * - * .proto.TimestampSeconds expirationTime = 3; - */ - public Builder setExpirationTime( - com.hederahashgraph.api.proto.java.TimestampSeconds.Builder builderForValue) { - if (expirationTimeBuilder_ == null) { - expirationTime_ = builderForValue.build(); - onChanged(); - } else { - expirationTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * the time at which the "deleted" file should truly be permanently deleted
-     * 
- * - * .proto.TimestampSeconds expirationTime = 3; - */ - public Builder mergeExpirationTime(com.hederahashgraph.api.proto.java.TimestampSeconds value) { - if (expirationTimeBuilder_ == null) { - if (expirationTime_ != null) { - expirationTime_ = - com.hederahashgraph.api.proto.java.TimestampSeconds.newBuilder(expirationTime_).mergeFrom(value).buildPartial(); - } else { - expirationTime_ = value; - } - onChanged(); - } else { - expirationTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * the time at which the "deleted" file should truly be permanently deleted
-     * 
- * - * .proto.TimestampSeconds expirationTime = 3; - */ - public Builder clearExpirationTime() { - if (expirationTimeBuilder_ == null) { - expirationTime_ = null; - onChanged(); - } else { - expirationTime_ = null; - expirationTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * the time at which the "deleted" file should truly be permanently deleted
-     * 
- * - * .proto.TimestampSeconds expirationTime = 3; - */ - public com.hederahashgraph.api.proto.java.TimestampSeconds.Builder getExpirationTimeBuilder() { - - onChanged(); - return getExpirationTimeFieldBuilder().getBuilder(); - } - /** - *
-     * the time at which the "deleted" file should truly be permanently deleted
-     * 
- * - * .proto.TimestampSeconds expirationTime = 3; - */ - public com.hederahashgraph.api.proto.java.TimestampSecondsOrBuilder getExpirationTimeOrBuilder() { - if (expirationTimeBuilder_ != null) { - return expirationTimeBuilder_.getMessageOrBuilder(); - } else { - return expirationTime_ == null ? - com.hederahashgraph.api.proto.java.TimestampSeconds.getDefaultInstance() : expirationTime_; - } - } - /** - *
-     * the time at which the "deleted" file should truly be permanently deleted
-     * 
- * - * .proto.TimestampSeconds expirationTime = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.TimestampSeconds, com.hederahashgraph.api.proto.java.TimestampSeconds.Builder, com.hederahashgraph.api.proto.java.TimestampSecondsOrBuilder> - getExpirationTimeFieldBuilder() { - if (expirationTimeBuilder_ == null) { - expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.TimestampSeconds, com.hederahashgraph.api.proto.java.TimestampSeconds.Builder, com.hederahashgraph.api.proto.java.TimestampSecondsOrBuilder>( - getExpirationTime(), - getParentForChildren(), - isClean()); - expirationTime_ = null; - } - return expirationTimeBuilder_; - } - @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:proto.AdminDeleteTransactionBody) - } - - // @@protoc_insertion_point(class_scope:proto.AdminDeleteTransactionBody) - private static final com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody(); - } - - public static com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdminDeleteTransactionBody parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AdminDeleteTransactionBody(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.hederahashgraph.api.proto.java.AdminDeleteTransactionBody getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBodyOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBodyOrBuilder.java deleted file mode 100644 index 35ddea4d8..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBodyOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AdminDelete.proto - -package com.hederahashgraph.api.proto.java; - -public interface AdminDeleteTransactionBodyOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.AdminDeleteTransactionBody) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * the file to delete, in the format used in transactions
-   * 
- * - * .proto.FileID fileID = 1; - */ - boolean hasFileID(); - /** - *
-   * the file to delete, in the format used in transactions
-   * 
- * - * .proto.FileID fileID = 1; - */ - com.hederahashgraph.api.proto.java.FileID getFileID(); - /** - *
-   * the file to delete, in the format used in transactions
-   * 
- * - * .proto.FileID fileID = 1; - */ - com.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder(); - - /** - *
-   * the contract instance to delete, in the format used in transactions
-   * 
- * - * .proto.ContractID contractID = 2; - */ - boolean hasContractID(); - /** - *
-   * the contract instance to delete, in the format used in transactions
-   * 
- * - * .proto.ContractID contractID = 2; - */ - com.hederahashgraph.api.proto.java.ContractID getContractID(); - /** - *
-   * the contract instance to delete, in the format used in transactions
-   * 
- * - * .proto.ContractID contractID = 2; - */ - com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder(); - - /** - *
-   * the time at which the "deleted" file should truly be permanently deleted
-   * 
- * - * .proto.TimestampSeconds expirationTime = 3; - */ - boolean hasExpirationTime(); - /** - *
-   * the time at which the "deleted" file should truly be permanently deleted
-   * 
- * - * .proto.TimestampSeconds expirationTime = 3; - */ - com.hederahashgraph.api.proto.java.TimestampSeconds getExpirationTime(); - /** - *
-   * the time at which the "deleted" file should truly be permanently deleted
-   * 
- * - * .proto.TimestampSeconds expirationTime = 3; - */ - com.hederahashgraph.api.proto.java.TimestampSecondsOrBuilder getExpirationTimeOrBuilder(); - - public com.hederahashgraph.api.proto.java.AdminDeleteTransactionBody.IdCase getIdCase(); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/AdminUndelete.java b/target/generated-sources/com/hederahashgraph/api/proto/java/AdminUndelete.java deleted file mode 100644 index ab201fd18..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/AdminUndelete.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AdminUndelete.proto - -package com.hederahashgraph.api.proto.java; - -public final class AdminUndelete { - private AdminUndelete() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_AdminUndeleteTransactionBody_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_AdminUndeleteTransactionBody_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\023AdminUndelete.proto\022\005proto\032\020BasicTypes" + - ".proto\"n\n\034AdminUndeleteTransactionBody\022\037" + - "\n\006fileID\030\001 \001(\0132\r.proto.FileIDH\000\022\'\n\ncontr" + - "actID\030\002 \001(\0132\021.proto.ContractIDH\000B\004\n\002idB&" + - "\n\"com.hederahashgraph.api.proto.javaP\001b\006" + - "proto3" - }; - 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[] { - com.hederahashgraph.api.proto.java.BasicTypes.getDescriptor(), - }, assigner); - internal_static_proto_AdminUndeleteTransactionBody_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_proto_AdminUndeleteTransactionBody_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_AdminUndeleteTransactionBody_descriptor, - new java.lang.String[] { "FileID", "ContractID", "Id", }); - com.hederahashgraph.api.proto.java.BasicTypes.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBody.java b/target/generated-sources/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBody.java deleted file mode 100644 index d2d50e4b3..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBody.java +++ /dev/null @@ -1,994 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AdminUndelete.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * Undelete a file or smart contract that was deleted by AdminDelete - can only be done with a Hedera admin multisig. When it is deleted, it immediately disappears from the system as seen by the user, but is still stored internally until the expiration time, at which time it is truly and permanently deleted. Until that time, it can be undeleted by the Hedera admin multisig. When a smart contract is deleted, the cryptocurrency account within it continues to exist, and is not affected by the expiration time here. 
- * 
- * - * Protobuf type {@code proto.AdminUndeleteTransactionBody} - */ -public final class AdminUndeleteTransactionBody extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.AdminUndeleteTransactionBody) - AdminUndeleteTransactionBodyOrBuilder { -private static final long serialVersionUID = 0L; - // Use AdminUndeleteTransactionBody.newBuilder() to construct. - private AdminUndeleteTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AdminUndeleteTransactionBody() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AdminUndeleteTransactionBody( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.hederahashgraph.api.proto.java.FileID.Builder subBuilder = null; - if (idCase_ == 1) { - subBuilder = ((com.hederahashgraph.api.proto.java.FileID) id_).toBuilder(); - } - id_ = - input.readMessage(com.hederahashgraph.api.proto.java.FileID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.FileID) id_); - id_ = subBuilder.buildPartial(); - } - idCase_ = 1; - break; - } - case 18: { - com.hederahashgraph.api.proto.java.ContractID.Builder subBuilder = null; - if (idCase_ == 2) { - subBuilder = ((com.hederahashgraph.api.proto.java.ContractID) id_).toBuilder(); - } - id_ = - input.readMessage(com.hederahashgraph.api.proto.java.ContractID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.ContractID) id_); - id_ = subBuilder.buildPartial(); - } - idCase_ = 2; - 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 com.hederahashgraph.api.proto.java.AdminUndelete.internal_static_proto_AdminUndeleteTransactionBody_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.AdminUndelete.internal_static_proto_AdminUndeleteTransactionBody_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody.class, com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody.Builder.class); - } - - private int idCase_ = 0; - private java.lang.Object id_; - public enum IdCase - implements com.google.protobuf.Internal.EnumLite { - FILEID(1), - CONTRACTID(2), - ID_NOT_SET(0); - private final int value; - private IdCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static IdCase valueOf(int value) { - return forNumber(value); - } - - public static IdCase forNumber(int value) { - switch (value) { - case 1: return FILEID; - case 2: return CONTRACTID; - case 0: return ID_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public IdCase - getIdCase() { - return IdCase.forNumber( - idCase_); - } - - public static final int FILEID_FIELD_NUMBER = 1; - /** - *
-   * the file to undelete, in the format used in transactions
-   * 
- * - * .proto.FileID fileID = 1; - */ - public boolean hasFileID() { - return idCase_ == 1; - } - /** - *
-   * the file to undelete, in the format used in transactions
-   * 
- * - * .proto.FileID fileID = 1; - */ - public com.hederahashgraph.api.proto.java.FileID getFileID() { - if (idCase_ == 1) { - return (com.hederahashgraph.api.proto.java.FileID) id_; - } - return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); - } - /** - *
-   * the file to undelete, in the format used in transactions
-   * 
- * - * .proto.FileID fileID = 1; - */ - public com.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder() { - if (idCase_ == 1) { - return (com.hederahashgraph.api.proto.java.FileID) id_; - } - return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); - } - - public static final int CONTRACTID_FIELD_NUMBER = 2; - /** - *
-   * the contract instance to undelete, in the format used in transactions
-   * 
- * - * .proto.ContractID contractID = 2; - */ - public boolean hasContractID() { - return idCase_ == 2; - } - /** - *
-   * the contract instance to undelete, in the format used in transactions
-   * 
- * - * .proto.ContractID contractID = 2; - */ - public com.hederahashgraph.api.proto.java.ContractID getContractID() { - if (idCase_ == 2) { - return (com.hederahashgraph.api.proto.java.ContractID) id_; - } - return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } - /** - *
-   * the contract instance to undelete, in the format used in transactions
-   * 
- * - * .proto.ContractID contractID = 2; - */ - public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() { - if (idCase_ == 2) { - return (com.hederahashgraph.api.proto.java.ContractID) id_; - } - return com.hederahashgraph.api.proto.java.ContractID.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 (idCase_ == 1) { - output.writeMessage(1, (com.hederahashgraph.api.proto.java.FileID) id_); - } - if (idCase_ == 2) { - output.writeMessage(2, (com.hederahashgraph.api.proto.java.ContractID) id_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (idCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.hederahashgraph.api.proto.java.FileID) id_); - } - if (idCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.hederahashgraph.api.proto.java.ContractID) id_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody other = (com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody) obj; - - boolean result = true; - result = result && getIdCase().equals( - other.getIdCase()); - if (!result) return false; - switch (idCase_) { - case 1: - result = result && getFileID() - .equals(other.getFileID()); - break; - case 2: - result = result && getContractID() - .equals(other.getContractID()); - break; - case 0: - default: - } - 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(); - switch (idCase_) { - case 1: - hash = (37 * hash) + FILEID_FIELD_NUMBER; - hash = (53 * hash) + getFileID().hashCode(); - break; - case 2: - hash = (37 * hash) + CONTRACTID_FIELD_NUMBER; - hash = (53 * hash) + getContractID().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody prototype) { - return 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; - } - /** - *
-   * Undelete a file or smart contract that was deleted by AdminDelete - can only be done with a Hedera admin multisig. When it is deleted, it immediately disappears from the system as seen by the user, but is still stored internally until the expiration time, at which time it is truly and permanently deleted. Until that time, it can be undeleted by the Hedera admin multisig. When a smart contract is deleted, the cryptocurrency account within it continues to exist, and is not affected by the expiration time here. 
-   * 
- * - * Protobuf type {@code proto.AdminUndeleteTransactionBody} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.AdminUndeleteTransactionBody) - com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBodyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.AdminUndelete.internal_static_proto_AdminUndeleteTransactionBody_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.AdminUndelete.internal_static_proto_AdminUndeleteTransactionBody_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody.class, com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - idCase_ = 0; - id_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.AdminUndelete.internal_static_proto_AdminUndeleteTransactionBody_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody build() { - com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody buildPartial() { - com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody result = new com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody(this); - if (idCase_ == 1) { - if (fileIDBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = fileIDBuilder_.build(); - } - } - if (idCase_ == 2) { - if (contractIDBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = contractIDBuilder_.build(); - } - } - result.idCase_ = idCase_; - 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 com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody) { - return mergeFrom((com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody other) { - if (other == com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody.getDefaultInstance()) return this; - switch (other.getIdCase()) { - case FILEID: { - mergeFileID(other.getFileID()); - break; - } - case CONTRACTID: { - mergeContractID(other.getContractID()); - break; - } - case ID_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 { - com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int idCase_ = 0; - private java.lang.Object id_; - public IdCase - getIdCase() { - return IdCase.forNumber( - idCase_); - } - - public Builder clearId() { - idCase_ = 0; - id_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder> fileIDBuilder_; - /** - *
-     * the file to undelete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - public boolean hasFileID() { - return idCase_ == 1; - } - /** - *
-     * the file to undelete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - public com.hederahashgraph.api.proto.java.FileID getFileID() { - if (fileIDBuilder_ == null) { - if (idCase_ == 1) { - return (com.hederahashgraph.api.proto.java.FileID) id_; - } - return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); - } else { - if (idCase_ == 1) { - return fileIDBuilder_.getMessage(); - } - return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); - } - } - /** - *
-     * the file to undelete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - public Builder setFileID(com.hederahashgraph.api.proto.java.FileID value) { - if (fileIDBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - fileIDBuilder_.setMessage(value); - } - idCase_ = 1; - return this; - } - /** - *
-     * the file to undelete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - public Builder setFileID( - com.hederahashgraph.api.proto.java.FileID.Builder builderForValue) { - if (fileIDBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - fileIDBuilder_.setMessage(builderForValue.build()); - } - idCase_ = 1; - return this; - } - /** - *
-     * the file to undelete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - public Builder mergeFileID(com.hederahashgraph.api.proto.java.FileID value) { - if (fileIDBuilder_ == null) { - if (idCase_ == 1 && - id_ != com.hederahashgraph.api.proto.java.FileID.getDefaultInstance()) { - id_ = com.hederahashgraph.api.proto.java.FileID.newBuilder((com.hederahashgraph.api.proto.java.FileID) id_) - .mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - if (idCase_ == 1) { - fileIDBuilder_.mergeFrom(value); - } - fileIDBuilder_.setMessage(value); - } - idCase_ = 1; - return this; - } - /** - *
-     * the file to undelete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - public Builder clearFileID() { - if (fileIDBuilder_ == null) { - if (idCase_ == 1) { - idCase_ = 0; - id_ = null; - onChanged(); - } - } else { - if (idCase_ == 1) { - idCase_ = 0; - id_ = null; - } - fileIDBuilder_.clear(); - } - return this; - } - /** - *
-     * the file to undelete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - public com.hederahashgraph.api.proto.java.FileID.Builder getFileIDBuilder() { - return getFileIDFieldBuilder().getBuilder(); - } - /** - *
-     * the file to undelete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - public com.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder() { - if ((idCase_ == 1) && (fileIDBuilder_ != null)) { - return fileIDBuilder_.getMessageOrBuilder(); - } else { - if (idCase_ == 1) { - return (com.hederahashgraph.api.proto.java.FileID) id_; - } - return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); - } - } - /** - *
-     * the file to undelete, in the format used in transactions
-     * 
- * - * .proto.FileID fileID = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder> - getFileIDFieldBuilder() { - if (fileIDBuilder_ == null) { - if (!(idCase_ == 1)) { - id_ = com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); - } - fileIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder>( - (com.hederahashgraph.api.proto.java.FileID) id_, - getParentForChildren(), - isClean()); - id_ = null; - } - idCase_ = 1; - onChanged();; - return fileIDBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder> contractIDBuilder_; - /** - *
-     * the contract instance to undelete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - public boolean hasContractID() { - return idCase_ == 2; - } - /** - *
-     * the contract instance to undelete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - public com.hederahashgraph.api.proto.java.ContractID getContractID() { - if (contractIDBuilder_ == null) { - if (idCase_ == 2) { - return (com.hederahashgraph.api.proto.java.ContractID) id_; - } - return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } else { - if (idCase_ == 2) { - return contractIDBuilder_.getMessage(); - } - return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } - } - /** - *
-     * the contract instance to undelete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - public Builder setContractID(com.hederahashgraph.api.proto.java.ContractID value) { - if (contractIDBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - contractIDBuilder_.setMessage(value); - } - idCase_ = 2; - return this; - } - /** - *
-     * the contract instance to undelete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - public Builder setContractID( - com.hederahashgraph.api.proto.java.ContractID.Builder builderForValue) { - if (contractIDBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - contractIDBuilder_.setMessage(builderForValue.build()); - } - idCase_ = 2; - return this; - } - /** - *
-     * the contract instance to undelete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - public Builder mergeContractID(com.hederahashgraph.api.proto.java.ContractID value) { - if (contractIDBuilder_ == null) { - if (idCase_ == 2 && - id_ != com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance()) { - id_ = com.hederahashgraph.api.proto.java.ContractID.newBuilder((com.hederahashgraph.api.proto.java.ContractID) id_) - .mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - if (idCase_ == 2) { - contractIDBuilder_.mergeFrom(value); - } - contractIDBuilder_.setMessage(value); - } - idCase_ = 2; - return this; - } - /** - *
-     * the contract instance to undelete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - public Builder clearContractID() { - if (contractIDBuilder_ == null) { - if (idCase_ == 2) { - idCase_ = 0; - id_ = null; - onChanged(); - } - } else { - if (idCase_ == 2) { - idCase_ = 0; - id_ = null; - } - contractIDBuilder_.clear(); - } - return this; - } - /** - *
-     * the contract instance to undelete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - public com.hederahashgraph.api.proto.java.ContractID.Builder getContractIDBuilder() { - return getContractIDFieldBuilder().getBuilder(); - } - /** - *
-     * the contract instance to undelete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() { - if ((idCase_ == 2) && (contractIDBuilder_ != null)) { - return contractIDBuilder_.getMessageOrBuilder(); - } else { - if (idCase_ == 2) { - return (com.hederahashgraph.api.proto.java.ContractID) id_; - } - return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } - } - /** - *
-     * the contract instance to undelete, in the format used in transactions
-     * 
- * - * .proto.ContractID contractID = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder> - getContractIDFieldBuilder() { - if (contractIDBuilder_ == null) { - if (!(idCase_ == 2)) { - id_ = com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } - contractIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>( - (com.hederahashgraph.api.proto.java.ContractID) id_, - getParentForChildren(), - isClean()); - id_ = null; - } - idCase_ = 2; - onChanged();; - return contractIDBuilder_; - } - @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:proto.AdminUndeleteTransactionBody) - } - - // @@protoc_insertion_point(class_scope:proto.AdminUndeleteTransactionBody) - private static final com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody(); - } - - public static com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdminUndeleteTransactionBody parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AdminUndeleteTransactionBody(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.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBodyOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBodyOrBuilder.java deleted file mode 100644 index 41f245021..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBodyOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AdminUndelete.proto - -package com.hederahashgraph.api.proto.java; - -public interface AdminUndeleteTransactionBodyOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.AdminUndeleteTransactionBody) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * the file to undelete, in the format used in transactions
-   * 
- * - * .proto.FileID fileID = 1; - */ - boolean hasFileID(); - /** - *
-   * the file to undelete, in the format used in transactions
-   * 
- * - * .proto.FileID fileID = 1; - */ - com.hederahashgraph.api.proto.java.FileID getFileID(); - /** - *
-   * the file to undelete, in the format used in transactions
-   * 
- * - * .proto.FileID fileID = 1; - */ - com.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder(); - - /** - *
-   * the contract instance to undelete, in the format used in transactions
-   * 
- * - * .proto.ContractID contractID = 2; - */ - boolean hasContractID(); - /** - *
-   * the contract instance to undelete, in the format used in transactions
-   * 
- * - * .proto.ContractID contractID = 2; - */ - com.hederahashgraph.api.proto.java.ContractID getContractID(); - /** - *
-   * the contract instance to undelete, in the format used in transactions
-   * 
- * - * .proto.ContractID contractID = 2; - */ - com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder(); - - public com.hederahashgraph.api.proto.java.AdminUndeleteTransactionBody.IdCase getIdCase(); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/BasicTypes.java b/target/generated-sources/com/hederahashgraph/api/proto/java/BasicTypes.java deleted file mode 100644 index 9d58a0dba..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/BasicTypes.java +++ /dev/null @@ -1,304 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public final class BasicTypes { - private BasicTypes() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_ShardID_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_ShardID_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_RealmID_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_RealmID_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_AccountID_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_AccountID_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_FileID_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_FileID_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_ContractID_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_ContractID_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_TransactionID_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_TransactionID_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_Key_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_Key_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_ThresholdKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_ThresholdKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_KeyList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_KeyList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_Signature_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_Signature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_ThresholdSignature_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_ThresholdSignature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_SignatureList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_SignatureList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_FeeComponents_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_FeeComponents_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_TransactionFeeSchedule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_TransactionFeeSchedule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_FeeData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_FeeData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_FeeSchedule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_FeeSchedule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_NodeAddress_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_NodeAddress_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_NodeAddressBook_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_NodeAddressBook_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\020BasicTypes.proto\022\005proto\032\017Timestamp.pro" + - "to\032\016Duration.proto\"\033\n\007ShardID\022\020\n\010shardNu" + - "m\030\001 \001(\003\"-\n\007RealmID\022\020\n\010shardNum\030\001 \001(\003\022\020\n\010" + - "realmNum\030\002 \001(\003\"C\n\tAccountID\022\020\n\010shardNum\030" + - "\001 \001(\003\022\020\n\010realmNum\030\002 \001(\003\022\022\n\naccountNum\030\003 " + - "\001(\003\"=\n\006FileID\022\020\n\010shardNum\030\001 \001(\003\022\020\n\010realm" + - "Num\030\002 \001(\003\022\017\n\007fileNum\030\003 \001(\003\"E\n\nContractID" + - "\022\020\n\010shardNum\030\001 \001(\003\022\020\n\010realmNum\030\002 \001(\003\022\023\n\013" + - "contractNum\030\003 \001(\003\"e\n\rTransactionID\022#\n\tac" + - "countID\030\002 \001(\0132\020.proto.AccountID\022/\n\025trans" + - "actionValidStart\030\001 \001(\0132\020.proto.Timestamp" + - "\"\301\001\n\003Key\022\'\n\ncontractID\030\001 \001(\0132\021.proto.Con" + - "tractIDH\000\022\021\n\007ed25519\030\002 \001(\014H\000\022\022\n\010RSA_3072" + - "\030\003 \001(\014H\000\022\023\n\tECDSA_384\030\004 \001(\014H\000\022+\n\014thresho" + - "ldKey\030\005 \001(\0132\023.proto.ThresholdKeyH\000\022!\n\007ke" + - "yList\030\006 \001(\0132\016.proto.KeyListH\000B\005\n\003key\"?\n\014" + - "ThresholdKey\022\021\n\tthreshold\030\001 \001(\r\022\034\n\004keys\030" + - "\002 \001(\0132\016.proto.KeyList\"#\n\007KeyList\022\030\n\004keys" + - "\030\001 \003(\0132\n.proto.Key\"\320\001\n\tSignature\022\022\n\010cont" + - "ract\030\001 \001(\014H\000\022\021\n\007ed25519\030\002 \001(\014H\000\022\022\n\010RSA_3" + - "072\030\003 \001(\014H\000\022\023\n\tECDSA_384\030\004 \001(\014H\000\0227\n\022thre" + - "sholdSignature\030\005 \001(\0132\031.proto.ThresholdSi" + - "gnatureH\000\022-\n\rsignatureList\030\006 \001(\0132\024.proto" + - ".SignatureListH\000B\013\n\tsignature\"8\n\022Thresho" + - "ldSignature\022\"\n\004sigs\030\002 \001(\0132\024.proto.Signat" + - "ureList\"/\n\rSignatureList\022\036\n\004sigs\030\002 \003(\0132\020" + - ".proto.Signature\"\243\001\n\rFeeComponents\022\013\n\003mi" + - "n\030\001 \001(\003\022\013\n\003max\030\002 \001(\003\022\020\n\010constant\030\003 \001(\003\022\013" + - "\n\003bpt\030\004 \001(\003\022\013\n\003vpt\030\005 \001(\003\022\013\n\003rbs\030\006 \001(\003\022\013\n" + - "\003sbs\030\007 \001(\003\022\013\n\003gas\030\010 \001(\003\022\n\n\002tv\030\t \001(\003\022\013\n\003b" + - "pr\030\n \001(\003\022\014\n\004sbpr\030\013 \001(\003\"r\n\026TransactionFee" + - "Schedule\0227\n\023hederaFunctionality\030\001 \001(\0162\032." + - "proto.HederaFunctionality\022\037\n\007feeData\030\002 \001" + - "(\0132\016.proto.FeeData\"\207\001\n\007FeeData\022&\n\010nodeda" + - "ta\030\001 \001(\0132\024.proto.FeeComponents\022)\n\013networ" + - "kdata\030\002 \001(\0132\024.proto.FeeComponents\022)\n\013ser" + - "vicedata\030\003 \001(\0132\024.proto.FeeComponents\"\202\001\n" + - "\013FeeSchedule\022=\n\026transactionFeeSchedule\030\001" + - " \003(\0132\035.proto.TransactionFeeSchedule\0224\n\033f" + - "eeScheduleValidityDuration\030\002 \001(\0132\017.proto" + - ".Duration\">\n\013NodeAddress\022\021\n\tipAddress\030\001 " + - "\001(\014\022\016\n\006portno\030\002 \001(\005\022\014\n\004memo\030\003 \001(\014\":\n\017Nod" + - "eAddressBook\022\'\n\013nodeAddress\030\001 \003(\0132\022.prot" + - "o.NodeAddress*\315\004\n\023HederaFunctionality\022\021\n" + - "\rCryptoCreates\020\000\022\022\n\016CryptoTransfer\020\001\022\020\n\014" + - "CryptoUpdate\020\002\022\020\n\014CryptoDelete\020\003\022\022\n\016Cryp" + - "toAddClaim\020\004\022\024\n\020CryptoDeletClaim\020\005\022\020\n\014Co" + - "ntractCall\020\006\022\022\n\016ContractCreate\020\007\022\022\n\016Cont" + - "ractUpdate\020\010\022\016\n\nFileCreate\020\t\022\016\n\nFileAppe" + - "nd\020\n\022\016\n\nFileUpdate\020\013\022\016\n\nFileDelete\020\014\022\033\n\027" + - "CryptoGetAccountBalance\020\r\022\033\n\027CryptoGetAc" + - "countRecords\020\016\022\021\n\rCryptoGetInfo\020\017\022\025\n\021Con" + - "tractCallLocal\020\020\022\023\n\017ContractGetInfo\020\021\022\027\n" + - "\023ContractGetBytecode\020\022\022\023\n\017GetBySolidityI" + - "D\020\023\022\014\n\010GetByKey\020\024\022\022\n\016CryptoGetClaim\020\025\022\024\n" + - "\020CryptoGetStakers\020\026\022\023\n\017FileGetContents\020\027" + - "\022\017\n\013FileGetInfo\020\030\022\030\n\024TransactionGetRecor" + - "d\020\031\022\026\n\022ContractGetRecords\020\032\022\020\n\014CryptoCre" + - "ate\020\033B&\n\"com.hederahashgraph.api.proto.j" + - "avaP\001b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.hederahashgraph.api.proto.java.TimestampOuterClass.getDescriptor(), - com.hederahashgraph.api.proto.java.DurationOuterClass.getDescriptor(), - }, assigner); - internal_static_proto_ShardID_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_proto_ShardID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_ShardID_descriptor, - new java.lang.String[] { "ShardNum", }); - internal_static_proto_RealmID_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_proto_RealmID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_RealmID_descriptor, - new java.lang.String[] { "ShardNum", "RealmNum", }); - internal_static_proto_AccountID_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_proto_AccountID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_AccountID_descriptor, - new java.lang.String[] { "ShardNum", "RealmNum", "AccountNum", }); - internal_static_proto_FileID_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_proto_FileID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_FileID_descriptor, - new java.lang.String[] { "ShardNum", "RealmNum", "FileNum", }); - internal_static_proto_ContractID_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_proto_ContractID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_ContractID_descriptor, - new java.lang.String[] { "ShardNum", "RealmNum", "ContractNum", }); - internal_static_proto_TransactionID_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_proto_TransactionID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_TransactionID_descriptor, - new java.lang.String[] { "AccountID", "TransactionValidStart", }); - internal_static_proto_Key_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_proto_Key_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_Key_descriptor, - new java.lang.String[] { "ContractID", "Ed25519", "RSA3072", "ECDSA384", "ThresholdKey", "KeyList", "Key", }); - internal_static_proto_ThresholdKey_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_proto_ThresholdKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_ThresholdKey_descriptor, - new java.lang.String[] { "Threshold", "Keys", }); - internal_static_proto_KeyList_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_proto_KeyList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_KeyList_descriptor, - new java.lang.String[] { "Keys", }); - internal_static_proto_Signature_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_proto_Signature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_Signature_descriptor, - new java.lang.String[] { "Contract", "Ed25519", "RSA3072", "ECDSA384", "ThresholdSignature", "SignatureList", "Signature", }); - internal_static_proto_ThresholdSignature_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_proto_ThresholdSignature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_ThresholdSignature_descriptor, - new java.lang.String[] { "Sigs", }); - internal_static_proto_SignatureList_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_proto_SignatureList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_SignatureList_descriptor, - new java.lang.String[] { "Sigs", }); - internal_static_proto_FeeComponents_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_proto_FeeComponents_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_FeeComponents_descriptor, - new java.lang.String[] { "Min", "Max", "Constant", "Bpt", "Vpt", "Rbs", "Sbs", "Gas", "Tv", "Bpr", "Sbpr", }); - internal_static_proto_TransactionFeeSchedule_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_proto_TransactionFeeSchedule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_TransactionFeeSchedule_descriptor, - new java.lang.String[] { "HederaFunctionality", "FeeData", }); - internal_static_proto_FeeData_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_proto_FeeData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_FeeData_descriptor, - new java.lang.String[] { "Nodedata", "Networkdata", "Servicedata", }); - internal_static_proto_FeeSchedule_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_proto_FeeSchedule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_FeeSchedule_descriptor, - new java.lang.String[] { "TransactionFeeSchedule", "FeeScheduleValidityDuration", }); - internal_static_proto_NodeAddress_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_proto_NodeAddress_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_NodeAddress_descriptor, - new java.lang.String[] { "IpAddress", "Portno", "Memo", }); - internal_static_proto_NodeAddressBook_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_proto_NodeAddressBook_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_NodeAddressBook_descriptor, - new java.lang.String[] { "NodeAddress", }); - com.hederahashgraph.api.proto.java.TimestampOuterClass.getDescriptor(); - com.hederahashgraph.api.proto.java.DurationOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/ContractID.java b/target/generated-sources/com/hederahashgraph/api/proto/java/ContractID.java deleted file mode 100644 index 39134afa1..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/ContractID.java +++ /dev/null @@ -1,647 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * The ID for a smart contract instance  
- * 
- * - * Protobuf type {@code proto.ContractID} - */ -public final class ContractID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.ContractID) - ContractIDOrBuilder { -private static final long serialVersionUID = 0L; - // Use ContractID.newBuilder() to construct. - private ContractID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ContractID() { - shardNum_ = 0L; - realmNum_ = 0L; - contractNum_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ContractID( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder 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: { - - shardNum_ = input.readInt64(); - break; - } - case 16: { - - realmNum_ = input.readInt64(); - break; - } - case 24: { - - contractNum_ = input.readInt64(); - 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 com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ContractID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ContractID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.ContractID.class, com.hederahashgraph.api.proto.java.ContractID.Builder.class); - } - - public static final int SHARDNUM_FIELD_NUMBER = 1; - private long shardNum_; - /** - *
-   *the shard number (nonnegative)
-   * 
- * - * int64 shardNum = 1; - */ - public long getShardNum() { - return shardNum_; - } - - public static final int REALMNUM_FIELD_NUMBER = 2; - private long realmNum_; - /** - *
-   *the realm number (nonnegative)
-   * 
- * - * int64 realmNum = 2; - */ - public long getRealmNum() { - return realmNum_; - } - - public static final int CONTRACTNUM_FIELD_NUMBER = 3; - private long contractNum_; - /** - *
-   *a nonnegative number unique within its realm
-   * 
- * - * int64 contractNum = 3; - */ - public long getContractNum() { - return contractNum_; - } - - 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 (shardNum_ != 0L) { - output.writeInt64(1, shardNum_); - } - if (realmNum_ != 0L) { - output.writeInt64(2, realmNum_); - } - if (contractNum_ != 0L) { - output.writeInt64(3, contractNum_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (shardNum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, shardNum_); - } - if (realmNum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, realmNum_); - } - if (contractNum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, contractNum_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.hederahashgraph.api.proto.java.ContractID)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.ContractID other = (com.hederahashgraph.api.proto.java.ContractID) obj; - - boolean result = true; - result = result && (getShardNum() - == other.getShardNum()); - result = result && (getRealmNum() - == other.getRealmNum()); - result = result && (getContractNum() - == other.getContractNum()); - 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) + SHARDNUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getShardNum()); - hash = (37 * hash) + REALMNUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRealmNum()); - hash = (37 * hash) + CONTRACTNUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getContractNum()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.ContractID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.ContractID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ContractID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.ContractID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ContractID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.ContractID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ContractID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.ContractID parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ContractID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.ContractID parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ContractID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.ContractID parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.ContractID prototype) { - return 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; - } - /** - *
-   * The ID for a smart contract instance  
-   * 
- * - * Protobuf type {@code proto.ContractID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.ContractID) - com.hederahashgraph.api.proto.java.ContractIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ContractID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ContractID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.ContractID.class, com.hederahashgraph.api.proto.java.ContractID.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.ContractID.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - shardNum_ = 0L; - - realmNum_ = 0L; - - contractNum_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ContractID_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.ContractID getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.ContractID build() { - com.hederahashgraph.api.proto.java.ContractID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.ContractID buildPartial() { - com.hederahashgraph.api.proto.java.ContractID result = new com.hederahashgraph.api.proto.java.ContractID(this); - result.shardNum_ = shardNum_; - result.realmNum_ = realmNum_; - result.contractNum_ = contractNum_; - 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 com.hederahashgraph.api.proto.java.ContractID) { - return mergeFrom((com.hederahashgraph.api.proto.java.ContractID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.ContractID other) { - if (other == com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance()) return this; - if (other.getShardNum() != 0L) { - setShardNum(other.getShardNum()); - } - if (other.getRealmNum() != 0L) { - setRealmNum(other.getRealmNum()); - } - if (other.getContractNum() != 0L) { - setContractNum(other.getContractNum()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.hederahashgraph.api.proto.java.ContractID parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.ContractID) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long shardNum_ ; - /** - *
-     *the shard number (nonnegative)
-     * 
- * - * int64 shardNum = 1; - */ - public long getShardNum() { - return shardNum_; - } - /** - *
-     *the shard number (nonnegative)
-     * 
- * - * int64 shardNum = 1; - */ - public Builder setShardNum(long value) { - - shardNum_ = value; - onChanged(); - return this; - } - /** - *
-     *the shard number (nonnegative)
-     * 
- * - * int64 shardNum = 1; - */ - public Builder clearShardNum() { - - shardNum_ = 0L; - onChanged(); - return this; - } - - private long realmNum_ ; - /** - *
-     *the realm number (nonnegative)
-     * 
- * - * int64 realmNum = 2; - */ - public long getRealmNum() { - return realmNum_; - } - /** - *
-     *the realm number (nonnegative)
-     * 
- * - * int64 realmNum = 2; - */ - public Builder setRealmNum(long value) { - - realmNum_ = value; - onChanged(); - return this; - } - /** - *
-     *the realm number (nonnegative)
-     * 
- * - * int64 realmNum = 2; - */ - public Builder clearRealmNum() { - - realmNum_ = 0L; - onChanged(); - return this; - } - - private long contractNum_ ; - /** - *
-     *a nonnegative number unique within its realm
-     * 
- * - * int64 contractNum = 3; - */ - public long getContractNum() { - return contractNum_; - } - /** - *
-     *a nonnegative number unique within its realm
-     * 
- * - * int64 contractNum = 3; - */ - public Builder setContractNum(long value) { - - contractNum_ = value; - onChanged(); - return this; - } - /** - *
-     *a nonnegative number unique within its realm
-     * 
- * - * int64 contractNum = 3; - */ - public Builder clearContractNum() { - - contractNum_ = 0L; - 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:proto.ContractID) - } - - // @@protoc_insertion_point(class_scope:proto.ContractID) - private static final com.hederahashgraph.api.proto.java.ContractID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ContractID(); - } - - public static com.hederahashgraph.api.proto.java.ContractID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContractID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContractID(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.hederahashgraph.api.proto.java.ContractID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/ContractIDOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/ContractIDOrBuilder.java deleted file mode 100644 index 5b92603ff..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/ContractIDOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface ContractIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.ContractID) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   *the shard number (nonnegative)
-   * 
- * - * int64 shardNum = 1; - */ - long getShardNum(); - - /** - *
-   *the realm number (nonnegative)
-   * 
- * - * int64 realmNum = 2; - */ - long getRealmNum(); - - /** - *
-   *a nonnegative number unique within its realm
-   * 
- * - * int64 contractNum = 3; - */ - long getContractNum(); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/FeeComponents.java b/target/generated-sources/com/hederahashgraph/api/proto/java/FeeComponents.java deleted file mode 100644 index ac378f0cb..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/FeeComponents.java +++ /dev/null @@ -1,1239 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - * Protobuf type {@code proto.FeeComponents} - */ -public final class FeeComponents extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.FeeComponents) - FeeComponentsOrBuilder { -private static final long serialVersionUID = 0L; - // Use FeeComponents.newBuilder() to construct. - private FeeComponents(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FeeComponents() { - min_ = 0L; - max_ = 0L; - constant_ = 0L; - bpt_ = 0L; - vpt_ = 0L; - rbs_ = 0L; - sbs_ = 0L; - gas_ = 0L; - tv_ = 0L; - bpr_ = 0L; - sbpr_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FeeComponents( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder 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: { - - min_ = input.readInt64(); - break; - } - case 16: { - - max_ = input.readInt64(); - break; - } - case 24: { - - constant_ = input.readInt64(); - break; - } - case 32: { - - bpt_ = input.readInt64(); - break; - } - case 40: { - - vpt_ = input.readInt64(); - break; - } - case 48: { - - rbs_ = input.readInt64(); - break; - } - case 56: { - - sbs_ = input.readInt64(); - break; - } - case 64: { - - gas_ = input.readInt64(); - break; - } - case 72: { - - tv_ = input.readInt64(); - break; - } - case 80: { - - bpr_ = input.readInt64(); - break; - } - case 88: { - - sbpr_ = input.readInt64(); - 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 com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeComponents_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeComponents_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.FeeComponents.class, com.hederahashgraph.api.proto.java.FeeComponents.Builder.class); - } - - public static final int MIN_FIELD_NUMBER = 1; - private long min_; - /** - *
-   * the minimum fees that needs to be paid
-   * 
- * - * int64 min = 1; - */ - public long getMin() { - return min_; - } - - public static final int MAX_FIELD_NUMBER = 2; - private long max_; - /** - *
-   * the maximum fees that can be submitted
-   * 
- * - * int64 max = 2; - */ - public long getMax() { - return max_; - } - - public static final int CONSTANT_FIELD_NUMBER = 3; - private long constant_; - /** - *
-   * a constant determined by the business to calculate the fees
-   * 
- * - * int64 constant = 3; - */ - public long getConstant() { - return constant_; - } - - public static final int BPT_FIELD_NUMBER = 4; - private long bpt_; - /** - *
-   * bytes per transaction
-   * 
- * - * int64 bpt = 4; - */ - public long getBpt() { - return bpt_; - } - - public static final int VPT_FIELD_NUMBER = 5; - private long vpt_; - /** - *
-   * verifications per transaction
-   * 
- * - * int64 vpt = 5; - */ - public long getVpt() { - return vpt_; - } - - public static final int RBS_FIELD_NUMBER = 6; - private long rbs_; - /** - *
-   * ram byte seconds
-   * 
- * - * int64 rbs = 6; - */ - public long getRbs() { - return rbs_; - } - - public static final int SBS_FIELD_NUMBER = 7; - private long sbs_; - /** - *
-   * storage byte seconds
-   * 
- * - * int64 sbs = 7; - */ - public long getSbs() { - return sbs_; - } - - public static final int GAS_FIELD_NUMBER = 8; - private long gas_; - /** - *
-   * ethereum gas
-   * 
- * - * int64 gas = 8; - */ - public long getGas() { - return gas_; - } - - public static final int TV_FIELD_NUMBER = 9; - private long tv_; - /** - *
-   * transaction value (crypto transfers amount, tv is in tiny bars divided by 1000, rounded down)
-   * 
- * - * int64 tv = 9; - */ - public long getTv() { - return tv_; - } - - public static final int BPR_FIELD_NUMBER = 10; - private long bpr_; - /** - *
-   * bytes per response
-   * 
- * - * int64 bpr = 10; - */ - public long getBpr() { - return bpr_; - } - - public static final int SBPR_FIELD_NUMBER = 11; - private long sbpr_; - /** - *
-   * storage bytes per response
-   * 
- * - * int64 sbpr = 11; - */ - public long getSbpr() { - return sbpr_; - } - - 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 (min_ != 0L) { - output.writeInt64(1, min_); - } - if (max_ != 0L) { - output.writeInt64(2, max_); - } - if (constant_ != 0L) { - output.writeInt64(3, constant_); - } - if (bpt_ != 0L) { - output.writeInt64(4, bpt_); - } - if (vpt_ != 0L) { - output.writeInt64(5, vpt_); - } - if (rbs_ != 0L) { - output.writeInt64(6, rbs_); - } - if (sbs_ != 0L) { - output.writeInt64(7, sbs_); - } - if (gas_ != 0L) { - output.writeInt64(8, gas_); - } - if (tv_ != 0L) { - output.writeInt64(9, tv_); - } - if (bpr_ != 0L) { - output.writeInt64(10, bpr_); - } - if (sbpr_ != 0L) { - output.writeInt64(11, sbpr_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (min_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, min_); - } - if (max_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, max_); - } - if (constant_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, constant_); - } - if (bpt_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, bpt_); - } - if (vpt_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, vpt_); - } - if (rbs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, rbs_); - } - if (sbs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, sbs_); - } - if (gas_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, gas_); - } - if (tv_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, tv_); - } - if (bpr_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, bpr_); - } - if (sbpr_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(11, sbpr_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.hederahashgraph.api.proto.java.FeeComponents)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.FeeComponents other = (com.hederahashgraph.api.proto.java.FeeComponents) obj; - - boolean result = true; - result = result && (getMin() - == other.getMin()); - result = result && (getMax() - == other.getMax()); - result = result && (getConstant() - == other.getConstant()); - result = result && (getBpt() - == other.getBpt()); - result = result && (getVpt() - == other.getVpt()); - result = result && (getRbs() - == other.getRbs()); - result = result && (getSbs() - == other.getSbs()); - result = result && (getGas() - == other.getGas()); - result = result && (getTv() - == other.getTv()); - result = result && (getBpr() - == other.getBpr()); - result = result && (getSbpr() - == other.getSbpr()); - 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) + MIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMin()); - hash = (37 * hash) + MAX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMax()); - hash = (37 * hash) + CONSTANT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getConstant()); - hash = (37 * hash) + BPT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBpt()); - hash = (37 * hash) + VPT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVpt()); - hash = (37 * hash) + RBS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRbs()); - hash = (37 * hash) + SBS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSbs()); - hash = (37 * hash) + GAS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGas()); - hash = (37 * hash) + TV_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTv()); - hash = (37 * hash) + BPR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBpr()); - hash = (37 * hash) + SBPR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSbpr()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.FeeComponents parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.FeeComponents parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FeeComponents parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.FeeComponents parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FeeComponents parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.FeeComponents parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FeeComponents parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.FeeComponents parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FeeComponents parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.FeeComponents parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FeeComponents parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.FeeComponents parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.FeeComponents prototype) { - return 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 proto.FeeComponents} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.FeeComponents) - com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeComponents_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeComponents_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.FeeComponents.class, com.hederahashgraph.api.proto.java.FeeComponents.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.FeeComponents.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - min_ = 0L; - - max_ = 0L; - - constant_ = 0L; - - bpt_ = 0L; - - vpt_ = 0L; - - rbs_ = 0L; - - sbs_ = 0L; - - gas_ = 0L; - - tv_ = 0L; - - bpr_ = 0L; - - sbpr_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeComponents_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.FeeComponents getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.FeeComponents build() { - com.hederahashgraph.api.proto.java.FeeComponents result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.FeeComponents buildPartial() { - com.hederahashgraph.api.proto.java.FeeComponents result = new com.hederahashgraph.api.proto.java.FeeComponents(this); - result.min_ = min_; - result.max_ = max_; - result.constant_ = constant_; - result.bpt_ = bpt_; - result.vpt_ = vpt_; - result.rbs_ = rbs_; - result.sbs_ = sbs_; - result.gas_ = gas_; - result.tv_ = tv_; - result.bpr_ = bpr_; - result.sbpr_ = sbpr_; - 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 com.hederahashgraph.api.proto.java.FeeComponents) { - return mergeFrom((com.hederahashgraph.api.proto.java.FeeComponents)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.FeeComponents other) { - if (other == com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance()) return this; - if (other.getMin() != 0L) { - setMin(other.getMin()); - } - if (other.getMax() != 0L) { - setMax(other.getMax()); - } - if (other.getConstant() != 0L) { - setConstant(other.getConstant()); - } - if (other.getBpt() != 0L) { - setBpt(other.getBpt()); - } - if (other.getVpt() != 0L) { - setVpt(other.getVpt()); - } - if (other.getRbs() != 0L) { - setRbs(other.getRbs()); - } - if (other.getSbs() != 0L) { - setSbs(other.getSbs()); - } - if (other.getGas() != 0L) { - setGas(other.getGas()); - } - if (other.getTv() != 0L) { - setTv(other.getTv()); - } - if (other.getBpr() != 0L) { - setBpr(other.getBpr()); - } - if (other.getSbpr() != 0L) { - setSbpr(other.getSbpr()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.hederahashgraph.api.proto.java.FeeComponents parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.FeeComponents) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long min_ ; - /** - *
-     * the minimum fees that needs to be paid
-     * 
- * - * int64 min = 1; - */ - public long getMin() { - return min_; - } - /** - *
-     * the minimum fees that needs to be paid
-     * 
- * - * int64 min = 1; - */ - public Builder setMin(long value) { - - min_ = value; - onChanged(); - return this; - } - /** - *
-     * the minimum fees that needs to be paid
-     * 
- * - * int64 min = 1; - */ - public Builder clearMin() { - - min_ = 0L; - onChanged(); - return this; - } - - private long max_ ; - /** - *
-     * the maximum fees that can be submitted
-     * 
- * - * int64 max = 2; - */ - public long getMax() { - return max_; - } - /** - *
-     * the maximum fees that can be submitted
-     * 
- * - * int64 max = 2; - */ - public Builder setMax(long value) { - - max_ = value; - onChanged(); - return this; - } - /** - *
-     * the maximum fees that can be submitted
-     * 
- * - * int64 max = 2; - */ - public Builder clearMax() { - - max_ = 0L; - onChanged(); - return this; - } - - private long constant_ ; - /** - *
-     * a constant determined by the business to calculate the fees
-     * 
- * - * int64 constant = 3; - */ - public long getConstant() { - return constant_; - } - /** - *
-     * a constant determined by the business to calculate the fees
-     * 
- * - * int64 constant = 3; - */ - public Builder setConstant(long value) { - - constant_ = value; - onChanged(); - return this; - } - /** - *
-     * a constant determined by the business to calculate the fees
-     * 
- * - * int64 constant = 3; - */ - public Builder clearConstant() { - - constant_ = 0L; - onChanged(); - return this; - } - - private long bpt_ ; - /** - *
-     * bytes per transaction
-     * 
- * - * int64 bpt = 4; - */ - public long getBpt() { - return bpt_; - } - /** - *
-     * bytes per transaction
-     * 
- * - * int64 bpt = 4; - */ - public Builder setBpt(long value) { - - bpt_ = value; - onChanged(); - return this; - } - /** - *
-     * bytes per transaction
-     * 
- * - * int64 bpt = 4; - */ - public Builder clearBpt() { - - bpt_ = 0L; - onChanged(); - return this; - } - - private long vpt_ ; - /** - *
-     * verifications per transaction
-     * 
- * - * int64 vpt = 5; - */ - public long getVpt() { - return vpt_; - } - /** - *
-     * verifications per transaction
-     * 
- * - * int64 vpt = 5; - */ - public Builder setVpt(long value) { - - vpt_ = value; - onChanged(); - return this; - } - /** - *
-     * verifications per transaction
-     * 
- * - * int64 vpt = 5; - */ - public Builder clearVpt() { - - vpt_ = 0L; - onChanged(); - return this; - } - - private long rbs_ ; - /** - *
-     * ram byte seconds
-     * 
- * - * int64 rbs = 6; - */ - public long getRbs() { - return rbs_; - } - /** - *
-     * ram byte seconds
-     * 
- * - * int64 rbs = 6; - */ - public Builder setRbs(long value) { - - rbs_ = value; - onChanged(); - return this; - } - /** - *
-     * ram byte seconds
-     * 
- * - * int64 rbs = 6; - */ - public Builder clearRbs() { - - rbs_ = 0L; - onChanged(); - return this; - } - - private long sbs_ ; - /** - *
-     * storage byte seconds
-     * 
- * - * int64 sbs = 7; - */ - public long getSbs() { - return sbs_; - } - /** - *
-     * storage byte seconds
-     * 
- * - * int64 sbs = 7; - */ - public Builder setSbs(long value) { - - sbs_ = value; - onChanged(); - return this; - } - /** - *
-     * storage byte seconds
-     * 
- * - * int64 sbs = 7; - */ - public Builder clearSbs() { - - sbs_ = 0L; - onChanged(); - return this; - } - - private long gas_ ; - /** - *
-     * ethereum gas
-     * 
- * - * int64 gas = 8; - */ - public long getGas() { - return gas_; - } - /** - *
-     * ethereum gas
-     * 
- * - * int64 gas = 8; - */ - public Builder setGas(long value) { - - gas_ = value; - onChanged(); - return this; - } - /** - *
-     * ethereum gas
-     * 
- * - * int64 gas = 8; - */ - public Builder clearGas() { - - gas_ = 0L; - onChanged(); - return this; - } - - private long tv_ ; - /** - *
-     * transaction value (crypto transfers amount, tv is in tiny bars divided by 1000, rounded down)
-     * 
- * - * int64 tv = 9; - */ - public long getTv() { - return tv_; - } - /** - *
-     * transaction value (crypto transfers amount, tv is in tiny bars divided by 1000, rounded down)
-     * 
- * - * int64 tv = 9; - */ - public Builder setTv(long value) { - - tv_ = value; - onChanged(); - return this; - } - /** - *
-     * transaction value (crypto transfers amount, tv is in tiny bars divided by 1000, rounded down)
-     * 
- * - * int64 tv = 9; - */ - public Builder clearTv() { - - tv_ = 0L; - onChanged(); - return this; - } - - private long bpr_ ; - /** - *
-     * bytes per response
-     * 
- * - * int64 bpr = 10; - */ - public long getBpr() { - return bpr_; - } - /** - *
-     * bytes per response
-     * 
- * - * int64 bpr = 10; - */ - public Builder setBpr(long value) { - - bpr_ = value; - onChanged(); - return this; - } - /** - *
-     * bytes per response
-     * 
- * - * int64 bpr = 10; - */ - public Builder clearBpr() { - - bpr_ = 0L; - onChanged(); - return this; - } - - private long sbpr_ ; - /** - *
-     * storage bytes per response
-     * 
- * - * int64 sbpr = 11; - */ - public long getSbpr() { - return sbpr_; - } - /** - *
-     * storage bytes per response
-     * 
- * - * int64 sbpr = 11; - */ - public Builder setSbpr(long value) { - - sbpr_ = value; - onChanged(); - return this; - } - /** - *
-     * storage bytes per response
-     * 
- * - * int64 sbpr = 11; - */ - public Builder clearSbpr() { - - sbpr_ = 0L; - 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:proto.FeeComponents) - } - - // @@protoc_insertion_point(class_scope:proto.FeeComponents) - private static final com.hederahashgraph.api.proto.java.FeeComponents DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.FeeComponents(); - } - - public static com.hederahashgraph.api.proto.java.FeeComponents getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeeComponents parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeeComponents(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.hederahashgraph.api.proto.java.FeeComponents getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/FeeComponentsOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/FeeComponentsOrBuilder.java deleted file mode 100644 index 779649e13..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/FeeComponentsOrBuilder.java +++ /dev/null @@ -1,108 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface FeeComponentsOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.FeeComponents) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * the minimum fees that needs to be paid
-   * 
- * - * int64 min = 1; - */ - long getMin(); - - /** - *
-   * the maximum fees that can be submitted
-   * 
- * - * int64 max = 2; - */ - long getMax(); - - /** - *
-   * a constant determined by the business to calculate the fees
-   * 
- * - * int64 constant = 3; - */ - long getConstant(); - - /** - *
-   * bytes per transaction
-   * 
- * - * int64 bpt = 4; - */ - long getBpt(); - - /** - *
-   * verifications per transaction
-   * 
- * - * int64 vpt = 5; - */ - long getVpt(); - - /** - *
-   * ram byte seconds
-   * 
- * - * int64 rbs = 6; - */ - long getRbs(); - - /** - *
-   * storage byte seconds
-   * 
- * - * int64 sbs = 7; - */ - long getSbs(); - - /** - *
-   * ethereum gas
-   * 
- * - * int64 gas = 8; - */ - long getGas(); - - /** - *
-   * transaction value (crypto transfers amount, tv is in tiny bars divided by 1000, rounded down)
-   * 
- * - * int64 tv = 9; - */ - long getTv(); - - /** - *
-   * bytes per response
-   * 
- * - * int64 bpr = 10; - */ - long getBpr(); - - /** - *
-   * storage bytes per response
-   * 
- * - * int64 sbpr = 11; - */ - long getSbpr(); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/FeeData.java b/target/generated-sources/com/hederahashgraph/api/proto/java/FeeData.java deleted file mode 100644 index ef9d69029..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/FeeData.java +++ /dev/null @@ -1,1109 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * The total fees charged for a trasansaction. It contains three parts namely nodedata, networkdata and servicedata 
- * 
- * - * Protobuf type {@code proto.FeeData} - */ -public final class FeeData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.FeeData) - FeeDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use FeeData.newBuilder() to construct. - private FeeData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FeeData() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FeeData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.hederahashgraph.api.proto.java.FeeComponents.Builder subBuilder = null; - if (nodedata_ != null) { - subBuilder = nodedata_.toBuilder(); - } - nodedata_ = input.readMessage(com.hederahashgraph.api.proto.java.FeeComponents.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nodedata_); - nodedata_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.hederahashgraph.api.proto.java.FeeComponents.Builder subBuilder = null; - if (networkdata_ != null) { - subBuilder = networkdata_.toBuilder(); - } - networkdata_ = input.readMessage(com.hederahashgraph.api.proto.java.FeeComponents.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(networkdata_); - networkdata_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - com.hederahashgraph.api.proto.java.FeeComponents.Builder subBuilder = null; - if (servicedata_ != null) { - subBuilder = servicedata_.toBuilder(); - } - servicedata_ = input.readMessage(com.hederahashgraph.api.proto.java.FeeComponents.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(servicedata_); - servicedata_ = subBuilder.buildPartial(); - } - - 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 com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.FeeData.class, com.hederahashgraph.api.proto.java.FeeData.Builder.class); - } - - public static final int NODEDATA_FIELD_NUMBER = 1; - private com.hederahashgraph.api.proto.java.FeeComponents nodedata_; - /** - *
-   * Fee charged by Node for this functionality
-   * 
- * - * .proto.FeeComponents nodedata = 1; - */ - public boolean hasNodedata() { - return nodedata_ != null; - } - /** - *
-   * Fee charged by Node for this functionality
-   * 
- * - * .proto.FeeComponents nodedata = 1; - */ - public com.hederahashgraph.api.proto.java.FeeComponents getNodedata() { - return nodedata_ == null ? com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : nodedata_; - } - /** - *
-   * Fee charged by Node for this functionality
-   * 
- * - * .proto.FeeComponents nodedata = 1; - */ - public com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder getNodedataOrBuilder() { - return getNodedata(); - } - - public static final int NETWORKDATA_FIELD_NUMBER = 2; - private com.hederahashgraph.api.proto.java.FeeComponents networkdata_; - /** - *
-   * Fee charged for network operations by Hedera
-   * 
- * - * .proto.FeeComponents networkdata = 2; - */ - public boolean hasNetworkdata() { - return networkdata_ != null; - } - /** - *
-   * Fee charged for network operations by Hedera
-   * 
- * - * .proto.FeeComponents networkdata = 2; - */ - public com.hederahashgraph.api.proto.java.FeeComponents getNetworkdata() { - return networkdata_ == null ? com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : networkdata_; - } - /** - *
-   * Fee charged for network operations by Hedera
-   * 
- * - * .proto.FeeComponents networkdata = 2; - */ - public com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder getNetworkdataOrBuilder() { - return getNetworkdata(); - } - - public static final int SERVICEDATA_FIELD_NUMBER = 3; - private com.hederahashgraph.api.proto.java.FeeComponents servicedata_; - /** - *
-   * Fee charged for provding service by Hedera
-   * 
- * - * .proto.FeeComponents servicedata = 3; - */ - public boolean hasServicedata() { - return servicedata_ != null; - } - /** - *
-   * Fee charged for provding service by Hedera
-   * 
- * - * .proto.FeeComponents servicedata = 3; - */ - public com.hederahashgraph.api.proto.java.FeeComponents getServicedata() { - return servicedata_ == null ? com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : servicedata_; - } - /** - *
-   * Fee charged for provding service by Hedera
-   * 
- * - * .proto.FeeComponents servicedata = 3; - */ - public com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder getServicedataOrBuilder() { - return getServicedata(); - } - - 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 (nodedata_ != null) { - output.writeMessage(1, getNodedata()); - } - if (networkdata_ != null) { - output.writeMessage(2, getNetworkdata()); - } - if (servicedata_ != null) { - output.writeMessage(3, getServicedata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nodedata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNodedata()); - } - if (networkdata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getNetworkdata()); - } - if (servicedata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getServicedata()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.hederahashgraph.api.proto.java.FeeData)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.FeeData other = (com.hederahashgraph.api.proto.java.FeeData) obj; - - boolean result = true; - result = result && (hasNodedata() == other.hasNodedata()); - if (hasNodedata()) { - result = result && getNodedata() - .equals(other.getNodedata()); - } - result = result && (hasNetworkdata() == other.hasNetworkdata()); - if (hasNetworkdata()) { - result = result && getNetworkdata() - .equals(other.getNetworkdata()); - } - result = result && (hasServicedata() == other.hasServicedata()); - if (hasServicedata()) { - result = result && getServicedata() - .equals(other.getServicedata()); - } - 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 (hasNodedata()) { - hash = (37 * hash) + NODEDATA_FIELD_NUMBER; - hash = (53 * hash) + getNodedata().hashCode(); - } - if (hasNetworkdata()) { - hash = (37 * hash) + NETWORKDATA_FIELD_NUMBER; - hash = (53 * hash) + getNetworkdata().hashCode(); - } - if (hasServicedata()) { - hash = (37 * hash) + SERVICEDATA_FIELD_NUMBER; - hash = (53 * hash) + getServicedata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.FeeData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.FeeData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FeeData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.FeeData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FeeData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.FeeData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FeeData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.FeeData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FeeData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.FeeData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FeeData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.FeeData parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.FeeData prototype) { - return 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; - } - /** - *
-   * The total fees charged for a trasansaction. It contains three parts namely nodedata, networkdata and servicedata 
-   * 
- * - * Protobuf type {@code proto.FeeData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.FeeData) - com.hederahashgraph.api.proto.java.FeeDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.FeeData.class, com.hederahashgraph.api.proto.java.FeeData.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.FeeData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.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 (nodedataBuilder_ == null) { - nodedata_ = null; - } else { - nodedata_ = null; - nodedataBuilder_ = null; - } - if (networkdataBuilder_ == null) { - networkdata_ = null; - } else { - networkdata_ = null; - networkdataBuilder_ = null; - } - if (servicedataBuilder_ == null) { - servicedata_ = null; - } else { - servicedata_ = null; - servicedataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeData_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.FeeData getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.FeeData.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.FeeData build() { - com.hederahashgraph.api.proto.java.FeeData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.FeeData buildPartial() { - com.hederahashgraph.api.proto.java.FeeData result = new com.hederahashgraph.api.proto.java.FeeData(this); - if (nodedataBuilder_ == null) { - result.nodedata_ = nodedata_; - } else { - result.nodedata_ = nodedataBuilder_.build(); - } - if (networkdataBuilder_ == null) { - result.networkdata_ = networkdata_; - } else { - result.networkdata_ = networkdataBuilder_.build(); - } - if (servicedataBuilder_ == null) { - result.servicedata_ = servicedata_; - } else { - result.servicedata_ = servicedataBuilder_.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 com.hederahashgraph.api.proto.java.FeeData) { - return mergeFrom((com.hederahashgraph.api.proto.java.FeeData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.FeeData other) { - if (other == com.hederahashgraph.api.proto.java.FeeData.getDefaultInstance()) return this; - if (other.hasNodedata()) { - mergeNodedata(other.getNodedata()); - } - if (other.hasNetworkdata()) { - mergeNetworkdata(other.getNetworkdata()); - } - if (other.hasServicedata()) { - mergeServicedata(other.getServicedata()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.hederahashgraph.api.proto.java.FeeData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.FeeData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.hederahashgraph.api.proto.java.FeeComponents nodedata_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder> nodedataBuilder_; - /** - *
-     * Fee charged by Node for this functionality
-     * 
- * - * .proto.FeeComponents nodedata = 1; - */ - public boolean hasNodedata() { - return nodedataBuilder_ != null || nodedata_ != null; - } - /** - *
-     * Fee charged by Node for this functionality
-     * 
- * - * .proto.FeeComponents nodedata = 1; - */ - public com.hederahashgraph.api.proto.java.FeeComponents getNodedata() { - if (nodedataBuilder_ == null) { - return nodedata_ == null ? com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : nodedata_; - } else { - return nodedataBuilder_.getMessage(); - } - } - /** - *
-     * Fee charged by Node for this functionality
-     * 
- * - * .proto.FeeComponents nodedata = 1; - */ - public Builder setNodedata(com.hederahashgraph.api.proto.java.FeeComponents value) { - if (nodedataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodedata_ = value; - onChanged(); - } else { - nodedataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Fee charged by Node for this functionality
-     * 
- * - * .proto.FeeComponents nodedata = 1; - */ - public Builder setNodedata( - com.hederahashgraph.api.proto.java.FeeComponents.Builder builderForValue) { - if (nodedataBuilder_ == null) { - nodedata_ = builderForValue.build(); - onChanged(); - } else { - nodedataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Fee charged by Node for this functionality
-     * 
- * - * .proto.FeeComponents nodedata = 1; - */ - public Builder mergeNodedata(com.hederahashgraph.api.proto.java.FeeComponents value) { - if (nodedataBuilder_ == null) { - if (nodedata_ != null) { - nodedata_ = - com.hederahashgraph.api.proto.java.FeeComponents.newBuilder(nodedata_).mergeFrom(value).buildPartial(); - } else { - nodedata_ = value; - } - onChanged(); - } else { - nodedataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Fee charged by Node for this functionality
-     * 
- * - * .proto.FeeComponents nodedata = 1; - */ - public Builder clearNodedata() { - if (nodedataBuilder_ == null) { - nodedata_ = null; - onChanged(); - } else { - nodedata_ = null; - nodedataBuilder_ = null; - } - - return this; - } - /** - *
-     * Fee charged by Node for this functionality
-     * 
- * - * .proto.FeeComponents nodedata = 1; - */ - public com.hederahashgraph.api.proto.java.FeeComponents.Builder getNodedataBuilder() { - - onChanged(); - return getNodedataFieldBuilder().getBuilder(); - } - /** - *
-     * Fee charged by Node for this functionality
-     * 
- * - * .proto.FeeComponents nodedata = 1; - */ - public com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder getNodedataOrBuilder() { - if (nodedataBuilder_ != null) { - return nodedataBuilder_.getMessageOrBuilder(); - } else { - return nodedata_ == null ? - com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : nodedata_; - } - } - /** - *
-     * Fee charged by Node for this functionality
-     * 
- * - * .proto.FeeComponents nodedata = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder> - getNodedataFieldBuilder() { - if (nodedataBuilder_ == null) { - nodedataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder>( - getNodedata(), - getParentForChildren(), - isClean()); - nodedata_ = null; - } - return nodedataBuilder_; - } - - private com.hederahashgraph.api.proto.java.FeeComponents networkdata_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder> networkdataBuilder_; - /** - *
-     * Fee charged for network operations by Hedera
-     * 
- * - * .proto.FeeComponents networkdata = 2; - */ - public boolean hasNetworkdata() { - return networkdataBuilder_ != null || networkdata_ != null; - } - /** - *
-     * Fee charged for network operations by Hedera
-     * 
- * - * .proto.FeeComponents networkdata = 2; - */ - public com.hederahashgraph.api.proto.java.FeeComponents getNetworkdata() { - if (networkdataBuilder_ == null) { - return networkdata_ == null ? com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : networkdata_; - } else { - return networkdataBuilder_.getMessage(); - } - } - /** - *
-     * Fee charged for network operations by Hedera
-     * 
- * - * .proto.FeeComponents networkdata = 2; - */ - public Builder setNetworkdata(com.hederahashgraph.api.proto.java.FeeComponents value) { - if (networkdataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkdata_ = value; - onChanged(); - } else { - networkdataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Fee charged for network operations by Hedera
-     * 
- * - * .proto.FeeComponents networkdata = 2; - */ - public Builder setNetworkdata( - com.hederahashgraph.api.proto.java.FeeComponents.Builder builderForValue) { - if (networkdataBuilder_ == null) { - networkdata_ = builderForValue.build(); - onChanged(); - } else { - networkdataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Fee charged for network operations by Hedera
-     * 
- * - * .proto.FeeComponents networkdata = 2; - */ - public Builder mergeNetworkdata(com.hederahashgraph.api.proto.java.FeeComponents value) { - if (networkdataBuilder_ == null) { - if (networkdata_ != null) { - networkdata_ = - com.hederahashgraph.api.proto.java.FeeComponents.newBuilder(networkdata_).mergeFrom(value).buildPartial(); - } else { - networkdata_ = value; - } - onChanged(); - } else { - networkdataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Fee charged for network operations by Hedera
-     * 
- * - * .proto.FeeComponents networkdata = 2; - */ - public Builder clearNetworkdata() { - if (networkdataBuilder_ == null) { - networkdata_ = null; - onChanged(); - } else { - networkdata_ = null; - networkdataBuilder_ = null; - } - - return this; - } - /** - *
-     * Fee charged for network operations by Hedera
-     * 
- * - * .proto.FeeComponents networkdata = 2; - */ - public com.hederahashgraph.api.proto.java.FeeComponents.Builder getNetworkdataBuilder() { - - onChanged(); - return getNetworkdataFieldBuilder().getBuilder(); - } - /** - *
-     * Fee charged for network operations by Hedera
-     * 
- * - * .proto.FeeComponents networkdata = 2; - */ - public com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder getNetworkdataOrBuilder() { - if (networkdataBuilder_ != null) { - return networkdataBuilder_.getMessageOrBuilder(); - } else { - return networkdata_ == null ? - com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : networkdata_; - } - } - /** - *
-     * Fee charged for network operations by Hedera
-     * 
- * - * .proto.FeeComponents networkdata = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder> - getNetworkdataFieldBuilder() { - if (networkdataBuilder_ == null) { - networkdataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder>( - getNetworkdata(), - getParentForChildren(), - isClean()); - networkdata_ = null; - } - return networkdataBuilder_; - } - - private com.hederahashgraph.api.proto.java.FeeComponents servicedata_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder> servicedataBuilder_; - /** - *
-     * Fee charged for provding service by Hedera
-     * 
- * - * .proto.FeeComponents servicedata = 3; - */ - public boolean hasServicedata() { - return servicedataBuilder_ != null || servicedata_ != null; - } - /** - *
-     * Fee charged for provding service by Hedera
-     * 
- * - * .proto.FeeComponents servicedata = 3; - */ - public com.hederahashgraph.api.proto.java.FeeComponents getServicedata() { - if (servicedataBuilder_ == null) { - return servicedata_ == null ? com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : servicedata_; - } else { - return servicedataBuilder_.getMessage(); - } - } - /** - *
-     * Fee charged for provding service by Hedera
-     * 
- * - * .proto.FeeComponents servicedata = 3; - */ - public Builder setServicedata(com.hederahashgraph.api.proto.java.FeeComponents value) { - if (servicedataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - servicedata_ = value; - onChanged(); - } else { - servicedataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Fee charged for provding service by Hedera
-     * 
- * - * .proto.FeeComponents servicedata = 3; - */ - public Builder setServicedata( - com.hederahashgraph.api.proto.java.FeeComponents.Builder builderForValue) { - if (servicedataBuilder_ == null) { - servicedata_ = builderForValue.build(); - onChanged(); - } else { - servicedataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Fee charged for provding service by Hedera
-     * 
- * - * .proto.FeeComponents servicedata = 3; - */ - public Builder mergeServicedata(com.hederahashgraph.api.proto.java.FeeComponents value) { - if (servicedataBuilder_ == null) { - if (servicedata_ != null) { - servicedata_ = - com.hederahashgraph.api.proto.java.FeeComponents.newBuilder(servicedata_).mergeFrom(value).buildPartial(); - } else { - servicedata_ = value; - } - onChanged(); - } else { - servicedataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Fee charged for provding service by Hedera
-     * 
- * - * .proto.FeeComponents servicedata = 3; - */ - public Builder clearServicedata() { - if (servicedataBuilder_ == null) { - servicedata_ = null; - onChanged(); - } else { - servicedata_ = null; - servicedataBuilder_ = null; - } - - return this; - } - /** - *
-     * Fee charged for provding service by Hedera
-     * 
- * - * .proto.FeeComponents servicedata = 3; - */ - public com.hederahashgraph.api.proto.java.FeeComponents.Builder getServicedataBuilder() { - - onChanged(); - return getServicedataFieldBuilder().getBuilder(); - } - /** - *
-     * Fee charged for provding service by Hedera
-     * 
- * - * .proto.FeeComponents servicedata = 3; - */ - public com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder getServicedataOrBuilder() { - if (servicedataBuilder_ != null) { - return servicedataBuilder_.getMessageOrBuilder(); - } else { - return servicedata_ == null ? - com.hederahashgraph.api.proto.java.FeeComponents.getDefaultInstance() : servicedata_; - } - } - /** - *
-     * Fee charged for provding service by Hedera
-     * 
- * - * .proto.FeeComponents servicedata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder> - getServicedataFieldBuilder() { - if (servicedataBuilder_ == null) { - servicedataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FeeComponents, com.hederahashgraph.api.proto.java.FeeComponents.Builder, com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder>( - getServicedata(), - getParentForChildren(), - isClean()); - servicedata_ = null; - } - return servicedataBuilder_; - } - @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:proto.FeeData) - } - - // @@protoc_insertion_point(class_scope:proto.FeeData) - private static final com.hederahashgraph.api.proto.java.FeeData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.FeeData(); - } - - public static com.hederahashgraph.api.proto.java.FeeData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeeData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeeData(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.hederahashgraph.api.proto.java.FeeData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/FeeDataOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/FeeDataOrBuilder.java deleted file mode 100644 index 6e9d97acb..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/FeeDataOrBuilder.java +++ /dev/null @@ -1,84 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface FeeDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.FeeData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Fee charged by Node for this functionality
-   * 
- * - * .proto.FeeComponents nodedata = 1; - */ - boolean hasNodedata(); - /** - *
-   * Fee charged by Node for this functionality
-   * 
- * - * .proto.FeeComponents nodedata = 1; - */ - com.hederahashgraph.api.proto.java.FeeComponents getNodedata(); - /** - *
-   * Fee charged by Node for this functionality
-   * 
- * - * .proto.FeeComponents nodedata = 1; - */ - com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder getNodedataOrBuilder(); - - /** - *
-   * Fee charged for network operations by Hedera
-   * 
- * - * .proto.FeeComponents networkdata = 2; - */ - boolean hasNetworkdata(); - /** - *
-   * Fee charged for network operations by Hedera
-   * 
- * - * .proto.FeeComponents networkdata = 2; - */ - com.hederahashgraph.api.proto.java.FeeComponents getNetworkdata(); - /** - *
-   * Fee charged for network operations by Hedera
-   * 
- * - * .proto.FeeComponents networkdata = 2; - */ - com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder getNetworkdataOrBuilder(); - - /** - *
-   * Fee charged for provding service by Hedera
-   * 
- * - * .proto.FeeComponents servicedata = 3; - */ - boolean hasServicedata(); - /** - *
-   * Fee charged for provding service by Hedera
-   * 
- * - * .proto.FeeComponents servicedata = 3; - */ - com.hederahashgraph.api.proto.java.FeeComponents getServicedata(); - /** - *
-   * Fee charged for provding service by Hedera
-   * 
- * - * .proto.FeeComponents servicedata = 3; - */ - com.hederahashgraph.api.proto.java.FeeComponentsOrBuilder getServicedataOrBuilder(); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/FeeSchedule.java b/target/generated-sources/com/hederahashgraph/api/proto/java/FeeSchedule.java deleted file mode 100644 index 17442f7b5..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/FeeSchedule.java +++ /dev/null @@ -1,999 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * The fee schedule for a specific hedera functionality and the time period this fee will be valid for the transaction 
- * 
- * - * Protobuf type {@code proto.FeeSchedule} - */ -public final class FeeSchedule extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.FeeSchedule) - FeeScheduleOrBuilder { -private static final long serialVersionUID = 0L; - // Use FeeSchedule.newBuilder() to construct. - private FeeSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FeeSchedule() { - transactionFeeSchedule_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FeeSchedule( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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)) { - transactionFeeSchedule_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - transactionFeeSchedule_.add( - input.readMessage(com.hederahashgraph.api.proto.java.TransactionFeeSchedule.parser(), extensionRegistry)); - break; - } - case 18: { - com.hederahashgraph.api.proto.java.Duration.Builder subBuilder = null; - if (feeScheduleValidityDuration_ != null) { - subBuilder = feeScheduleValidityDuration_.toBuilder(); - } - feeScheduleValidityDuration_ = input.readMessage(com.hederahashgraph.api.proto.java.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(feeScheduleValidityDuration_); - feeScheduleValidityDuration_ = subBuilder.buildPartial(); - } - - 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)) { - transactionFeeSchedule_ = java.util.Collections.unmodifiableList(transactionFeeSchedule_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeSchedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeSchedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.FeeSchedule.class, com.hederahashgraph.api.proto.java.FeeSchedule.Builder.class); - } - - private int bitField0_; - public static final int TRANSACTIONFEESCHEDULE_FIELD_NUMBER = 1; - private java.util.List transactionFeeSchedule_; - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public java.util.List getTransactionFeeScheduleList() { - return transactionFeeSchedule_; - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public java.util.List - getTransactionFeeScheduleOrBuilderList() { - return transactionFeeSchedule_; - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public int getTransactionFeeScheduleCount() { - return transactionFeeSchedule_.size(); - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public com.hederahashgraph.api.proto.java.TransactionFeeSchedule getTransactionFeeSchedule(int index) { - return transactionFeeSchedule_.get(index); - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public com.hederahashgraph.api.proto.java.TransactionFeeScheduleOrBuilder getTransactionFeeScheduleOrBuilder( - int index) { - return transactionFeeSchedule_.get(index); - } - - public static final int FEESCHEDULEVALIDITYDURATION_FIELD_NUMBER = 2; - private com.hederahashgraph.api.proto.java.Duration feeScheduleValidityDuration_; - /** - *
-   * the valid duration for the fee schedule
-   * 
- * - * .proto.Duration feeScheduleValidityDuration = 2; - */ - public boolean hasFeeScheduleValidityDuration() { - return feeScheduleValidityDuration_ != null; - } - /** - *
-   * the valid duration for the fee schedule
-   * 
- * - * .proto.Duration feeScheduleValidityDuration = 2; - */ - public com.hederahashgraph.api.proto.java.Duration getFeeScheduleValidityDuration() { - return feeScheduleValidityDuration_ == null ? com.hederahashgraph.api.proto.java.Duration.getDefaultInstance() : feeScheduleValidityDuration_; - } - /** - *
-   * the valid duration for the fee schedule
-   * 
- * - * .proto.Duration feeScheduleValidityDuration = 2; - */ - public com.hederahashgraph.api.proto.java.DurationOrBuilder getFeeScheduleValidityDurationOrBuilder() { - return getFeeScheduleValidityDuration(); - } - - 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 < transactionFeeSchedule_.size(); i++) { - output.writeMessage(1, transactionFeeSchedule_.get(i)); - } - if (feeScheduleValidityDuration_ != null) { - output.writeMessage(2, getFeeScheduleValidityDuration()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < transactionFeeSchedule_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, transactionFeeSchedule_.get(i)); - } - if (feeScheduleValidityDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFeeScheduleValidityDuration()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.hederahashgraph.api.proto.java.FeeSchedule)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.FeeSchedule other = (com.hederahashgraph.api.proto.java.FeeSchedule) obj; - - boolean result = true; - result = result && getTransactionFeeScheduleList() - .equals(other.getTransactionFeeScheduleList()); - result = result && (hasFeeScheduleValidityDuration() == other.hasFeeScheduleValidityDuration()); - if (hasFeeScheduleValidityDuration()) { - result = result && getFeeScheduleValidityDuration() - .equals(other.getFeeScheduleValidityDuration()); - } - 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 (getTransactionFeeScheduleCount() > 0) { - hash = (37 * hash) + TRANSACTIONFEESCHEDULE_FIELD_NUMBER; - hash = (53 * hash) + getTransactionFeeScheduleList().hashCode(); - } - if (hasFeeScheduleValidityDuration()) { - hash = (37 * hash) + FEESCHEDULEVALIDITYDURATION_FIELD_NUMBER; - hash = (53 * hash) + getFeeScheduleValidityDuration().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.FeeSchedule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.FeeSchedule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FeeSchedule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.FeeSchedule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FeeSchedule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.FeeSchedule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FeeSchedule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.FeeSchedule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FeeSchedule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.FeeSchedule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FeeSchedule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.FeeSchedule parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.FeeSchedule prototype) { - return 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; - } - /** - *
-   * The fee schedule for a specific hedera functionality and the time period this fee will be valid for the transaction 
-   * 
- * - * Protobuf type {@code proto.FeeSchedule} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.FeeSchedule) - com.hederahashgraph.api.proto.java.FeeScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeSchedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeSchedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.FeeSchedule.class, com.hederahashgraph.api.proto.java.FeeSchedule.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.FeeSchedule.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTransactionFeeScheduleFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (transactionFeeScheduleBuilder_ == null) { - transactionFeeSchedule_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - transactionFeeScheduleBuilder_.clear(); - } - if (feeScheduleValidityDurationBuilder_ == null) { - feeScheduleValidityDuration_ = null; - } else { - feeScheduleValidityDuration_ = null; - feeScheduleValidityDurationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FeeSchedule_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.FeeSchedule getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.FeeSchedule.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.FeeSchedule build() { - com.hederahashgraph.api.proto.java.FeeSchedule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.FeeSchedule buildPartial() { - com.hederahashgraph.api.proto.java.FeeSchedule result = new com.hederahashgraph.api.proto.java.FeeSchedule(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (transactionFeeScheduleBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - transactionFeeSchedule_ = java.util.Collections.unmodifiableList(transactionFeeSchedule_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.transactionFeeSchedule_ = transactionFeeSchedule_; - } else { - result.transactionFeeSchedule_ = transactionFeeScheduleBuilder_.build(); - } - if (feeScheduleValidityDurationBuilder_ == null) { - result.feeScheduleValidityDuration_ = feeScheduleValidityDuration_; - } else { - result.feeScheduleValidityDuration_ = feeScheduleValidityDurationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 com.hederahashgraph.api.proto.java.FeeSchedule) { - return mergeFrom((com.hederahashgraph.api.proto.java.FeeSchedule)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.FeeSchedule other) { - if (other == com.hederahashgraph.api.proto.java.FeeSchedule.getDefaultInstance()) return this; - if (transactionFeeScheduleBuilder_ == null) { - if (!other.transactionFeeSchedule_.isEmpty()) { - if (transactionFeeSchedule_.isEmpty()) { - transactionFeeSchedule_ = other.transactionFeeSchedule_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTransactionFeeScheduleIsMutable(); - transactionFeeSchedule_.addAll(other.transactionFeeSchedule_); - } - onChanged(); - } - } else { - if (!other.transactionFeeSchedule_.isEmpty()) { - if (transactionFeeScheduleBuilder_.isEmpty()) { - transactionFeeScheduleBuilder_.dispose(); - transactionFeeScheduleBuilder_ = null; - transactionFeeSchedule_ = other.transactionFeeSchedule_; - bitField0_ = (bitField0_ & ~0x00000001); - transactionFeeScheduleBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTransactionFeeScheduleFieldBuilder() : null; - } else { - transactionFeeScheduleBuilder_.addAllMessages(other.transactionFeeSchedule_); - } - } - } - if (other.hasFeeScheduleValidityDuration()) { - mergeFeeScheduleValidityDuration(other.getFeeScheduleValidityDuration()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.hederahashgraph.api.proto.java.FeeSchedule parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.FeeSchedule) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List transactionFeeSchedule_ = - java.util.Collections.emptyList(); - private void ensureTransactionFeeScheduleIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - transactionFeeSchedule_ = new java.util.ArrayList(transactionFeeSchedule_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.hederahashgraph.api.proto.java.TransactionFeeSchedule, com.hederahashgraph.api.proto.java.TransactionFeeSchedule.Builder, com.hederahashgraph.api.proto.java.TransactionFeeScheduleOrBuilder> transactionFeeScheduleBuilder_; - - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public java.util.List getTransactionFeeScheduleList() { - if (transactionFeeScheduleBuilder_ == null) { - return java.util.Collections.unmodifiableList(transactionFeeSchedule_); - } else { - return transactionFeeScheduleBuilder_.getMessageList(); - } - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public int getTransactionFeeScheduleCount() { - if (transactionFeeScheduleBuilder_ == null) { - return transactionFeeSchedule_.size(); - } else { - return transactionFeeScheduleBuilder_.getCount(); - } - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public com.hederahashgraph.api.proto.java.TransactionFeeSchedule getTransactionFeeSchedule(int index) { - if (transactionFeeScheduleBuilder_ == null) { - return transactionFeeSchedule_.get(index); - } else { - return transactionFeeScheduleBuilder_.getMessage(index); - } - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public Builder setTransactionFeeSchedule( - int index, com.hederahashgraph.api.proto.java.TransactionFeeSchedule value) { - if (transactionFeeScheduleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionFeeScheduleIsMutable(); - transactionFeeSchedule_.set(index, value); - onChanged(); - } else { - transactionFeeScheduleBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public Builder setTransactionFeeSchedule( - int index, com.hederahashgraph.api.proto.java.TransactionFeeSchedule.Builder builderForValue) { - if (transactionFeeScheduleBuilder_ == null) { - ensureTransactionFeeScheduleIsMutable(); - transactionFeeSchedule_.set(index, builderForValue.build()); - onChanged(); - } else { - transactionFeeScheduleBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public Builder addTransactionFeeSchedule(com.hederahashgraph.api.proto.java.TransactionFeeSchedule value) { - if (transactionFeeScheduleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionFeeScheduleIsMutable(); - transactionFeeSchedule_.add(value); - onChanged(); - } else { - transactionFeeScheduleBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public Builder addTransactionFeeSchedule( - int index, com.hederahashgraph.api.proto.java.TransactionFeeSchedule value) { - if (transactionFeeScheduleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionFeeScheduleIsMutable(); - transactionFeeSchedule_.add(index, value); - onChanged(); - } else { - transactionFeeScheduleBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public Builder addTransactionFeeSchedule( - com.hederahashgraph.api.proto.java.TransactionFeeSchedule.Builder builderForValue) { - if (transactionFeeScheduleBuilder_ == null) { - ensureTransactionFeeScheduleIsMutable(); - transactionFeeSchedule_.add(builderForValue.build()); - onChanged(); - } else { - transactionFeeScheduleBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public Builder addTransactionFeeSchedule( - int index, com.hederahashgraph.api.proto.java.TransactionFeeSchedule.Builder builderForValue) { - if (transactionFeeScheduleBuilder_ == null) { - ensureTransactionFeeScheduleIsMutable(); - transactionFeeSchedule_.add(index, builderForValue.build()); - onChanged(); - } else { - transactionFeeScheduleBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public Builder addAllTransactionFeeSchedule( - java.lang.Iterable values) { - if (transactionFeeScheduleBuilder_ == null) { - ensureTransactionFeeScheduleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transactionFeeSchedule_); - onChanged(); - } else { - transactionFeeScheduleBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public Builder clearTransactionFeeSchedule() { - if (transactionFeeScheduleBuilder_ == null) { - transactionFeeSchedule_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - transactionFeeScheduleBuilder_.clear(); - } - return this; - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public Builder removeTransactionFeeSchedule(int index) { - if (transactionFeeScheduleBuilder_ == null) { - ensureTransactionFeeScheduleIsMutable(); - transactionFeeSchedule_.remove(index); - onChanged(); - } else { - transactionFeeScheduleBuilder_.remove(index); - } - return this; - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public com.hederahashgraph.api.proto.java.TransactionFeeSchedule.Builder getTransactionFeeScheduleBuilder( - int index) { - return getTransactionFeeScheduleFieldBuilder().getBuilder(index); - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public com.hederahashgraph.api.proto.java.TransactionFeeScheduleOrBuilder getTransactionFeeScheduleOrBuilder( - int index) { - if (transactionFeeScheduleBuilder_ == null) { - return transactionFeeSchedule_.get(index); } else { - return transactionFeeScheduleBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public java.util.List - getTransactionFeeScheduleOrBuilderList() { - if (transactionFeeScheduleBuilder_ != null) { - return transactionFeeScheduleBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(transactionFeeSchedule_); - } - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public com.hederahashgraph.api.proto.java.TransactionFeeSchedule.Builder addTransactionFeeScheduleBuilder() { - return getTransactionFeeScheduleFieldBuilder().addBuilder( - com.hederahashgraph.api.proto.java.TransactionFeeSchedule.getDefaultInstance()); - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public com.hederahashgraph.api.proto.java.TransactionFeeSchedule.Builder addTransactionFeeScheduleBuilder( - int index) { - return getTransactionFeeScheduleFieldBuilder().addBuilder( - index, com.hederahashgraph.api.proto.java.TransactionFeeSchedule.getDefaultInstance()); - } - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - public java.util.List - getTransactionFeeScheduleBuilderList() { - return getTransactionFeeScheduleFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.hederahashgraph.api.proto.java.TransactionFeeSchedule, com.hederahashgraph.api.proto.java.TransactionFeeSchedule.Builder, com.hederahashgraph.api.proto.java.TransactionFeeScheduleOrBuilder> - getTransactionFeeScheduleFieldBuilder() { - if (transactionFeeScheduleBuilder_ == null) { - transactionFeeScheduleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.hederahashgraph.api.proto.java.TransactionFeeSchedule, com.hederahashgraph.api.proto.java.TransactionFeeSchedule.Builder, com.hederahashgraph.api.proto.java.TransactionFeeScheduleOrBuilder>( - transactionFeeSchedule_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - transactionFeeSchedule_ = null; - } - return transactionFeeScheduleBuilder_; - } - - private com.hederahashgraph.api.proto.java.Duration feeScheduleValidityDuration_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.DurationOrBuilder> feeScheduleValidityDurationBuilder_; - /** - *
-     * the valid duration for the fee schedule
-     * 
- * - * .proto.Duration feeScheduleValidityDuration = 2; - */ - public boolean hasFeeScheduleValidityDuration() { - return feeScheduleValidityDurationBuilder_ != null || feeScheduleValidityDuration_ != null; - } - /** - *
-     * the valid duration for the fee schedule
-     * 
- * - * .proto.Duration feeScheduleValidityDuration = 2; - */ - public com.hederahashgraph.api.proto.java.Duration getFeeScheduleValidityDuration() { - if (feeScheduleValidityDurationBuilder_ == null) { - return feeScheduleValidityDuration_ == null ? com.hederahashgraph.api.proto.java.Duration.getDefaultInstance() : feeScheduleValidityDuration_; - } else { - return feeScheduleValidityDurationBuilder_.getMessage(); - } - } - /** - *
-     * the valid duration for the fee schedule
-     * 
- * - * .proto.Duration feeScheduleValidityDuration = 2; - */ - public Builder setFeeScheduleValidityDuration(com.hederahashgraph.api.proto.java.Duration value) { - if (feeScheduleValidityDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - feeScheduleValidityDuration_ = value; - onChanged(); - } else { - feeScheduleValidityDurationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * the valid duration for the fee schedule
-     * 
- * - * .proto.Duration feeScheduleValidityDuration = 2; - */ - public Builder setFeeScheduleValidityDuration( - com.hederahashgraph.api.proto.java.Duration.Builder builderForValue) { - if (feeScheduleValidityDurationBuilder_ == null) { - feeScheduleValidityDuration_ = builderForValue.build(); - onChanged(); - } else { - feeScheduleValidityDurationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * the valid duration for the fee schedule
-     * 
- * - * .proto.Duration feeScheduleValidityDuration = 2; - */ - public Builder mergeFeeScheduleValidityDuration(com.hederahashgraph.api.proto.java.Duration value) { - if (feeScheduleValidityDurationBuilder_ == null) { - if (feeScheduleValidityDuration_ != null) { - feeScheduleValidityDuration_ = - com.hederahashgraph.api.proto.java.Duration.newBuilder(feeScheduleValidityDuration_).mergeFrom(value).buildPartial(); - } else { - feeScheduleValidityDuration_ = value; - } - onChanged(); - } else { - feeScheduleValidityDurationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * the valid duration for the fee schedule
-     * 
- * - * .proto.Duration feeScheduleValidityDuration = 2; - */ - public Builder clearFeeScheduleValidityDuration() { - if (feeScheduleValidityDurationBuilder_ == null) { - feeScheduleValidityDuration_ = null; - onChanged(); - } else { - feeScheduleValidityDuration_ = null; - feeScheduleValidityDurationBuilder_ = null; - } - - return this; - } - /** - *
-     * the valid duration for the fee schedule
-     * 
- * - * .proto.Duration feeScheduleValidityDuration = 2; - */ - public com.hederahashgraph.api.proto.java.Duration.Builder getFeeScheduleValidityDurationBuilder() { - - onChanged(); - return getFeeScheduleValidityDurationFieldBuilder().getBuilder(); - } - /** - *
-     * the valid duration for the fee schedule
-     * 
- * - * .proto.Duration feeScheduleValidityDuration = 2; - */ - public com.hederahashgraph.api.proto.java.DurationOrBuilder getFeeScheduleValidityDurationOrBuilder() { - if (feeScheduleValidityDurationBuilder_ != null) { - return feeScheduleValidityDurationBuilder_.getMessageOrBuilder(); - } else { - return feeScheduleValidityDuration_ == null ? - com.hederahashgraph.api.proto.java.Duration.getDefaultInstance() : feeScheduleValidityDuration_; - } - } - /** - *
-     * the valid duration for the fee schedule
-     * 
- * - * .proto.Duration feeScheduleValidityDuration = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.DurationOrBuilder> - getFeeScheduleValidityDurationFieldBuilder() { - if (feeScheduleValidityDurationBuilder_ == null) { - feeScheduleValidityDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.DurationOrBuilder>( - getFeeScheduleValidityDuration(), - getParentForChildren(), - isClean()); - feeScheduleValidityDuration_ = null; - } - return feeScheduleValidityDurationBuilder_; - } - @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:proto.FeeSchedule) - } - - // @@protoc_insertion_point(class_scope:proto.FeeSchedule) - private static final com.hederahashgraph.api.proto.java.FeeSchedule DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.FeeSchedule(); - } - - public static com.hederahashgraph.api.proto.java.FeeSchedule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeeSchedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeeSchedule(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.hederahashgraph.api.proto.java.FeeSchedule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/FeeScheduleOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/FeeScheduleOrBuilder.java deleted file mode 100644 index 6b6ef6c41..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/FeeScheduleOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface FeeScheduleOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.FeeSchedule) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - java.util.List - getTransactionFeeScheduleList(); - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - com.hederahashgraph.api.proto.java.TransactionFeeSchedule getTransactionFeeSchedule(int index); - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - int getTransactionFeeScheduleCount(); - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - java.util.List - getTransactionFeeScheduleOrBuilderList(); - /** - * repeated .proto.TransactionFeeSchedule transactionFeeSchedule = 1; - */ - com.hederahashgraph.api.proto.java.TransactionFeeScheduleOrBuilder getTransactionFeeScheduleOrBuilder( - int index); - - /** - *
-   * the valid duration for the fee schedule
-   * 
- * - * .proto.Duration feeScheduleValidityDuration = 2; - */ - boolean hasFeeScheduleValidityDuration(); - /** - *
-   * the valid duration for the fee schedule
-   * 
- * - * .proto.Duration feeScheduleValidityDuration = 2; - */ - com.hederahashgraph.api.proto.java.Duration getFeeScheduleValidityDuration(); - /** - *
-   * the valid duration for the fee schedule
-   * 
- * - * .proto.Duration feeScheduleValidityDuration = 2; - */ - com.hederahashgraph.api.proto.java.DurationOrBuilder getFeeScheduleValidityDurationOrBuilder(); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/FileID.java b/target/generated-sources/com/hederahashgraph/api/proto/java/FileID.java deleted file mode 100644 index e98b54e7d..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/FileID.java +++ /dev/null @@ -1,647 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * The ID for a file  
- * 
- * - * Protobuf type {@code proto.FileID} - */ -public final class FileID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.FileID) - FileIDOrBuilder { -private static final long serialVersionUID = 0L; - // Use FileID.newBuilder() to construct. - private FileID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FileID() { - shardNum_ = 0L; - realmNum_ = 0L; - fileNum_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FileID( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder 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: { - - shardNum_ = input.readInt64(); - break; - } - case 16: { - - realmNum_ = input.readInt64(); - break; - } - case 24: { - - fileNum_ = input.readInt64(); - 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 com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FileID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FileID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.FileID.class, com.hederahashgraph.api.proto.java.FileID.Builder.class); - } - - public static final int SHARDNUM_FIELD_NUMBER = 1; - private long shardNum_; - /** - *
-   *the shard number (nonnegative)
-   * 
- * - * int64 shardNum = 1; - */ - public long getShardNum() { - return shardNum_; - } - - public static final int REALMNUM_FIELD_NUMBER = 2; - private long realmNum_; - /** - *
-   *the realm number (nonnegative)
-   * 
- * - * int64 realmNum = 2; - */ - public long getRealmNum() { - return realmNum_; - } - - public static final int FILENUM_FIELD_NUMBER = 3; - private long fileNum_; - /** - *
-   *a nonnegative number unique within its realm
-   * 
- * - * int64 fileNum = 3; - */ - public long getFileNum() { - return fileNum_; - } - - 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 (shardNum_ != 0L) { - output.writeInt64(1, shardNum_); - } - if (realmNum_ != 0L) { - output.writeInt64(2, realmNum_); - } - if (fileNum_ != 0L) { - output.writeInt64(3, fileNum_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (shardNum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, shardNum_); - } - if (realmNum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, realmNum_); - } - if (fileNum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, fileNum_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.hederahashgraph.api.proto.java.FileID)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.FileID other = (com.hederahashgraph.api.proto.java.FileID) obj; - - boolean result = true; - result = result && (getShardNum() - == other.getShardNum()); - result = result && (getRealmNum() - == other.getRealmNum()); - result = result && (getFileNum() - == other.getFileNum()); - 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) + SHARDNUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getShardNum()); - hash = (37 * hash) + REALMNUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRealmNum()); - hash = (37 * hash) + FILENUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFileNum()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.FileID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.FileID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FileID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.FileID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FileID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.FileID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FileID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.FileID parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FileID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.FileID parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.FileID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.FileID parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.FileID prototype) { - return 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; - } - /** - *
-   * The ID for a file  
-   * 
- * - * Protobuf type {@code proto.FileID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.FileID) - com.hederahashgraph.api.proto.java.FileIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FileID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FileID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.FileID.class, com.hederahashgraph.api.proto.java.FileID.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.FileID.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - shardNum_ = 0L; - - realmNum_ = 0L; - - fileNum_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_FileID_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.FileID getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.FileID build() { - com.hederahashgraph.api.proto.java.FileID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.FileID buildPartial() { - com.hederahashgraph.api.proto.java.FileID result = new com.hederahashgraph.api.proto.java.FileID(this); - result.shardNum_ = shardNum_; - result.realmNum_ = realmNum_; - result.fileNum_ = fileNum_; - 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 com.hederahashgraph.api.proto.java.FileID) { - return mergeFrom((com.hederahashgraph.api.proto.java.FileID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.FileID other) { - if (other == com.hederahashgraph.api.proto.java.FileID.getDefaultInstance()) return this; - if (other.getShardNum() != 0L) { - setShardNum(other.getShardNum()); - } - if (other.getRealmNum() != 0L) { - setRealmNum(other.getRealmNum()); - } - if (other.getFileNum() != 0L) { - setFileNum(other.getFileNum()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.hederahashgraph.api.proto.java.FileID parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.FileID) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long shardNum_ ; - /** - *
-     *the shard number (nonnegative)
-     * 
- * - * int64 shardNum = 1; - */ - public long getShardNum() { - return shardNum_; - } - /** - *
-     *the shard number (nonnegative)
-     * 
- * - * int64 shardNum = 1; - */ - public Builder setShardNum(long value) { - - shardNum_ = value; - onChanged(); - return this; - } - /** - *
-     *the shard number (nonnegative)
-     * 
- * - * int64 shardNum = 1; - */ - public Builder clearShardNum() { - - shardNum_ = 0L; - onChanged(); - return this; - } - - private long realmNum_ ; - /** - *
-     *the realm number (nonnegative)
-     * 
- * - * int64 realmNum = 2; - */ - public long getRealmNum() { - return realmNum_; - } - /** - *
-     *the realm number (nonnegative)
-     * 
- * - * int64 realmNum = 2; - */ - public Builder setRealmNum(long value) { - - realmNum_ = value; - onChanged(); - return this; - } - /** - *
-     *the realm number (nonnegative)
-     * 
- * - * int64 realmNum = 2; - */ - public Builder clearRealmNum() { - - realmNum_ = 0L; - onChanged(); - return this; - } - - private long fileNum_ ; - /** - *
-     *a nonnegative number unique within its realm
-     * 
- * - * int64 fileNum = 3; - */ - public long getFileNum() { - return fileNum_; - } - /** - *
-     *a nonnegative number unique within its realm
-     * 
- * - * int64 fileNum = 3; - */ - public Builder setFileNum(long value) { - - fileNum_ = value; - onChanged(); - return this; - } - /** - *
-     *a nonnegative number unique within its realm
-     * 
- * - * int64 fileNum = 3; - */ - public Builder clearFileNum() { - - fileNum_ = 0L; - 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:proto.FileID) - } - - // @@protoc_insertion_point(class_scope:proto.FileID) - private static final com.hederahashgraph.api.proto.java.FileID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.FileID(); - } - - public static com.hederahashgraph.api.proto.java.FileID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FileID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FileID(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.hederahashgraph.api.proto.java.FileID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/FileIDOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/FileIDOrBuilder.java deleted file mode 100644 index 3c1bb6f6d..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/FileIDOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface FileIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.FileID) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   *the shard number (nonnegative)
-   * 
- * - * int64 shardNum = 1; - */ - long getShardNum(); - - /** - *
-   *the realm number (nonnegative)
-   * 
- * - * int64 realmNum = 2; - */ - long getRealmNum(); - - /** - *
-   *a nonnegative number unique within its realm
-   * 
- * - * int64 fileNum = 3; - */ - long getFileNum(); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/HederaFunctionality.java b/target/generated-sources/com/hederahashgraph/api/proto/java/HederaFunctionality.java deleted file mode 100644 index f1855c576..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/HederaFunctionality.java +++ /dev/null @@ -1,549 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * The functionalities provided by hedera hashgraph 
- * 
- * - * Protobuf enum {@code proto.HederaFunctionality} - */ -public enum HederaFunctionality - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * crypto create account
-   * 
- * - * CryptoCreates = 0; - */ - CryptoCreates(0), - /** - *
-   * crypto transfer
-   * 
- * - * CryptoTransfer = 1; - */ - CryptoTransfer(1), - /** - *
-   * crypto update account
-   * 
- * - * CryptoUpdate = 2; - */ - CryptoUpdate(2), - /** - *
-   * crypto delete account
-   * 
- * - * CryptoDelete = 3; - */ - CryptoDelete(3), - /** - *
-   * crypto add claim to the account
-   * 
- * - * CryptoAddClaim = 4; - */ - CryptoAddClaim(4), - /** - *
-   * crypto delete claim to the account
-   * 
- * - * CryptoDeletClaim = 5; - */ - CryptoDeletClaim(5), - /** - *
-   * Smart Contract Call
-   * 
- * - * ContractCall = 6; - */ - ContractCall(6), - /** - *
-   * Smart Contract Create Contract
-   * 
- * - * ContractCreate = 7; - */ - ContractCreate(7), - /** - *
-   * Smart Contract update contract
-   * 
- * - * ContractUpdate = 8; - */ - ContractUpdate(8), - /** - *
-   * File Operation create file
-   * 
- * - * FileCreate = 9; - */ - FileCreate(9), - /** - *
-   * File Operation append file
-   * 
- * - * FileAppend = 10; - */ - FileAppend(10), - /** - *
-   * File Operation update file
-   * 
- * - * FileUpdate = 11; - */ - FileUpdate(11), - /** - *
-   * File Operation delete file
-   * 
- * - * FileDelete = 12; - */ - FileDelete(12), - /** - *
-   * crypto get account balance
-   * 
- * - * CryptoGetAccountBalance = 13; - */ - CryptoGetAccountBalance(13), - /** - *
-   * crypto get account record
-   * 
- * - * CryptoGetAccountRecords = 14; - */ - CryptoGetAccountRecords(14), - /** - *
-   * Crypto get info
-   * 
- * - * CryptoGetInfo = 15; - */ - CryptoGetInfo(15), - /** - *
-   * Smart Contract Call
-   * 
- * - * ContractCallLocal = 16; - */ - ContractCallLocal(16), - /** - *
-   * Smart Contract get info
-   * 
- * - * ContractGetInfo = 17; - */ - ContractGetInfo(17), - /** - *
-   * Smart Contract, get the byte code
-   * 
- * - * ContractGetBytecode = 18; - */ - ContractGetBytecode(18), - /** - *
-   * Smart Contract, get by solidity ID
-   * 
- * - * GetBySolidityID = 19; - */ - GetBySolidityID(19), - /** - *
-   * Smart Contract, get by key
-   * 
- * - * GetByKey = 20; - */ - GetByKey(20), - /** - *
-   * Crypto get the claim
-   * 
- * - * CryptoGetClaim = 21; - */ - CryptoGetClaim(21), - /** - *
-   * Cryto, get the stakers for the node
-   * 
- * - * CryptoGetStakers = 22; - */ - CryptoGetStakers(22), - /** - *
-   * File Operations get file contents
-   * 
- * - * FileGetContents = 23; - */ - FileGetContents(23), - /** - *
-   * File Operations get the info of the file
-   * 
- * - * FileGetInfo = 24; - */ - FileGetInfo(24), - /** - *
-   * Crypto get the transaction records
-   * 
- * - * TransactionGetRecord = 25; - */ - TransactionGetRecord(25), - /** - * ContractGetRecords = 26; - */ - ContractGetRecords(26), - /** - * CryptoCreate = 27; - */ - CryptoCreate(27), - UNRECOGNIZED(-1), - ; - - /** - *
-   * crypto create account
-   * 
- * - * CryptoCreates = 0; - */ - public static final int CryptoCreates_VALUE = 0; - /** - *
-   * crypto transfer
-   * 
- * - * CryptoTransfer = 1; - */ - public static final int CryptoTransfer_VALUE = 1; - /** - *
-   * crypto update account
-   * 
- * - * CryptoUpdate = 2; - */ - public static final int CryptoUpdate_VALUE = 2; - /** - *
-   * crypto delete account
-   * 
- * - * CryptoDelete = 3; - */ - public static final int CryptoDelete_VALUE = 3; - /** - *
-   * crypto add claim to the account
-   * 
- * - * CryptoAddClaim = 4; - */ - public static final int CryptoAddClaim_VALUE = 4; - /** - *
-   * crypto delete claim to the account
-   * 
- * - * CryptoDeletClaim = 5; - */ - public static final int CryptoDeletClaim_VALUE = 5; - /** - *
-   * Smart Contract Call
-   * 
- * - * ContractCall = 6; - */ - public static final int ContractCall_VALUE = 6; - /** - *
-   * Smart Contract Create Contract
-   * 
- * - * ContractCreate = 7; - */ - public static final int ContractCreate_VALUE = 7; - /** - *
-   * Smart Contract update contract
-   * 
- * - * ContractUpdate = 8; - */ - public static final int ContractUpdate_VALUE = 8; - /** - *
-   * File Operation create file
-   * 
- * - * FileCreate = 9; - */ - public static final int FileCreate_VALUE = 9; - /** - *
-   * File Operation append file
-   * 
- * - * FileAppend = 10; - */ - public static final int FileAppend_VALUE = 10; - /** - *
-   * File Operation update file
-   * 
- * - * FileUpdate = 11; - */ - public static final int FileUpdate_VALUE = 11; - /** - *
-   * File Operation delete file
-   * 
- * - * FileDelete = 12; - */ - public static final int FileDelete_VALUE = 12; - /** - *
-   * crypto get account balance
-   * 
- * - * CryptoGetAccountBalance = 13; - */ - public static final int CryptoGetAccountBalance_VALUE = 13; - /** - *
-   * crypto get account record
-   * 
- * - * CryptoGetAccountRecords = 14; - */ - public static final int CryptoGetAccountRecords_VALUE = 14; - /** - *
-   * Crypto get info
-   * 
- * - * CryptoGetInfo = 15; - */ - public static final int CryptoGetInfo_VALUE = 15; - /** - *
-   * Smart Contract Call
-   * 
- * - * ContractCallLocal = 16; - */ - public static final int ContractCallLocal_VALUE = 16; - /** - *
-   * Smart Contract get info
-   * 
- * - * ContractGetInfo = 17; - */ - public static final int ContractGetInfo_VALUE = 17; - /** - *
-   * Smart Contract, get the byte code
-   * 
- * - * ContractGetBytecode = 18; - */ - public static final int ContractGetBytecode_VALUE = 18; - /** - *
-   * Smart Contract, get by solidity ID
-   * 
- * - * GetBySolidityID = 19; - */ - public static final int GetBySolidityID_VALUE = 19; - /** - *
-   * Smart Contract, get by key
-   * 
- * - * GetByKey = 20; - */ - public static final int GetByKey_VALUE = 20; - /** - *
-   * Crypto get the claim
-   * 
- * - * CryptoGetClaim = 21; - */ - public static final int CryptoGetClaim_VALUE = 21; - /** - *
-   * Cryto, get the stakers for the node
-   * 
- * - * CryptoGetStakers = 22; - */ - public static final int CryptoGetStakers_VALUE = 22; - /** - *
-   * File Operations get file contents
-   * 
- * - * FileGetContents = 23; - */ - public static final int FileGetContents_VALUE = 23; - /** - *
-   * File Operations get the info of the file
-   * 
- * - * FileGetInfo = 24; - */ - public static final int FileGetInfo_VALUE = 24; - /** - *
-   * Crypto get the transaction records
-   * 
- * - * TransactionGetRecord = 25; - */ - public static final int TransactionGetRecord_VALUE = 25; - /** - * ContractGetRecords = 26; - */ - public static final int ContractGetRecords_VALUE = 26; - /** - * CryptoCreate = 27; - */ - public static final int CryptoCreate_VALUE = 27; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HederaFunctionality valueOf(int value) { - return forNumber(value); - } - - public static HederaFunctionality forNumber(int value) { - switch (value) { - case 0: return CryptoCreates; - case 1: return CryptoTransfer; - case 2: return CryptoUpdate; - case 3: return CryptoDelete; - case 4: return CryptoAddClaim; - case 5: return CryptoDeletClaim; - case 6: return ContractCall; - case 7: return ContractCreate; - case 8: return ContractUpdate; - case 9: return FileCreate; - case 10: return FileAppend; - case 11: return FileUpdate; - case 12: return FileDelete; - case 13: return CryptoGetAccountBalance; - case 14: return CryptoGetAccountRecords; - case 15: return CryptoGetInfo; - case 16: return ContractCallLocal; - case 17: return ContractGetInfo; - case 18: return ContractGetBytecode; - case 19: return GetBySolidityID; - case 20: return GetByKey; - case 21: return CryptoGetClaim; - case 22: return CryptoGetStakers; - case 23: return FileGetContents; - case 24: return FileGetInfo; - case 25: return TransactionGetRecord; - case 26: return ContractGetRecords; - case 27: return CryptoCreate; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - HederaFunctionality> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HederaFunctionality findValueByNumber(int number) { - return HederaFunctionality.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.getDescriptor().getEnumTypes().get(0); - } - - private static final HederaFunctionality[] VALUES = values(); - - public static HederaFunctionality valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private HederaFunctionality(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.HederaFunctionality) -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/Key.java b/target/generated-sources/com/hederahashgraph/api/proto/java/Key.java deleted file mode 100644 index e46b01157..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/Key.java +++ /dev/null @@ -1,1527 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * A Key can be a public key from one of the three supported systems (ed25519, RSA-3072,  ECDSA with p384). Or, it can be the ID of a smart contract instance, which is authorized to act as if it had a key. If an account has an ed25519 key associated with it, then the corresponding private key must sign any transaction to transfer cryptocurrency out of it. And similarly for RSA and ECDSA.
- * A Key can be a smart contract ID, which means that smart contract is to authorize operations as if it had signed with a key that it owned. The smart contract doesn't actually have a key, and  doesn't actually sign a transaction. But it's as if a virtual transaction were created, and the smart contract signed it with a private key.
- * A key can be a "threshold key", which means a list of M keys, any N of which must sign in order for the threshold signature to be considered valid. The keys within a threshold signature may themselves be threshold signatures, to allow complex signature requirements.
- * A Key can be a list of keys. Their use is dependent on context. For example, a Hedera file is created with a list of keys, where all of them must sign a transaction to create or modify the file, but only one of them is needed to sign a transaction to delete the file. So it's a single list that sometimes acts as a 1-of-M threshold key, and sometimes acts as an M-of-M threshold key.
- * A Key can contain a ThresholdKey or KeyList, which in turn contain a Key, so this mutual recursion would allow nesting arbitrarily deep. The current API only allows the nesting to a depth of 3 levels, such as the key being a list of threshold keys, each of which contains a list of primitive keys (e.g., ed25519). In the future, this requirement may be relaxed, to allow deeper nesting.
- * 
- * - * Protobuf type {@code proto.Key} - */ -public final class Key extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.Key) - KeyOrBuilder { -private static final long serialVersionUID = 0L; - // Use Key.newBuilder() to construct. - private Key(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Key() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Key( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.hederahashgraph.api.proto.java.ContractID.Builder subBuilder = null; - if (keyCase_ == 1) { - subBuilder = ((com.hederahashgraph.api.proto.java.ContractID) key_).toBuilder(); - } - key_ = - input.readMessage(com.hederahashgraph.api.proto.java.ContractID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.ContractID) key_); - key_ = subBuilder.buildPartial(); - } - keyCase_ = 1; - break; - } - case 18: { - keyCase_ = 2; - key_ = input.readBytes(); - break; - } - case 26: { - keyCase_ = 3; - key_ = input.readBytes(); - break; - } - case 34: { - keyCase_ = 4; - key_ = input.readBytes(); - break; - } - case 42: { - com.hederahashgraph.api.proto.java.ThresholdKey.Builder subBuilder = null; - if (keyCase_ == 5) { - subBuilder = ((com.hederahashgraph.api.proto.java.ThresholdKey) key_).toBuilder(); - } - key_ = - input.readMessage(com.hederahashgraph.api.proto.java.ThresholdKey.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.ThresholdKey) key_); - key_ = subBuilder.buildPartial(); - } - keyCase_ = 5; - break; - } - case 50: { - com.hederahashgraph.api.proto.java.KeyList.Builder subBuilder = null; - if (keyCase_ == 6) { - subBuilder = ((com.hederahashgraph.api.proto.java.KeyList) key_).toBuilder(); - } - key_ = - input.readMessage(com.hederahashgraph.api.proto.java.KeyList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.KeyList) key_); - key_ = subBuilder.buildPartial(); - } - keyCase_ = 6; - 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 com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_Key_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_Key_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.Key.class, com.hederahashgraph.api.proto.java.Key.Builder.class); - } - - private int keyCase_ = 0; - private java.lang.Object key_; - public enum KeyCase - implements com.google.protobuf.Internal.EnumLite { - CONTRACTID(1), - ED25519(2), - RSA_3072(3), - ECDSA_384(4), - THRESHOLDKEY(5), - KEYLIST(6), - KEY_NOT_SET(0); - private final int value; - private KeyCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static KeyCase valueOf(int value) { - return forNumber(value); - } - - public static KeyCase forNumber(int value) { - switch (value) { - case 1: return CONTRACTID; - case 2: return ED25519; - case 3: return RSA_3072; - case 4: return ECDSA_384; - case 5: return THRESHOLDKEY; - case 6: return KEYLIST; - case 0: return KEY_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public KeyCase - getKeyCase() { - return KeyCase.forNumber( - keyCase_); - } - - public static final int CONTRACTID_FIELD_NUMBER = 1; - /** - *
-   * smart contract instance that is authorized as if it had signed with a key
-   * 
- * - * .proto.ContractID contractID = 1; - */ - public boolean hasContractID() { - return keyCase_ == 1; - } - /** - *
-   * smart contract instance that is authorized as if it had signed with a key
-   * 
- * - * .proto.ContractID contractID = 1; - */ - public com.hederahashgraph.api.proto.java.ContractID getContractID() { - if (keyCase_ == 1) { - return (com.hederahashgraph.api.proto.java.ContractID) key_; - } - return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } - /** - *
-   * smart contract instance that is authorized as if it had signed with a key
-   * 
- * - * .proto.ContractID contractID = 1; - */ - public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() { - if (keyCase_ == 1) { - return (com.hederahashgraph.api.proto.java.ContractID) key_; - } - return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } - - public static final int ED25519_FIELD_NUMBER = 2; - /** - *
-   * ed25519 public key
-   * 
- * - * bytes ed25519 = 2; - */ - public com.google.protobuf.ByteString getEd25519() { - if (keyCase_ == 2) { - return (com.google.protobuf.ByteString) key_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - public static final int RSA_3072_FIELD_NUMBER = 3; - /** - *
-   *RSA-3072 public key
-   * 
- * - * bytes RSA_3072 = 3; - */ - public com.google.protobuf.ByteString getRSA3072() { - if (keyCase_ == 3) { - return (com.google.protobuf.ByteString) key_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - public static final int ECDSA_384_FIELD_NUMBER = 4; - /** - *
-   *ECDSA with the p-384 curve public key
-   * 
- * - * bytes ECDSA_384 = 4; - */ - public com.google.protobuf.ByteString getECDSA384() { - if (keyCase_ == 4) { - return (com.google.protobuf.ByteString) key_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - public static final int THRESHOLDKEY_FIELD_NUMBER = 5; - /** - *
-   * a threshold N followed by a list of M keys, any N of which are required to form a valid signature
-   * 
- * - * .proto.ThresholdKey thresholdKey = 5; - */ - public boolean hasThresholdKey() { - return keyCase_ == 5; - } - /** - *
-   * a threshold N followed by a list of M keys, any N of which are required to form a valid signature
-   * 
- * - * .proto.ThresholdKey thresholdKey = 5; - */ - public com.hederahashgraph.api.proto.java.ThresholdKey getThresholdKey() { - if (keyCase_ == 5) { - return (com.hederahashgraph.api.proto.java.ThresholdKey) key_; - } - return com.hederahashgraph.api.proto.java.ThresholdKey.getDefaultInstance(); - } - /** - *
-   * a threshold N followed by a list of M keys, any N of which are required to form a valid signature
-   * 
- * - * .proto.ThresholdKey thresholdKey = 5; - */ - public com.hederahashgraph.api.proto.java.ThresholdKeyOrBuilder getThresholdKeyOrBuilder() { - if (keyCase_ == 5) { - return (com.hederahashgraph.api.proto.java.ThresholdKey) key_; - } - return com.hederahashgraph.api.proto.java.ThresholdKey.getDefaultInstance(); - } - - public static final int KEYLIST_FIELD_NUMBER = 6; - /** - *
-   * a list of Keys.
-   * 
- * - * .proto.KeyList keyList = 6; - */ - public boolean hasKeyList() { - return keyCase_ == 6; - } - /** - *
-   * a list of Keys.
-   * 
- * - * .proto.KeyList keyList = 6; - */ - public com.hederahashgraph.api.proto.java.KeyList getKeyList() { - if (keyCase_ == 6) { - return (com.hederahashgraph.api.proto.java.KeyList) key_; - } - return com.hederahashgraph.api.proto.java.KeyList.getDefaultInstance(); - } - /** - *
-   * a list of Keys.
-   * 
- * - * .proto.KeyList keyList = 6; - */ - public com.hederahashgraph.api.proto.java.KeyListOrBuilder getKeyListOrBuilder() { - if (keyCase_ == 6) { - return (com.hederahashgraph.api.proto.java.KeyList) key_; - } - return com.hederahashgraph.api.proto.java.KeyList.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 (keyCase_ == 1) { - output.writeMessage(1, (com.hederahashgraph.api.proto.java.ContractID) key_); - } - if (keyCase_ == 2) { - output.writeBytes( - 2, (com.google.protobuf.ByteString) key_); - } - if (keyCase_ == 3) { - output.writeBytes( - 3, (com.google.protobuf.ByteString) key_); - } - if (keyCase_ == 4) { - output.writeBytes( - 4, (com.google.protobuf.ByteString) key_); - } - if (keyCase_ == 5) { - output.writeMessage(5, (com.hederahashgraph.api.proto.java.ThresholdKey) key_); - } - if (keyCase_ == 6) { - output.writeMessage(6, (com.hederahashgraph.api.proto.java.KeyList) key_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (keyCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.hederahashgraph.api.proto.java.ContractID) key_); - } - if (keyCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 2, (com.google.protobuf.ByteString) key_); - } - if (keyCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 3, (com.google.protobuf.ByteString) key_); - } - if (keyCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 4, (com.google.protobuf.ByteString) key_); - } - if (keyCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.hederahashgraph.api.proto.java.ThresholdKey) key_); - } - if (keyCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.hederahashgraph.api.proto.java.KeyList) 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 com.hederahashgraph.api.proto.java.Key)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.Key other = (com.hederahashgraph.api.proto.java.Key) obj; - - boolean result = true; - result = result && getKeyCase().equals( - other.getKeyCase()); - if (!result) return false; - switch (keyCase_) { - case 1: - result = result && getContractID() - .equals(other.getContractID()); - break; - case 2: - result = result && getEd25519() - .equals(other.getEd25519()); - break; - case 3: - result = result && getRSA3072() - .equals(other.getRSA3072()); - break; - case 4: - result = result && getECDSA384() - .equals(other.getECDSA384()); - break; - case 5: - result = result && getThresholdKey() - .equals(other.getThresholdKey()); - break; - case 6: - result = result && getKeyList() - .equals(other.getKeyList()); - break; - case 0: - default: - } - 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(); - switch (keyCase_) { - case 1: - hash = (37 * hash) + CONTRACTID_FIELD_NUMBER; - hash = (53 * hash) + getContractID().hashCode(); - break; - case 2: - hash = (37 * hash) + ED25519_FIELD_NUMBER; - hash = (53 * hash) + getEd25519().hashCode(); - break; - case 3: - hash = (37 * hash) + RSA_3072_FIELD_NUMBER; - hash = (53 * hash) + getRSA3072().hashCode(); - break; - case 4: - hash = (37 * hash) + ECDSA_384_FIELD_NUMBER; - hash = (53 * hash) + getECDSA384().hashCode(); - break; - case 5: - hash = (37 * hash) + THRESHOLDKEY_FIELD_NUMBER; - hash = (53 * hash) + getThresholdKey().hashCode(); - break; - case 6: - hash = (37 * hash) + KEYLIST_FIELD_NUMBER; - hash = (53 * hash) + getKeyList().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.Key parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.Key parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.Key parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.Key parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.Key parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.Key parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.Key parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.Key parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.Key parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.Key parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.Key parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.Key parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.hederahashgraph.api.proto.java.Key prototype) { - return 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; - } - /** - *
-   * A Key can be a public key from one of the three supported systems (ed25519, RSA-3072,  ECDSA with p384). Or, it can be the ID of a smart contract instance, which is authorized to act as if it had a key. If an account has an ed25519 key associated with it, then the corresponding private key must sign any transaction to transfer cryptocurrency out of it. And similarly for RSA and ECDSA.
-   * A Key can be a smart contract ID, which means that smart contract is to authorize operations as if it had signed with a key that it owned. The smart contract doesn't actually have a key, and  doesn't actually sign a transaction. But it's as if a virtual transaction were created, and the smart contract signed it with a private key.
-   * A key can be a "threshold key", which means a list of M keys, any N of which must sign in order for the threshold signature to be considered valid. The keys within a threshold signature may themselves be threshold signatures, to allow complex signature requirements.
-   * A Key can be a list of keys. Their use is dependent on context. For example, a Hedera file is created with a list of keys, where all of them must sign a transaction to create or modify the file, but only one of them is needed to sign a transaction to delete the file. So it's a single list that sometimes acts as a 1-of-M threshold key, and sometimes acts as an M-of-M threshold key.
-   * A Key can contain a ThresholdKey or KeyList, which in turn contain a Key, so this mutual recursion would allow nesting arbitrarily deep. The current API only allows the nesting to a depth of 3 levels, such as the key being a list of threshold keys, each of which contains a list of primitive keys (e.g., ed25519). In the future, this requirement may be relaxed, to allow deeper nesting.
-   * 
- * - * Protobuf type {@code proto.Key} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.Key) - com.hederahashgraph.api.proto.java.KeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_Key_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_Key_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.Key.class, com.hederahashgraph.api.proto.java.Key.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.Key.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - keyCase_ = 0; - key_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_Key_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.Key getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.Key.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.Key build() { - com.hederahashgraph.api.proto.java.Key result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.Key buildPartial() { - com.hederahashgraph.api.proto.java.Key result = new com.hederahashgraph.api.proto.java.Key(this); - if (keyCase_ == 1) { - if (contractIDBuilder_ == null) { - result.key_ = key_; - } else { - result.key_ = contractIDBuilder_.build(); - } - } - if (keyCase_ == 2) { - result.key_ = key_; - } - if (keyCase_ == 3) { - result.key_ = key_; - } - if (keyCase_ == 4) { - result.key_ = key_; - } - if (keyCase_ == 5) { - if (thresholdKeyBuilder_ == null) { - result.key_ = key_; - } else { - result.key_ = thresholdKeyBuilder_.build(); - } - } - if (keyCase_ == 6) { - if (keyListBuilder_ == null) { - result.key_ = key_; - } else { - result.key_ = keyListBuilder_.build(); - } - } - result.keyCase_ = keyCase_; - 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 com.hederahashgraph.api.proto.java.Key) { - return mergeFrom((com.hederahashgraph.api.proto.java.Key)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.Key other) { - if (other == com.hederahashgraph.api.proto.java.Key.getDefaultInstance()) return this; - switch (other.getKeyCase()) { - case CONTRACTID: { - mergeContractID(other.getContractID()); - break; - } - case ED25519: { - setEd25519(other.getEd25519()); - break; - } - case RSA_3072: { - setRSA3072(other.getRSA3072()); - break; - } - case ECDSA_384: { - setECDSA384(other.getECDSA384()); - break; - } - case THRESHOLDKEY: { - mergeThresholdKey(other.getThresholdKey()); - break; - } - case KEYLIST: { - mergeKeyList(other.getKeyList()); - break; - } - case KEY_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 { - com.hederahashgraph.api.proto.java.Key parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.Key) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int keyCase_ = 0; - private java.lang.Object key_; - public KeyCase - getKeyCase() { - return KeyCase.forNumber( - keyCase_); - } - - public Builder clearKey() { - keyCase_ = 0; - key_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder> contractIDBuilder_; - /** - *
-     * smart contract instance that is authorized as if it had signed with a key
-     * 
- * - * .proto.ContractID contractID = 1; - */ - public boolean hasContractID() { - return keyCase_ == 1; - } - /** - *
-     * smart contract instance that is authorized as if it had signed with a key
-     * 
- * - * .proto.ContractID contractID = 1; - */ - public com.hederahashgraph.api.proto.java.ContractID getContractID() { - if (contractIDBuilder_ == null) { - if (keyCase_ == 1) { - return (com.hederahashgraph.api.proto.java.ContractID) key_; - } - return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } else { - if (keyCase_ == 1) { - return contractIDBuilder_.getMessage(); - } - return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } - } - /** - *
-     * smart contract instance that is authorized as if it had signed with a key
-     * 
- * - * .proto.ContractID contractID = 1; - */ - public Builder setContractID(com.hederahashgraph.api.proto.java.ContractID value) { - if (contractIDBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - key_ = value; - onChanged(); - } else { - contractIDBuilder_.setMessage(value); - } - keyCase_ = 1; - return this; - } - /** - *
-     * smart contract instance that is authorized as if it had signed with a key
-     * 
- * - * .proto.ContractID contractID = 1; - */ - public Builder setContractID( - com.hederahashgraph.api.proto.java.ContractID.Builder builderForValue) { - if (contractIDBuilder_ == null) { - key_ = builderForValue.build(); - onChanged(); - } else { - contractIDBuilder_.setMessage(builderForValue.build()); - } - keyCase_ = 1; - return this; - } - /** - *
-     * smart contract instance that is authorized as if it had signed with a key
-     * 
- * - * .proto.ContractID contractID = 1; - */ - public Builder mergeContractID(com.hederahashgraph.api.proto.java.ContractID value) { - if (contractIDBuilder_ == null) { - if (keyCase_ == 1 && - key_ != com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance()) { - key_ = com.hederahashgraph.api.proto.java.ContractID.newBuilder((com.hederahashgraph.api.proto.java.ContractID) key_) - .mergeFrom(value).buildPartial(); - } else { - key_ = value; - } - onChanged(); - } else { - if (keyCase_ == 1) { - contractIDBuilder_.mergeFrom(value); - } - contractIDBuilder_.setMessage(value); - } - keyCase_ = 1; - return this; - } - /** - *
-     * smart contract instance that is authorized as if it had signed with a key
-     * 
- * - * .proto.ContractID contractID = 1; - */ - public Builder clearContractID() { - if (contractIDBuilder_ == null) { - if (keyCase_ == 1) { - keyCase_ = 0; - key_ = null; - onChanged(); - } - } else { - if (keyCase_ == 1) { - keyCase_ = 0; - key_ = null; - } - contractIDBuilder_.clear(); - } - return this; - } - /** - *
-     * smart contract instance that is authorized as if it had signed with a key
-     * 
- * - * .proto.ContractID contractID = 1; - */ - public com.hederahashgraph.api.proto.java.ContractID.Builder getContractIDBuilder() { - return getContractIDFieldBuilder().getBuilder(); - } - /** - *
-     * smart contract instance that is authorized as if it had signed with a key
-     * 
- * - * .proto.ContractID contractID = 1; - */ - public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() { - if ((keyCase_ == 1) && (contractIDBuilder_ != null)) { - return contractIDBuilder_.getMessageOrBuilder(); - } else { - if (keyCase_ == 1) { - return (com.hederahashgraph.api.proto.java.ContractID) key_; - } - return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } - } - /** - *
-     * smart contract instance that is authorized as if it had signed with a key
-     * 
- * - * .proto.ContractID contractID = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder> - getContractIDFieldBuilder() { - if (contractIDBuilder_ == null) { - if (!(keyCase_ == 1)) { - key_ = com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); - } - contractIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>( - (com.hederahashgraph.api.proto.java.ContractID) key_, - getParentForChildren(), - isClean()); - key_ = null; - } - keyCase_ = 1; - onChanged();; - return contractIDBuilder_; - } - - /** - *
-     * ed25519 public key
-     * 
- * - * bytes ed25519 = 2; - */ - public com.google.protobuf.ByteString getEd25519() { - if (keyCase_ == 2) { - return (com.google.protobuf.ByteString) key_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - *
-     * ed25519 public key
-     * 
- * - * bytes ed25519 = 2; - */ - public Builder setEd25519(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - keyCase_ = 2; - key_ = value; - onChanged(); - return this; - } - /** - *
-     * ed25519 public key
-     * 
- * - * bytes ed25519 = 2; - */ - public Builder clearEd25519() { - if (keyCase_ == 2) { - keyCase_ = 0; - key_ = null; - onChanged(); - } - return this; - } - - /** - *
-     *RSA-3072 public key
-     * 
- * - * bytes RSA_3072 = 3; - */ - public com.google.protobuf.ByteString getRSA3072() { - if (keyCase_ == 3) { - return (com.google.protobuf.ByteString) key_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - *
-     *RSA-3072 public key
-     * 
- * - * bytes RSA_3072 = 3; - */ - public Builder setRSA3072(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - keyCase_ = 3; - key_ = value; - onChanged(); - return this; - } - /** - *
-     *RSA-3072 public key
-     * 
- * - * bytes RSA_3072 = 3; - */ - public Builder clearRSA3072() { - if (keyCase_ == 3) { - keyCase_ = 0; - key_ = null; - onChanged(); - } - return this; - } - - /** - *
-     *ECDSA with the p-384 curve public key
-     * 
- * - * bytes ECDSA_384 = 4; - */ - public com.google.protobuf.ByteString getECDSA384() { - if (keyCase_ == 4) { - return (com.google.protobuf.ByteString) key_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - *
-     *ECDSA with the p-384 curve public key
-     * 
- * - * bytes ECDSA_384 = 4; - */ - public Builder setECDSA384(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - keyCase_ = 4; - key_ = value; - onChanged(); - return this; - } - /** - *
-     *ECDSA with the p-384 curve public key
-     * 
- * - * bytes ECDSA_384 = 4; - */ - public Builder clearECDSA384() { - if (keyCase_ == 4) { - keyCase_ = 0; - key_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.ThresholdKey, com.hederahashgraph.api.proto.java.ThresholdKey.Builder, com.hederahashgraph.api.proto.java.ThresholdKeyOrBuilder> thresholdKeyBuilder_; - /** - *
-     * a threshold N followed by a list of M keys, any N of which are required to form a valid signature
-     * 
- * - * .proto.ThresholdKey thresholdKey = 5; - */ - public boolean hasThresholdKey() { - return keyCase_ == 5; - } - /** - *
-     * a threshold N followed by a list of M keys, any N of which are required to form a valid signature
-     * 
- * - * .proto.ThresholdKey thresholdKey = 5; - */ - public com.hederahashgraph.api.proto.java.ThresholdKey getThresholdKey() { - if (thresholdKeyBuilder_ == null) { - if (keyCase_ == 5) { - return (com.hederahashgraph.api.proto.java.ThresholdKey) key_; - } - return com.hederahashgraph.api.proto.java.ThresholdKey.getDefaultInstance(); - } else { - if (keyCase_ == 5) { - return thresholdKeyBuilder_.getMessage(); - } - return com.hederahashgraph.api.proto.java.ThresholdKey.getDefaultInstance(); - } - } - /** - *
-     * a threshold N followed by a list of M keys, any N of which are required to form a valid signature
-     * 
- * - * .proto.ThresholdKey thresholdKey = 5; - */ - public Builder setThresholdKey(com.hederahashgraph.api.proto.java.ThresholdKey value) { - if (thresholdKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - key_ = value; - onChanged(); - } else { - thresholdKeyBuilder_.setMessage(value); - } - keyCase_ = 5; - return this; - } - /** - *
-     * a threshold N followed by a list of M keys, any N of which are required to form a valid signature
-     * 
- * - * .proto.ThresholdKey thresholdKey = 5; - */ - public Builder setThresholdKey( - com.hederahashgraph.api.proto.java.ThresholdKey.Builder builderForValue) { - if (thresholdKeyBuilder_ == null) { - key_ = builderForValue.build(); - onChanged(); - } else { - thresholdKeyBuilder_.setMessage(builderForValue.build()); - } - keyCase_ = 5; - return this; - } - /** - *
-     * a threshold N followed by a list of M keys, any N of which are required to form a valid signature
-     * 
- * - * .proto.ThresholdKey thresholdKey = 5; - */ - public Builder mergeThresholdKey(com.hederahashgraph.api.proto.java.ThresholdKey value) { - if (thresholdKeyBuilder_ == null) { - if (keyCase_ == 5 && - key_ != com.hederahashgraph.api.proto.java.ThresholdKey.getDefaultInstance()) { - key_ = com.hederahashgraph.api.proto.java.ThresholdKey.newBuilder((com.hederahashgraph.api.proto.java.ThresholdKey) key_) - .mergeFrom(value).buildPartial(); - } else { - key_ = value; - } - onChanged(); - } else { - if (keyCase_ == 5) { - thresholdKeyBuilder_.mergeFrom(value); - } - thresholdKeyBuilder_.setMessage(value); - } - keyCase_ = 5; - return this; - } - /** - *
-     * a threshold N followed by a list of M keys, any N of which are required to form a valid signature
-     * 
- * - * .proto.ThresholdKey thresholdKey = 5; - */ - public Builder clearThresholdKey() { - if (thresholdKeyBuilder_ == null) { - if (keyCase_ == 5) { - keyCase_ = 0; - key_ = null; - onChanged(); - } - } else { - if (keyCase_ == 5) { - keyCase_ = 0; - key_ = null; - } - thresholdKeyBuilder_.clear(); - } - return this; - } - /** - *
-     * a threshold N followed by a list of M keys, any N of which are required to form a valid signature
-     * 
- * - * .proto.ThresholdKey thresholdKey = 5; - */ - public com.hederahashgraph.api.proto.java.ThresholdKey.Builder getThresholdKeyBuilder() { - return getThresholdKeyFieldBuilder().getBuilder(); - } - /** - *
-     * a threshold N followed by a list of M keys, any N of which are required to form a valid signature
-     * 
- * - * .proto.ThresholdKey thresholdKey = 5; - */ - public com.hederahashgraph.api.proto.java.ThresholdKeyOrBuilder getThresholdKeyOrBuilder() { - if ((keyCase_ == 5) && (thresholdKeyBuilder_ != null)) { - return thresholdKeyBuilder_.getMessageOrBuilder(); - } else { - if (keyCase_ == 5) { - return (com.hederahashgraph.api.proto.java.ThresholdKey) key_; - } - return com.hederahashgraph.api.proto.java.ThresholdKey.getDefaultInstance(); - } - } - /** - *
-     * a threshold N followed by a list of M keys, any N of which are required to form a valid signature
-     * 
- * - * .proto.ThresholdKey thresholdKey = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.ThresholdKey, com.hederahashgraph.api.proto.java.ThresholdKey.Builder, com.hederahashgraph.api.proto.java.ThresholdKeyOrBuilder> - getThresholdKeyFieldBuilder() { - if (thresholdKeyBuilder_ == null) { - if (!(keyCase_ == 5)) { - key_ = com.hederahashgraph.api.proto.java.ThresholdKey.getDefaultInstance(); - } - thresholdKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.ThresholdKey, com.hederahashgraph.api.proto.java.ThresholdKey.Builder, com.hederahashgraph.api.proto.java.ThresholdKeyOrBuilder>( - (com.hederahashgraph.api.proto.java.ThresholdKey) key_, - getParentForChildren(), - isClean()); - key_ = null; - } - keyCase_ = 5; - onChanged();; - return thresholdKeyBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.KeyList, com.hederahashgraph.api.proto.java.KeyList.Builder, com.hederahashgraph.api.proto.java.KeyListOrBuilder> keyListBuilder_; - /** - *
-     * a list of Keys.
-     * 
- * - * .proto.KeyList keyList = 6; - */ - public boolean hasKeyList() { - return keyCase_ == 6; - } - /** - *
-     * a list of Keys.
-     * 
- * - * .proto.KeyList keyList = 6; - */ - public com.hederahashgraph.api.proto.java.KeyList getKeyList() { - if (keyListBuilder_ == null) { - if (keyCase_ == 6) { - return (com.hederahashgraph.api.proto.java.KeyList) key_; - } - return com.hederahashgraph.api.proto.java.KeyList.getDefaultInstance(); - } else { - if (keyCase_ == 6) { - return keyListBuilder_.getMessage(); - } - return com.hederahashgraph.api.proto.java.KeyList.getDefaultInstance(); - } - } - /** - *
-     * a list of Keys.
-     * 
- * - * .proto.KeyList keyList = 6; - */ - public Builder setKeyList(com.hederahashgraph.api.proto.java.KeyList value) { - if (keyListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - key_ = value; - onChanged(); - } else { - keyListBuilder_.setMessage(value); - } - keyCase_ = 6; - return this; - } - /** - *
-     * a list of Keys.
-     * 
- * - * .proto.KeyList keyList = 6; - */ - public Builder setKeyList( - com.hederahashgraph.api.proto.java.KeyList.Builder builderForValue) { - if (keyListBuilder_ == null) { - key_ = builderForValue.build(); - onChanged(); - } else { - keyListBuilder_.setMessage(builderForValue.build()); - } - keyCase_ = 6; - return this; - } - /** - *
-     * a list of Keys.
-     * 
- * - * .proto.KeyList keyList = 6; - */ - public Builder mergeKeyList(com.hederahashgraph.api.proto.java.KeyList value) { - if (keyListBuilder_ == null) { - if (keyCase_ == 6 && - key_ != com.hederahashgraph.api.proto.java.KeyList.getDefaultInstance()) { - key_ = com.hederahashgraph.api.proto.java.KeyList.newBuilder((com.hederahashgraph.api.proto.java.KeyList) key_) - .mergeFrom(value).buildPartial(); - } else { - key_ = value; - } - onChanged(); - } else { - if (keyCase_ == 6) { - keyListBuilder_.mergeFrom(value); - } - keyListBuilder_.setMessage(value); - } - keyCase_ = 6; - return this; - } - /** - *
-     * a list of Keys.
-     * 
- * - * .proto.KeyList keyList = 6; - */ - public Builder clearKeyList() { - if (keyListBuilder_ == null) { - if (keyCase_ == 6) { - keyCase_ = 0; - key_ = null; - onChanged(); - } - } else { - if (keyCase_ == 6) { - keyCase_ = 0; - key_ = null; - } - keyListBuilder_.clear(); - } - return this; - } - /** - *
-     * a list of Keys.
-     * 
- * - * .proto.KeyList keyList = 6; - */ - public com.hederahashgraph.api.proto.java.KeyList.Builder getKeyListBuilder() { - return getKeyListFieldBuilder().getBuilder(); - } - /** - *
-     * a list of Keys.
-     * 
- * - * .proto.KeyList keyList = 6; - */ - public com.hederahashgraph.api.proto.java.KeyListOrBuilder getKeyListOrBuilder() { - if ((keyCase_ == 6) && (keyListBuilder_ != null)) { - return keyListBuilder_.getMessageOrBuilder(); - } else { - if (keyCase_ == 6) { - return (com.hederahashgraph.api.proto.java.KeyList) key_; - } - return com.hederahashgraph.api.proto.java.KeyList.getDefaultInstance(); - } - } - /** - *
-     * a list of Keys.
-     * 
- * - * .proto.KeyList keyList = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.KeyList, com.hederahashgraph.api.proto.java.KeyList.Builder, com.hederahashgraph.api.proto.java.KeyListOrBuilder> - getKeyListFieldBuilder() { - if (keyListBuilder_ == null) { - if (!(keyCase_ == 6)) { - key_ = com.hederahashgraph.api.proto.java.KeyList.getDefaultInstance(); - } - keyListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.KeyList, com.hederahashgraph.api.proto.java.KeyList.Builder, com.hederahashgraph.api.proto.java.KeyListOrBuilder>( - (com.hederahashgraph.api.proto.java.KeyList) key_, - getParentForChildren(), - isClean()); - key_ = null; - } - keyCase_ = 6; - onChanged();; - return keyListBuilder_; - } - @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:proto.Key) - } - - // @@protoc_insertion_point(class_scope:proto.Key) - private static final com.hederahashgraph.api.proto.java.Key DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.Key(); - } - - public static com.hederahashgraph.api.proto.java.Key getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Key parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Key(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.hederahashgraph.api.proto.java.Key getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/KeyList.java b/target/generated-sources/com/hederahashgraph/api/proto/java/KeyList.java deleted file mode 100644 index b6093d5e2..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/KeyList.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * A list of keys 
- * 
- * - * Protobuf type {@code proto.KeyList} - */ -public final class KeyList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.KeyList) - KeyListOrBuilder { -private static final long serialVersionUID = 0L; - // Use KeyList.newBuilder() to construct. - private KeyList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private KeyList() { - keys_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private KeyList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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)) { - keys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - keys_.add( - input.readMessage(com.hederahashgraph.api.proto.java.Key.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)) { - keys_ = java.util.Collections.unmodifiableList(keys_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_KeyList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_KeyList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.KeyList.class, com.hederahashgraph.api.proto.java.KeyList.Builder.class); - } - - public static final int KEYS_FIELD_NUMBER = 1; - private java.util.List keys_; - /** - *
-   * list of keys
-   * 
- * - * repeated .proto.Key keys = 1; - */ - public java.util.List getKeysList() { - return keys_; - } - /** - *
-   * list of keys
-   * 
- * - * repeated .proto.Key keys = 1; - */ - public java.util.List - getKeysOrBuilderList() { - return keys_; - } - /** - *
-   * list of keys
-   * 
- * - * repeated .proto.Key keys = 1; - */ - public int getKeysCount() { - return keys_.size(); - } - /** - *
-   * list of keys
-   * 
- * - * repeated .proto.Key keys = 1; - */ - public com.hederahashgraph.api.proto.java.Key getKeys(int index) { - return keys_.get(index); - } - /** - *
-   * list of keys
-   * 
- * - * repeated .proto.Key keys = 1; - */ - public com.hederahashgraph.api.proto.java.KeyOrBuilder getKeysOrBuilder( - int index) { - return keys_.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 < keys_.size(); i++) { - output.writeMessage(1, keys_.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 < keys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, keys_.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 com.hederahashgraph.api.proto.java.KeyList)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.KeyList other = (com.hederahashgraph.api.proto.java.KeyList) obj; - - boolean result = true; - result = result && getKeysList() - .equals(other.getKeysList()); - 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 (getKeysCount() > 0) { - hash = (37 * hash) + KEYS_FIELD_NUMBER; - hash = (53 * hash) + getKeysList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.KeyList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.KeyList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.KeyList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.KeyList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.KeyList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.KeyList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.KeyList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.KeyList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.KeyList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.KeyList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.KeyList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.KeyList parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.KeyList prototype) { - return 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; - } - /** - *
-   * A list of keys 
-   * 
- * - * Protobuf type {@code proto.KeyList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.KeyList) - com.hederahashgraph.api.proto.java.KeyListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_KeyList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_KeyList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.KeyList.class, com.hederahashgraph.api.proto.java.KeyList.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.KeyList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getKeysFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (keysBuilder_ == null) { - keys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - keysBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_KeyList_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.KeyList getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.KeyList.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.KeyList build() { - com.hederahashgraph.api.proto.java.KeyList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.KeyList buildPartial() { - com.hederahashgraph.api.proto.java.KeyList result = new com.hederahashgraph.api.proto.java.KeyList(this); - int from_bitField0_ = bitField0_; - if (keysBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - keys_ = java.util.Collections.unmodifiableList(keys_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.keys_ = keys_; - } else { - result.keys_ = keysBuilder_.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 com.hederahashgraph.api.proto.java.KeyList) { - return mergeFrom((com.hederahashgraph.api.proto.java.KeyList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.KeyList other) { - if (other == com.hederahashgraph.api.proto.java.KeyList.getDefaultInstance()) return this; - if (keysBuilder_ == null) { - if (!other.keys_.isEmpty()) { - if (keys_.isEmpty()) { - keys_ = other.keys_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureKeysIsMutable(); - keys_.addAll(other.keys_); - } - onChanged(); - } - } else { - if (!other.keys_.isEmpty()) { - if (keysBuilder_.isEmpty()) { - keysBuilder_.dispose(); - keysBuilder_ = null; - keys_ = other.keys_; - bitField0_ = (bitField0_ & ~0x00000001); - keysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getKeysFieldBuilder() : null; - } else { - keysBuilder_.addAllMessages(other.keys_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.hederahashgraph.api.proto.java.KeyList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.KeyList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List keys_ = - java.util.Collections.emptyList(); - private void ensureKeysIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - keys_ = new java.util.ArrayList(keys_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> keysBuilder_; - - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public java.util.List getKeysList() { - if (keysBuilder_ == null) { - return java.util.Collections.unmodifiableList(keys_); - } else { - return keysBuilder_.getMessageList(); - } - } - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public int getKeysCount() { - if (keysBuilder_ == null) { - return keys_.size(); - } else { - return keysBuilder_.getCount(); - } - } - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public com.hederahashgraph.api.proto.java.Key getKeys(int index) { - if (keysBuilder_ == null) { - return keys_.get(index); - } else { - return keysBuilder_.getMessage(index); - } - } - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public Builder setKeys( - int index, com.hederahashgraph.api.proto.java.Key value) { - if (keysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeysIsMutable(); - keys_.set(index, value); - onChanged(); - } else { - keysBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public Builder setKeys( - int index, com.hederahashgraph.api.proto.java.Key.Builder builderForValue) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.set(index, builderForValue.build()); - onChanged(); - } else { - keysBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public Builder addKeys(com.hederahashgraph.api.proto.java.Key value) { - if (keysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeysIsMutable(); - keys_.add(value); - onChanged(); - } else { - keysBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public Builder addKeys( - int index, com.hederahashgraph.api.proto.java.Key value) { - if (keysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeysIsMutable(); - keys_.add(index, value); - onChanged(); - } else { - keysBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public Builder addKeys( - com.hederahashgraph.api.proto.java.Key.Builder builderForValue) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.add(builderForValue.build()); - onChanged(); - } else { - keysBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public Builder addKeys( - int index, com.hederahashgraph.api.proto.java.Key.Builder builderForValue) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.add(index, builderForValue.build()); - onChanged(); - } else { - keysBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public Builder addAllKeys( - java.lang.Iterable values) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, keys_); - onChanged(); - } else { - keysBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public Builder clearKeys() { - if (keysBuilder_ == null) { - keys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - keysBuilder_.clear(); - } - return this; - } - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public Builder removeKeys(int index) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.remove(index); - onChanged(); - } else { - keysBuilder_.remove(index); - } - return this; - } - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public com.hederahashgraph.api.proto.java.Key.Builder getKeysBuilder( - int index) { - return getKeysFieldBuilder().getBuilder(index); - } - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public com.hederahashgraph.api.proto.java.KeyOrBuilder getKeysOrBuilder( - int index) { - if (keysBuilder_ == null) { - return keys_.get(index); } else { - return keysBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public java.util.List - getKeysOrBuilderList() { - if (keysBuilder_ != null) { - return keysBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(keys_); - } - } - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public com.hederahashgraph.api.proto.java.Key.Builder addKeysBuilder() { - return getKeysFieldBuilder().addBuilder( - com.hederahashgraph.api.proto.java.Key.getDefaultInstance()); - } - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public com.hederahashgraph.api.proto.java.Key.Builder addKeysBuilder( - int index) { - return getKeysFieldBuilder().addBuilder( - index, com.hederahashgraph.api.proto.java.Key.getDefaultInstance()); - } - /** - *
-     * list of keys
-     * 
- * - * repeated .proto.Key keys = 1; - */ - public java.util.List - getKeysBuilderList() { - return getKeysFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> - getKeysFieldBuilder() { - if (keysBuilder_ == null) { - keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>( - keys_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - keys_ = null; - } - return keysBuilder_; - } - @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:proto.KeyList) - } - - // @@protoc_insertion_point(class_scope:proto.KeyList) - private static final com.hederahashgraph.api.proto.java.KeyList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.KeyList(); - } - - public static com.hederahashgraph.api.proto.java.KeyList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyList(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.hederahashgraph.api.proto.java.KeyList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/KeyListOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/KeyListOrBuilder.java deleted file mode 100644 index f7db34040..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/KeyListOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface KeyListOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.KeyList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * list of keys
-   * 
- * - * repeated .proto.Key keys = 1; - */ - java.util.List - getKeysList(); - /** - *
-   * list of keys
-   * 
- * - * repeated .proto.Key keys = 1; - */ - com.hederahashgraph.api.proto.java.Key getKeys(int index); - /** - *
-   * list of keys
-   * 
- * - * repeated .proto.Key keys = 1; - */ - int getKeysCount(); - /** - *
-   * list of keys
-   * 
- * - * repeated .proto.Key keys = 1; - */ - java.util.List - getKeysOrBuilderList(); - /** - *
-   * list of keys
-   * 
- * - * repeated .proto.Key keys = 1; - */ - com.hederahashgraph.api.proto.java.KeyOrBuilder getKeysOrBuilder( - int index); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/KeyOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/KeyOrBuilder.java deleted file mode 100644 index fbb7203ca..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/KeyOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface KeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.Key) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * smart contract instance that is authorized as if it had signed with a key
-   * 
- * - * .proto.ContractID contractID = 1; - */ - boolean hasContractID(); - /** - *
-   * smart contract instance that is authorized as if it had signed with a key
-   * 
- * - * .proto.ContractID contractID = 1; - */ - com.hederahashgraph.api.proto.java.ContractID getContractID(); - /** - *
-   * smart contract instance that is authorized as if it had signed with a key
-   * 
- * - * .proto.ContractID contractID = 1; - */ - com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder(); - - /** - *
-   * ed25519 public key
-   * 
- * - * bytes ed25519 = 2; - */ - com.google.protobuf.ByteString getEd25519(); - - /** - *
-   *RSA-3072 public key
-   * 
- * - * bytes RSA_3072 = 3; - */ - com.google.protobuf.ByteString getRSA3072(); - - /** - *
-   *ECDSA with the p-384 curve public key
-   * 
- * - * bytes ECDSA_384 = 4; - */ - com.google.protobuf.ByteString getECDSA384(); - - /** - *
-   * a threshold N followed by a list of M keys, any N of which are required to form a valid signature
-   * 
- * - * .proto.ThresholdKey thresholdKey = 5; - */ - boolean hasThresholdKey(); - /** - *
-   * a threshold N followed by a list of M keys, any N of which are required to form a valid signature
-   * 
- * - * .proto.ThresholdKey thresholdKey = 5; - */ - com.hederahashgraph.api.proto.java.ThresholdKey getThresholdKey(); - /** - *
-   * a threshold N followed by a list of M keys, any N of which are required to form a valid signature
-   * 
- * - * .proto.ThresholdKey thresholdKey = 5; - */ - com.hederahashgraph.api.proto.java.ThresholdKeyOrBuilder getThresholdKeyOrBuilder(); - - /** - *
-   * a list of Keys.
-   * 
- * - * .proto.KeyList keyList = 6; - */ - boolean hasKeyList(); - /** - *
-   * a list of Keys.
-   * 
- * - * .proto.KeyList keyList = 6; - */ - com.hederahashgraph.api.proto.java.KeyList getKeyList(); - /** - *
-   * a list of Keys.
-   * 
- * - * .proto.KeyList keyList = 6; - */ - com.hederahashgraph.api.proto.java.KeyListOrBuilder getKeyListOrBuilder(); - - public com.hederahashgraph.api.proto.java.Key.KeyCase getKeyCase(); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/NodeAddress.java b/target/generated-sources/com/hederahashgraph/api/proto/java/NodeAddress.java deleted file mode 100644 index 0aee2312b..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/NodeAddress.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * The information about a node 
- * 
- * - * Protobuf type {@code proto.NodeAddress} - */ -public final class NodeAddress extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.NodeAddress) - NodeAddressOrBuilder { -private static final long serialVersionUID = 0L; - // Use NodeAddress.newBuilder() to construct. - private NodeAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeAddress() { - ipAddress_ = com.google.protobuf.ByteString.EMPTY; - portno_ = 0; - memo_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeAddress( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - ipAddress_ = input.readBytes(); - break; - } - case 16: { - - portno_ = input.readInt32(); - break; - } - case 26: { - - memo_ = 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 com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_NodeAddress_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_NodeAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.NodeAddress.class, com.hederahashgraph.api.proto.java.NodeAddress.Builder.class); - } - - public static final int IPADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString ipAddress_; - /** - *
-   * the ip address of the Node
-   * 
- * - * bytes ipAddress = 1; - */ - public com.google.protobuf.ByteString getIpAddress() { - return ipAddress_; - } - - public static final int PORTNO_FIELD_NUMBER = 2; - private int portno_; - /** - *
-   * the port number of the grpc server for the node
-   * 
- * - * int32 portno = 2; - */ - public int getPortno() { - return portno_; - } - - public static final int MEMO_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString memo_; - /** - *
-   * the memo field of the node
-   * 
- * - * bytes memo = 3; - */ - public com.google.protobuf.ByteString getMemo() { - return memo_; - } - - 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 (!ipAddress_.isEmpty()) { - output.writeBytes(1, ipAddress_); - } - if (portno_ != 0) { - output.writeInt32(2, portno_); - } - if (!memo_.isEmpty()) { - output.writeBytes(3, memo_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!ipAddress_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, ipAddress_); - } - if (portno_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, portno_); - } - if (!memo_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, memo_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.hederahashgraph.api.proto.java.NodeAddress)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.NodeAddress other = (com.hederahashgraph.api.proto.java.NodeAddress) obj; - - boolean result = true; - result = result && getIpAddress() - .equals(other.getIpAddress()); - result = result && (getPortno() - == other.getPortno()); - result = result && getMemo() - .equals(other.getMemo()); - 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) + IPADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getIpAddress().hashCode(); - hash = (37 * hash) + PORTNO_FIELD_NUMBER; - hash = (53 * hash) + getPortno(); - hash = (37 * hash) + MEMO_FIELD_NUMBER; - hash = (53 * hash) + getMemo().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.NodeAddress parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.NodeAddress parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.NodeAddress parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.NodeAddress parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.NodeAddress parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.NodeAddress parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.NodeAddress parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.NodeAddress parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.NodeAddress parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.NodeAddress parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.NodeAddress parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.NodeAddress parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.NodeAddress prototype) { - return 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; - } - /** - *
-   * The information about a node 
-   * 
- * - * Protobuf type {@code proto.NodeAddress} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.NodeAddress) - com.hederahashgraph.api.proto.java.NodeAddressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_NodeAddress_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_NodeAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.NodeAddress.class, com.hederahashgraph.api.proto.java.NodeAddress.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.NodeAddress.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ipAddress_ = com.google.protobuf.ByteString.EMPTY; - - portno_ = 0; - - memo_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_NodeAddress_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.NodeAddress getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.NodeAddress.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.NodeAddress build() { - com.hederahashgraph.api.proto.java.NodeAddress result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.NodeAddress buildPartial() { - com.hederahashgraph.api.proto.java.NodeAddress result = new com.hederahashgraph.api.proto.java.NodeAddress(this); - result.ipAddress_ = ipAddress_; - result.portno_ = portno_; - result.memo_ = memo_; - 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 com.hederahashgraph.api.proto.java.NodeAddress) { - return mergeFrom((com.hederahashgraph.api.proto.java.NodeAddress)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.NodeAddress other) { - if (other == com.hederahashgraph.api.proto.java.NodeAddress.getDefaultInstance()) return this; - if (other.getIpAddress() != com.google.protobuf.ByteString.EMPTY) { - setIpAddress(other.getIpAddress()); - } - if (other.getPortno() != 0) { - setPortno(other.getPortno()); - } - if (other.getMemo() != com.google.protobuf.ByteString.EMPTY) { - setMemo(other.getMemo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.hederahashgraph.api.proto.java.NodeAddress parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.NodeAddress) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString ipAddress_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * the ip address of the Node
-     * 
- * - * bytes ipAddress = 1; - */ - public com.google.protobuf.ByteString getIpAddress() { - return ipAddress_; - } - /** - *
-     * the ip address of the Node
-     * 
- * - * bytes ipAddress = 1; - */ - public Builder setIpAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - ipAddress_ = value; - onChanged(); - return this; - } - /** - *
-     * the ip address of the Node
-     * 
- * - * bytes ipAddress = 1; - */ - public Builder clearIpAddress() { - - ipAddress_ = getDefaultInstance().getIpAddress(); - onChanged(); - return this; - } - - private int portno_ ; - /** - *
-     * the port number of the grpc server for the node
-     * 
- * - * int32 portno = 2; - */ - public int getPortno() { - return portno_; - } - /** - *
-     * the port number of the grpc server for the node
-     * 
- * - * int32 portno = 2; - */ - public Builder setPortno(int value) { - - portno_ = value; - onChanged(); - return this; - } - /** - *
-     * the port number of the grpc server for the node
-     * 
- * - * int32 portno = 2; - */ - public Builder clearPortno() { - - portno_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString memo_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * the memo field of the node
-     * 
- * - * bytes memo = 3; - */ - public com.google.protobuf.ByteString getMemo() { - return memo_; - } - /** - *
-     * the memo field of the node
-     * 
- * - * bytes memo = 3; - */ - public Builder setMemo(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - memo_ = value; - onChanged(); - return this; - } - /** - *
-     * the memo field of the node
-     * 
- * - * bytes memo = 3; - */ - public Builder clearMemo() { - - memo_ = getDefaultInstance().getMemo(); - 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:proto.NodeAddress) - } - - // @@protoc_insertion_point(class_scope:proto.NodeAddress) - private static final com.hederahashgraph.api.proto.java.NodeAddress DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.NodeAddress(); - } - - public static com.hederahashgraph.api.proto.java.NodeAddress getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeAddress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeAddress(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.hederahashgraph.api.proto.java.NodeAddress getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/NodeAddressBook.java b/target/generated-sources/com/hederahashgraph/api/proto/java/NodeAddressBook.java deleted file mode 100644 index 1471584be..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/NodeAddressBook.java +++ /dev/null @@ -1,767 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * Gives the node addresses in the address book 
- * 
- * - * Protobuf type {@code proto.NodeAddressBook} - */ -public final class NodeAddressBook extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.NodeAddressBook) - NodeAddressBookOrBuilder { -private static final long serialVersionUID = 0L; - // Use NodeAddressBook.newBuilder() to construct. - private NodeAddressBook(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeAddressBook() { - nodeAddress_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeAddressBook( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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)) { - nodeAddress_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodeAddress_.add( - input.readMessage(com.hederahashgraph.api.proto.java.NodeAddress.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)) { - nodeAddress_ = java.util.Collections.unmodifiableList(nodeAddress_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_NodeAddressBook_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_NodeAddressBook_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.NodeAddressBook.class, com.hederahashgraph.api.proto.java.NodeAddressBook.Builder.class); - } - - public static final int NODEADDRESS_FIELD_NUMBER = 1; - private java.util.List nodeAddress_; - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public java.util.List getNodeAddressList() { - return nodeAddress_; - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public java.util.List - getNodeAddressOrBuilderList() { - return nodeAddress_; - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public int getNodeAddressCount() { - return nodeAddress_.size(); - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public com.hederahashgraph.api.proto.java.NodeAddress getNodeAddress(int index) { - return nodeAddress_.get(index); - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public com.hederahashgraph.api.proto.java.NodeAddressOrBuilder getNodeAddressOrBuilder( - int index) { - return nodeAddress_.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 < nodeAddress_.size(); i++) { - output.writeMessage(1, nodeAddress_.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 < nodeAddress_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodeAddress_.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 com.hederahashgraph.api.proto.java.NodeAddressBook)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.NodeAddressBook other = (com.hederahashgraph.api.proto.java.NodeAddressBook) obj; - - boolean result = true; - result = result && getNodeAddressList() - .equals(other.getNodeAddressList()); - 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 (getNodeAddressCount() > 0) { - hash = (37 * hash) + NODEADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getNodeAddressList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.NodeAddressBook parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.NodeAddressBook parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.NodeAddressBook parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.NodeAddressBook parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.NodeAddressBook parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.NodeAddressBook parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.NodeAddressBook parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.NodeAddressBook parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.NodeAddressBook parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.NodeAddressBook parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.NodeAddressBook parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.NodeAddressBook parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.NodeAddressBook prototype) { - return 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; - } - /** - *
-   * Gives the node addresses in the address book 
-   * 
- * - * Protobuf type {@code proto.NodeAddressBook} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.NodeAddressBook) - com.hederahashgraph.api.proto.java.NodeAddressBookOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_NodeAddressBook_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_NodeAddressBook_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.NodeAddressBook.class, com.hederahashgraph.api.proto.java.NodeAddressBook.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.NodeAddressBook.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodeAddressFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (nodeAddressBuilder_ == null) { - nodeAddress_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodeAddressBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_NodeAddressBook_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.NodeAddressBook getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.NodeAddressBook.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.NodeAddressBook build() { - com.hederahashgraph.api.proto.java.NodeAddressBook result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.NodeAddressBook buildPartial() { - com.hederahashgraph.api.proto.java.NodeAddressBook result = new com.hederahashgraph.api.proto.java.NodeAddressBook(this); - int from_bitField0_ = bitField0_; - if (nodeAddressBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - nodeAddress_ = java.util.Collections.unmodifiableList(nodeAddress_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodeAddress_ = nodeAddress_; - } else { - result.nodeAddress_ = nodeAddressBuilder_.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 com.hederahashgraph.api.proto.java.NodeAddressBook) { - return mergeFrom((com.hederahashgraph.api.proto.java.NodeAddressBook)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.NodeAddressBook other) { - if (other == com.hederahashgraph.api.proto.java.NodeAddressBook.getDefaultInstance()) return this; - if (nodeAddressBuilder_ == null) { - if (!other.nodeAddress_.isEmpty()) { - if (nodeAddress_.isEmpty()) { - nodeAddress_ = other.nodeAddress_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodeAddressIsMutable(); - nodeAddress_.addAll(other.nodeAddress_); - } - onChanged(); - } - } else { - if (!other.nodeAddress_.isEmpty()) { - if (nodeAddressBuilder_.isEmpty()) { - nodeAddressBuilder_.dispose(); - nodeAddressBuilder_ = null; - nodeAddress_ = other.nodeAddress_; - bitField0_ = (bitField0_ & ~0x00000001); - nodeAddressBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodeAddressFieldBuilder() : null; - } else { - nodeAddressBuilder_.addAllMessages(other.nodeAddress_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.hederahashgraph.api.proto.java.NodeAddressBook parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.NodeAddressBook) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List nodeAddress_ = - java.util.Collections.emptyList(); - private void ensureNodeAddressIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - nodeAddress_ = new java.util.ArrayList(nodeAddress_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.hederahashgraph.api.proto.java.NodeAddress, com.hederahashgraph.api.proto.java.NodeAddress.Builder, com.hederahashgraph.api.proto.java.NodeAddressOrBuilder> nodeAddressBuilder_; - - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public java.util.List getNodeAddressList() { - if (nodeAddressBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodeAddress_); - } else { - return nodeAddressBuilder_.getMessageList(); - } - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public int getNodeAddressCount() { - if (nodeAddressBuilder_ == null) { - return nodeAddress_.size(); - } else { - return nodeAddressBuilder_.getCount(); - } - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public com.hederahashgraph.api.proto.java.NodeAddress getNodeAddress(int index) { - if (nodeAddressBuilder_ == null) { - return nodeAddress_.get(index); - } else { - return nodeAddressBuilder_.getMessage(index); - } - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public Builder setNodeAddress( - int index, com.hederahashgraph.api.proto.java.NodeAddress value) { - if (nodeAddressBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeAddressIsMutable(); - nodeAddress_.set(index, value); - onChanged(); - } else { - nodeAddressBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public Builder setNodeAddress( - int index, com.hederahashgraph.api.proto.java.NodeAddress.Builder builderForValue) { - if (nodeAddressBuilder_ == null) { - ensureNodeAddressIsMutable(); - nodeAddress_.set(index, builderForValue.build()); - onChanged(); - } else { - nodeAddressBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public Builder addNodeAddress(com.hederahashgraph.api.proto.java.NodeAddress value) { - if (nodeAddressBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeAddressIsMutable(); - nodeAddress_.add(value); - onChanged(); - } else { - nodeAddressBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public Builder addNodeAddress( - int index, com.hederahashgraph.api.proto.java.NodeAddress value) { - if (nodeAddressBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeAddressIsMutable(); - nodeAddress_.add(index, value); - onChanged(); - } else { - nodeAddressBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public Builder addNodeAddress( - com.hederahashgraph.api.proto.java.NodeAddress.Builder builderForValue) { - if (nodeAddressBuilder_ == null) { - ensureNodeAddressIsMutable(); - nodeAddress_.add(builderForValue.build()); - onChanged(); - } else { - nodeAddressBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public Builder addNodeAddress( - int index, com.hederahashgraph.api.proto.java.NodeAddress.Builder builderForValue) { - if (nodeAddressBuilder_ == null) { - ensureNodeAddressIsMutable(); - nodeAddress_.add(index, builderForValue.build()); - onChanged(); - } else { - nodeAddressBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public Builder addAllNodeAddress( - java.lang.Iterable values) { - if (nodeAddressBuilder_ == null) { - ensureNodeAddressIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodeAddress_); - onChanged(); - } else { - nodeAddressBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public Builder clearNodeAddress() { - if (nodeAddressBuilder_ == null) { - nodeAddress_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodeAddressBuilder_.clear(); - } - return this; - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public Builder removeNodeAddress(int index) { - if (nodeAddressBuilder_ == null) { - ensureNodeAddressIsMutable(); - nodeAddress_.remove(index); - onChanged(); - } else { - nodeAddressBuilder_.remove(index); - } - return this; - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public com.hederahashgraph.api.proto.java.NodeAddress.Builder getNodeAddressBuilder( - int index) { - return getNodeAddressFieldBuilder().getBuilder(index); - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public com.hederahashgraph.api.proto.java.NodeAddressOrBuilder getNodeAddressOrBuilder( - int index) { - if (nodeAddressBuilder_ == null) { - return nodeAddress_.get(index); } else { - return nodeAddressBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public java.util.List - getNodeAddressOrBuilderList() { - if (nodeAddressBuilder_ != null) { - return nodeAddressBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodeAddress_); - } - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public com.hederahashgraph.api.proto.java.NodeAddress.Builder addNodeAddressBuilder() { - return getNodeAddressFieldBuilder().addBuilder( - com.hederahashgraph.api.proto.java.NodeAddress.getDefaultInstance()); - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public com.hederahashgraph.api.proto.java.NodeAddress.Builder addNodeAddressBuilder( - int index) { - return getNodeAddressFieldBuilder().addBuilder( - index, com.hederahashgraph.api.proto.java.NodeAddress.getDefaultInstance()); - } - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - public java.util.List - getNodeAddressBuilderList() { - return getNodeAddressFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.hederahashgraph.api.proto.java.NodeAddress, com.hederahashgraph.api.proto.java.NodeAddress.Builder, com.hederahashgraph.api.proto.java.NodeAddressOrBuilder> - getNodeAddressFieldBuilder() { - if (nodeAddressBuilder_ == null) { - nodeAddressBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.hederahashgraph.api.proto.java.NodeAddress, com.hederahashgraph.api.proto.java.NodeAddress.Builder, com.hederahashgraph.api.proto.java.NodeAddressOrBuilder>( - nodeAddress_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - nodeAddress_ = null; - } - return nodeAddressBuilder_; - } - @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:proto.NodeAddressBook) - } - - // @@protoc_insertion_point(class_scope:proto.NodeAddressBook) - private static final com.hederahashgraph.api.proto.java.NodeAddressBook DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.NodeAddressBook(); - } - - public static com.hederahashgraph.api.proto.java.NodeAddressBook getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeAddressBook parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeAddressBook(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.hederahashgraph.api.proto.java.NodeAddressBook getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/NodeAddressBookOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/NodeAddressBookOrBuilder.java deleted file mode 100644 index a1ccb5bf4..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/NodeAddressBookOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface NodeAddressBookOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.NodeAddressBook) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - java.util.List - getNodeAddressList(); - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - com.hederahashgraph.api.proto.java.NodeAddress getNodeAddress(int index); - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - int getNodeAddressCount(); - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - java.util.List - getNodeAddressOrBuilderList(); - /** - * repeated .proto.NodeAddress nodeAddress = 1; - */ - com.hederahashgraph.api.proto.java.NodeAddressOrBuilder getNodeAddressOrBuilder( - int index); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/NodeAddressOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/NodeAddressOrBuilder.java deleted file mode 100644 index aa9412a2a..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/NodeAddressOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface NodeAddressOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.NodeAddress) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * the ip address of the Node
-   * 
- * - * bytes ipAddress = 1; - */ - com.google.protobuf.ByteString getIpAddress(); - - /** - *
-   * the port number of the grpc server for the node
-   * 
- * - * int32 portno = 2; - */ - int getPortno(); - - /** - *
-   * the memo field of the node
-   * 
- * - * bytes memo = 3; - */ - com.google.protobuf.ByteString getMemo(); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/RealmID.java b/target/generated-sources/com/hederahashgraph/api/proto/java/RealmID.java deleted file mode 100644 index 76c792e97..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/RealmID.java +++ /dev/null @@ -1,572 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * The ID for a realm. Within a given shard, every realm has a unique ID. Each account, file, and contract instance belongs to exactly one realm. 
- * 
- * - * Protobuf type {@code proto.RealmID} - */ -public final class RealmID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.RealmID) - RealmIDOrBuilder { -private static final long serialVersionUID = 0L; - // Use RealmID.newBuilder() to construct. - private RealmID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RealmID() { - shardNum_ = 0L; - realmNum_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RealmID( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder 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: { - - shardNum_ = input.readInt64(); - break; - } - case 16: { - - realmNum_ = input.readInt64(); - 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 com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_RealmID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_RealmID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.RealmID.class, com.hederahashgraph.api.proto.java.RealmID.Builder.class); - } - - public static final int SHARDNUM_FIELD_NUMBER = 1; - private long shardNum_; - /** - *
-   *the shard number (nonnegative)
-   * 
- * - * int64 shardNum = 1; - */ - public long getShardNum() { - return shardNum_; - } - - public static final int REALMNUM_FIELD_NUMBER = 2; - private long realmNum_; - /** - *
-   *the realm number (nonnegative)
-   * 
- * - * int64 realmNum = 2; - */ - public long getRealmNum() { - return realmNum_; - } - - 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 (shardNum_ != 0L) { - output.writeInt64(1, shardNum_); - } - if (realmNum_ != 0L) { - output.writeInt64(2, realmNum_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (shardNum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, shardNum_); - } - if (realmNum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, realmNum_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.hederahashgraph.api.proto.java.RealmID)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.RealmID other = (com.hederahashgraph.api.proto.java.RealmID) obj; - - boolean result = true; - result = result && (getShardNum() - == other.getShardNum()); - result = result && (getRealmNum() - == other.getRealmNum()); - 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) + SHARDNUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getShardNum()); - hash = (37 * hash) + REALMNUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRealmNum()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.RealmID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.RealmID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.RealmID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.RealmID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.RealmID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.RealmID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.RealmID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.RealmID parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.RealmID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.RealmID parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.RealmID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.RealmID parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.RealmID prototype) { - return 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; - } - /** - *
-   * The ID for a realm. Within a given shard, every realm has a unique ID. Each account, file, and contract instance belongs to exactly one realm. 
-   * 
- * - * Protobuf type {@code proto.RealmID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.RealmID) - com.hederahashgraph.api.proto.java.RealmIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_RealmID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_RealmID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.RealmID.class, com.hederahashgraph.api.proto.java.RealmID.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.RealmID.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - shardNum_ = 0L; - - realmNum_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_RealmID_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.RealmID getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.RealmID.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.RealmID build() { - com.hederahashgraph.api.proto.java.RealmID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.RealmID buildPartial() { - com.hederahashgraph.api.proto.java.RealmID result = new com.hederahashgraph.api.proto.java.RealmID(this); - result.shardNum_ = shardNum_; - result.realmNum_ = realmNum_; - 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 com.hederahashgraph.api.proto.java.RealmID) { - return mergeFrom((com.hederahashgraph.api.proto.java.RealmID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.RealmID other) { - if (other == com.hederahashgraph.api.proto.java.RealmID.getDefaultInstance()) return this; - if (other.getShardNum() != 0L) { - setShardNum(other.getShardNum()); - } - if (other.getRealmNum() != 0L) { - setRealmNum(other.getRealmNum()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.hederahashgraph.api.proto.java.RealmID parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.RealmID) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long shardNum_ ; - /** - *
-     *the shard number (nonnegative)
-     * 
- * - * int64 shardNum = 1; - */ - public long getShardNum() { - return shardNum_; - } - /** - *
-     *the shard number (nonnegative)
-     * 
- * - * int64 shardNum = 1; - */ - public Builder setShardNum(long value) { - - shardNum_ = value; - onChanged(); - return this; - } - /** - *
-     *the shard number (nonnegative)
-     * 
- * - * int64 shardNum = 1; - */ - public Builder clearShardNum() { - - shardNum_ = 0L; - onChanged(); - return this; - } - - private long realmNum_ ; - /** - *
-     *the realm number (nonnegative)
-     * 
- * - * int64 realmNum = 2; - */ - public long getRealmNum() { - return realmNum_; - } - /** - *
-     *the realm number (nonnegative)
-     * 
- * - * int64 realmNum = 2; - */ - public Builder setRealmNum(long value) { - - realmNum_ = value; - onChanged(); - return this; - } - /** - *
-     *the realm number (nonnegative)
-     * 
- * - * int64 realmNum = 2; - */ - public Builder clearRealmNum() { - - realmNum_ = 0L; - 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:proto.RealmID) - } - - // @@protoc_insertion_point(class_scope:proto.RealmID) - private static final com.hederahashgraph.api.proto.java.RealmID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.RealmID(); - } - - public static com.hederahashgraph.api.proto.java.RealmID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RealmID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RealmID(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.hederahashgraph.api.proto.java.RealmID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/RealmIDOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/RealmIDOrBuilder.java deleted file mode 100644 index cda3f2937..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/RealmIDOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface RealmIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.RealmID) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   *the shard number (nonnegative)
-   * 
- * - * int64 shardNum = 1; - */ - long getShardNum(); - - /** - *
-   *the realm number (nonnegative)
-   * 
- * - * int64 realmNum = 2; - */ - long getRealmNum(); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/ShardID.java b/target/generated-sources/com/hederahashgraph/api/proto/java/ShardID.java deleted file mode 100644 index 2bde8720e..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/ShardID.java +++ /dev/null @@ -1,499 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * Each shard has a nonnegative shard number. Each realm within a given shard has a nonnegative realm number (that number might be reused in other shards). And each account, file, and smart contract instance within a given realm has a nonnegative number (which might be reused in other realms). Every account, file, and smart contract instance is within exactly one realm. So a FileID is a triplet of numbers, like 0.1.2 for entity number 2 within realm 1  within shard 0.  Each realm maintains a single counter for assigning numbers,  so if there is a file with ID 0.1.2, then there won't be an account or smart  contract instance with ID 0.1.2.
- *Everything is partitioned into realms so that each Solidity smart contract can  access everything in just a single realm, locking all those entities while it's  running, but other smart contracts could potentially run in other realms in  parallel. So realms allow Solidity to be parallelized somewhat, even though the  language itself assumes everything is serial. 
- * 
- * - * Protobuf type {@code proto.ShardID} - */ -public final class ShardID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.ShardID) - ShardIDOrBuilder { -private static final long serialVersionUID = 0L; - // Use ShardID.newBuilder() to construct. - private ShardID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ShardID() { - shardNum_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ShardID( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder 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: { - - shardNum_ = input.readInt64(); - 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 com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ShardID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ShardID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.ShardID.class, com.hederahashgraph.api.proto.java.ShardID.Builder.class); - } - - public static final int SHARDNUM_FIELD_NUMBER = 1; - private long shardNum_; - /** - *
-   *the shard number (nonnegative)
-   * 
- * - * int64 shardNum = 1; - */ - public long getShardNum() { - return shardNum_; - } - - 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 (shardNum_ != 0L) { - output.writeInt64(1, shardNum_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (shardNum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, shardNum_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.hederahashgraph.api.proto.java.ShardID)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.ShardID other = (com.hederahashgraph.api.proto.java.ShardID) obj; - - boolean result = true; - result = result && (getShardNum() - == other.getShardNum()); - 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) + SHARDNUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getShardNum()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.ShardID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.ShardID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ShardID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.ShardID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ShardID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.ShardID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ShardID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.ShardID parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ShardID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.ShardID parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ShardID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.ShardID parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.ShardID prototype) { - return 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; - } - /** - *
-   * Each shard has a nonnegative shard number. Each realm within a given shard has a nonnegative realm number (that number might be reused in other shards). And each account, file, and smart contract instance within a given realm has a nonnegative number (which might be reused in other realms). Every account, file, and smart contract instance is within exactly one realm. So a FileID is a triplet of numbers, like 0.1.2 for entity number 2 within realm 1  within shard 0.  Each realm maintains a single counter for assigning numbers,  so if there is a file with ID 0.1.2, then there won't be an account or smart  contract instance with ID 0.1.2.
-   *Everything is partitioned into realms so that each Solidity smart contract can  access everything in just a single realm, locking all those entities while it's  running, but other smart contracts could potentially run in other realms in  parallel. So realms allow Solidity to be parallelized somewhat, even though the  language itself assumes everything is serial. 
-   * 
- * - * Protobuf type {@code proto.ShardID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.ShardID) - com.hederahashgraph.api.proto.java.ShardIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ShardID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ShardID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.ShardID.class, com.hederahashgraph.api.proto.java.ShardID.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.ShardID.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - shardNum_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ShardID_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.ShardID getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.ShardID.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.ShardID build() { - com.hederahashgraph.api.proto.java.ShardID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.ShardID buildPartial() { - com.hederahashgraph.api.proto.java.ShardID result = new com.hederahashgraph.api.proto.java.ShardID(this); - result.shardNum_ = shardNum_; - 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 com.hederahashgraph.api.proto.java.ShardID) { - return mergeFrom((com.hederahashgraph.api.proto.java.ShardID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.ShardID other) { - if (other == com.hederahashgraph.api.proto.java.ShardID.getDefaultInstance()) return this; - if (other.getShardNum() != 0L) { - setShardNum(other.getShardNum()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.hederahashgraph.api.proto.java.ShardID parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.ShardID) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long shardNum_ ; - /** - *
-     *the shard number (nonnegative)
-     * 
- * - * int64 shardNum = 1; - */ - public long getShardNum() { - return shardNum_; - } - /** - *
-     *the shard number (nonnegative)
-     * 
- * - * int64 shardNum = 1; - */ - public Builder setShardNum(long value) { - - shardNum_ = value; - onChanged(); - return this; - } - /** - *
-     *the shard number (nonnegative)
-     * 
- * - * int64 shardNum = 1; - */ - public Builder clearShardNum() { - - shardNum_ = 0L; - 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:proto.ShardID) - } - - // @@protoc_insertion_point(class_scope:proto.ShardID) - private static final com.hederahashgraph.api.proto.java.ShardID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ShardID(); - } - - public static com.hederahashgraph.api.proto.java.ShardID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShardID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ShardID(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.hederahashgraph.api.proto.java.ShardID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/ShardIDOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/ShardIDOrBuilder.java deleted file mode 100644 index 349abca29..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/ShardIDOrBuilder.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface ShardIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.ShardID) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   *the shard number (nonnegative)
-   * 
- * - * int64 shardNum = 1; - */ - long getShardNum(); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/Signature.java b/target/generated-sources/com/hederahashgraph/api/proto/java/Signature.java deleted file mode 100644 index e0df0b62b..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/Signature.java +++ /dev/null @@ -1,1360 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * A Signature corresponding to a Key. It is a sequence of bytes holding a public key signature from one of the three supported systems (ed25519, RSA-3072,  ECDSA with p384). Or, it can be a list of signatures corresponding to a single threshold key. Or, it can be the ID of a smart contract instance, which is authorized to act as if it had a key. If an account has an ed25519 key associated with it, then the corresponding private key must sign any transaction to transfer cryptocurrency out of it. If it has a smart contract ID associated with it, then that smart contract is allowed to transfer cryptocurrency out of it. The smart contract doesn't actually have a key, and  doesn't actually sign a transaction. But it's as if a virtual transaction were created, and the smart contract signed it with a private key. A key can also be a "threshold key", which means a list of M keys, any N of which must sign in order for the threshold signature to be considered valid. The keys within a threshold signature may themselves be threshold signatures, to allow complex signature requirements (this nesting is not supported in the currently, but will be supported in a future version of API). If a Signature message is missing the "signature" field, then this is considered to be a null signature. That is useful in cases such as threshold signatures, where some of the signatures can be null.
- * The definition of Key uses mutual recursion, so it allows nesting that is arbitrarily deep. But the current API only accepts Key messages up to 3 levels deep, such as a list of threshold keys, each of which is a list of primitive keys. Therefore, the matching Signature will have the same limitation. This restriction may be relaxed in future versions of the API, to allow deeper nesting.
- * 
- * - * Protobuf type {@code proto.Signature} - */ -public final class Signature extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.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() { - } - - @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 10: { - signatureCase_ = 1; - signature_ = input.readBytes(); - break; - } - case 18: { - signatureCase_ = 2; - signature_ = input.readBytes(); - break; - } - case 26: { - signatureCase_ = 3; - signature_ = input.readBytes(); - break; - } - case 34: { - signatureCase_ = 4; - signature_ = input.readBytes(); - break; - } - case 42: { - com.hederahashgraph.api.proto.java.ThresholdSignature.Builder subBuilder = null; - if (signatureCase_ == 5) { - subBuilder = ((com.hederahashgraph.api.proto.java.ThresholdSignature) signature_).toBuilder(); - } - signature_ = - input.readMessage(com.hederahashgraph.api.proto.java.ThresholdSignature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.ThresholdSignature) signature_); - signature_ = subBuilder.buildPartial(); - } - signatureCase_ = 5; - break; - } - case 50: { - com.hederahashgraph.api.proto.java.SignatureList.Builder subBuilder = null; - if (signatureCase_ == 6) { - subBuilder = ((com.hederahashgraph.api.proto.java.SignatureList) signature_).toBuilder(); - } - signature_ = - input.readMessage(com.hederahashgraph.api.proto.java.SignatureList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.SignatureList) signature_); - signature_ = subBuilder.buildPartial(); - } - signatureCase_ = 6; - 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 com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_Signature_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_Signature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.Signature.class, com.hederahashgraph.api.proto.java.Signature.Builder.class); - } - - private int signatureCase_ = 0; - private java.lang.Object signature_; - public enum SignatureCase - implements com.google.protobuf.Internal.EnumLite { - CONTRACT(1), - ED25519(2), - RSA_3072(3), - ECDSA_384(4), - THRESHOLDSIGNATURE(5), - SIGNATURELIST(6), - SIGNATURE_NOT_SET(0); - private final int value; - private SignatureCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SignatureCase valueOf(int value) { - return forNumber(value); - } - - public static SignatureCase forNumber(int value) { - switch (value) { - case 1: return CONTRACT; - case 2: return ED25519; - case 3: return RSA_3072; - case 4: return ECDSA_384; - case 5: return THRESHOLDSIGNATURE; - case 6: return SIGNATURELIST; - case 0: return SIGNATURE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public SignatureCase - getSignatureCase() { - return SignatureCase.forNumber( - signatureCase_); - } - - public static final int CONTRACT_FIELD_NUMBER = 1; - /** - *
-   * smart contract virtual signature (always length zero)
-   * 
- * - * bytes contract = 1; - */ - public com.google.protobuf.ByteString getContract() { - if (signatureCase_ == 1) { - return (com.google.protobuf.ByteString) signature_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - public static final int ED25519_FIELD_NUMBER = 2; - /** - *
-   * ed25519 signature
-   * 
- * - * bytes ed25519 = 2; - */ - public com.google.protobuf.ByteString getEd25519() { - if (signatureCase_ == 2) { - return (com.google.protobuf.ByteString) signature_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - public static final int RSA_3072_FIELD_NUMBER = 3; - /** - *
-   *RSA-3072 signature
-   * 
- * - * bytes RSA_3072 = 3; - */ - public com.google.protobuf.ByteString getRSA3072() { - if (signatureCase_ == 3) { - return (com.google.protobuf.ByteString) signature_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - public static final int ECDSA_384_FIELD_NUMBER = 4; - /** - *
-   *ECDSA p-384 signature
-   * 
- * - * bytes ECDSA_384 = 4; - */ - public com.google.protobuf.ByteString getECDSA384() { - if (signatureCase_ == 4) { - return (com.google.protobuf.ByteString) signature_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - public static final int THRESHOLDSIGNATURE_FIELD_NUMBER = 5; - /** - *
-   * a list of signatures for a single N-of-M threshold Key. This must be a list of exactly M signatures, at least N of which are non-null.
-   * 
- * - * .proto.ThresholdSignature thresholdSignature = 5; - */ - public boolean hasThresholdSignature() { - return signatureCase_ == 5; - } - /** - *
-   * a list of signatures for a single N-of-M threshold Key. This must be a list of exactly M signatures, at least N of which are non-null.
-   * 
- * - * .proto.ThresholdSignature thresholdSignature = 5; - */ - public com.hederahashgraph.api.proto.java.ThresholdSignature getThresholdSignature() { - if (signatureCase_ == 5) { - return (com.hederahashgraph.api.proto.java.ThresholdSignature) signature_; - } - return com.hederahashgraph.api.proto.java.ThresholdSignature.getDefaultInstance(); - } - /** - *
-   * a list of signatures for a single N-of-M threshold Key. This must be a list of exactly M signatures, at least N of which are non-null.
-   * 
- * - * .proto.ThresholdSignature thresholdSignature = 5; - */ - public com.hederahashgraph.api.proto.java.ThresholdSignatureOrBuilder getThresholdSignatureOrBuilder() { - if (signatureCase_ == 5) { - return (com.hederahashgraph.api.proto.java.ThresholdSignature) signature_; - } - return com.hederahashgraph.api.proto.java.ThresholdSignature.getDefaultInstance(); - } - - public static final int SIGNATURELIST_FIELD_NUMBER = 6; - /** - *
-   * a list of M signatures, each corresponding to a Key in a KeyList of the same length.
-   * 
- * - * .proto.SignatureList signatureList = 6; - */ - public boolean hasSignatureList() { - return signatureCase_ == 6; - } - /** - *
-   * a list of M signatures, each corresponding to a Key in a KeyList of the same length.
-   * 
- * - * .proto.SignatureList signatureList = 6; - */ - public com.hederahashgraph.api.proto.java.SignatureList getSignatureList() { - if (signatureCase_ == 6) { - return (com.hederahashgraph.api.proto.java.SignatureList) signature_; - } - return com.hederahashgraph.api.proto.java.SignatureList.getDefaultInstance(); - } - /** - *
-   * a list of M signatures, each corresponding to a Key in a KeyList of the same length.
-   * 
- * - * .proto.SignatureList signatureList = 6; - */ - public com.hederahashgraph.api.proto.java.SignatureListOrBuilder getSignatureListOrBuilder() { - if (signatureCase_ == 6) { - return (com.hederahashgraph.api.proto.java.SignatureList) signature_; - } - return com.hederahashgraph.api.proto.java.SignatureList.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 (signatureCase_ == 1) { - output.writeBytes( - 1, (com.google.protobuf.ByteString) signature_); - } - if (signatureCase_ == 2) { - output.writeBytes( - 2, (com.google.protobuf.ByteString) signature_); - } - if (signatureCase_ == 3) { - output.writeBytes( - 3, (com.google.protobuf.ByteString) signature_); - } - if (signatureCase_ == 4) { - output.writeBytes( - 4, (com.google.protobuf.ByteString) signature_); - } - if (signatureCase_ == 5) { - output.writeMessage(5, (com.hederahashgraph.api.proto.java.ThresholdSignature) signature_); - } - if (signatureCase_ == 6) { - output.writeMessage(6, (com.hederahashgraph.api.proto.java.SignatureList) signature_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (signatureCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 1, (com.google.protobuf.ByteString) signature_); - } - if (signatureCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 2, (com.google.protobuf.ByteString) signature_); - } - if (signatureCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 3, (com.google.protobuf.ByteString) signature_); - } - if (signatureCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 4, (com.google.protobuf.ByteString) signature_); - } - if (signatureCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.hederahashgraph.api.proto.java.ThresholdSignature) signature_); - } - if (signatureCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.hederahashgraph.api.proto.java.SignatureList) 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 com.hederahashgraph.api.proto.java.Signature)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.Signature other = (com.hederahashgraph.api.proto.java.Signature) obj; - - boolean result = true; - result = result && getSignatureCase().equals( - other.getSignatureCase()); - if (!result) return false; - switch (signatureCase_) { - case 1: - result = result && getContract() - .equals(other.getContract()); - break; - case 2: - result = result && getEd25519() - .equals(other.getEd25519()); - break; - case 3: - result = result && getRSA3072() - .equals(other.getRSA3072()); - break; - case 4: - result = result && getECDSA384() - .equals(other.getECDSA384()); - break; - case 5: - result = result && getThresholdSignature() - .equals(other.getThresholdSignature()); - break; - case 6: - result = result && getSignatureList() - .equals(other.getSignatureList()); - break; - case 0: - default: - } - 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(); - switch (signatureCase_) { - case 1: - hash = (37 * hash) + CONTRACT_FIELD_NUMBER; - hash = (53 * hash) + getContract().hashCode(); - break; - case 2: - hash = (37 * hash) + ED25519_FIELD_NUMBER; - hash = (53 * hash) + getEd25519().hashCode(); - break; - case 3: - hash = (37 * hash) + RSA_3072_FIELD_NUMBER; - hash = (53 * hash) + getRSA3072().hashCode(); - break; - case 4: - hash = (37 * hash) + ECDSA_384_FIELD_NUMBER; - hash = (53 * hash) + getECDSA384().hashCode(); - break; - case 5: - hash = (37 * hash) + THRESHOLDSIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getThresholdSignature().hashCode(); - break; - case 6: - hash = (37 * hash) + SIGNATURELIST_FIELD_NUMBER; - hash = (53 * hash) + getSignatureList().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.Signature parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.Signature parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.Signature parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.Signature parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.Signature parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.Signature parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.Signature parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.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 com.hederahashgraph.api.proto.java.Signature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.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 com.hederahashgraph.api.proto.java.Signature parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.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(com.hederahashgraph.api.proto.java.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; - } - /** - *
-   * A Signature corresponding to a Key. It is a sequence of bytes holding a public key signature from one of the three supported systems (ed25519, RSA-3072,  ECDSA with p384). Or, it can be a list of signatures corresponding to a single threshold key. Or, it can be the ID of a smart contract instance, which is authorized to act as if it had a key. If an account has an ed25519 key associated with it, then the corresponding private key must sign any transaction to transfer cryptocurrency out of it. If it has a smart contract ID associated with it, then that smart contract is allowed to transfer cryptocurrency out of it. The smart contract doesn't actually have a key, and  doesn't actually sign a transaction. But it's as if a virtual transaction were created, and the smart contract signed it with a private key. A key can also be a "threshold key", which means a list of M keys, any N of which must sign in order for the threshold signature to be considered valid. The keys within a threshold signature may themselves be threshold signatures, to allow complex signature requirements (this nesting is not supported in the currently, but will be supported in a future version of API). If a Signature message is missing the "signature" field, then this is considered to be a null signature. That is useful in cases such as threshold signatures, where some of the signatures can be null.
-   * The definition of Key uses mutual recursion, so it allows nesting that is arbitrarily deep. But the current API only accepts Key messages up to 3 levels deep, such as a list of threshold keys, each of which is a list of primitive keys. Therefore, the matching Signature will have the same limitation. This restriction may be relaxed in future versions of the API, to allow deeper nesting.
-   * 
- * - * Protobuf type {@code proto.Signature} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.Signature) - com.hederahashgraph.api.proto.java.SignatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_Signature_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_Signature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.Signature.class, com.hederahashgraph.api.proto.java.Signature.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.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(); - signatureCase_ = 0; - signature_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_Signature_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.Signature getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.Signature.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.Signature build() { - com.hederahashgraph.api.proto.java.Signature result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.Signature buildPartial() { - com.hederahashgraph.api.proto.java.Signature result = new com.hederahashgraph.api.proto.java.Signature(this); - if (signatureCase_ == 1) { - result.signature_ = signature_; - } - if (signatureCase_ == 2) { - result.signature_ = signature_; - } - if (signatureCase_ == 3) { - result.signature_ = signature_; - } - if (signatureCase_ == 4) { - result.signature_ = signature_; - } - if (signatureCase_ == 5) { - if (thresholdSignatureBuilder_ == null) { - result.signature_ = signature_; - } else { - result.signature_ = thresholdSignatureBuilder_.build(); - } - } - if (signatureCase_ == 6) { - if (signatureListBuilder_ == null) { - result.signature_ = signature_; - } else { - result.signature_ = signatureListBuilder_.build(); - } - } - result.signatureCase_ = signatureCase_; - 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 com.hederahashgraph.api.proto.java.Signature) { - return mergeFrom((com.hederahashgraph.api.proto.java.Signature)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.Signature other) { - if (other == com.hederahashgraph.api.proto.java.Signature.getDefaultInstance()) return this; - switch (other.getSignatureCase()) { - case CONTRACT: { - setContract(other.getContract()); - break; - } - case ED25519: { - setEd25519(other.getEd25519()); - break; - } - case RSA_3072: { - setRSA3072(other.getRSA3072()); - break; - } - case ECDSA_384: { - setECDSA384(other.getECDSA384()); - break; - } - case THRESHOLDSIGNATURE: { - mergeThresholdSignature(other.getThresholdSignature()); - break; - } - case SIGNATURELIST: { - mergeSignatureList(other.getSignatureList()); - break; - } - case SIGNATURE_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 { - com.hederahashgraph.api.proto.java.Signature parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.Signature) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int signatureCase_ = 0; - private java.lang.Object signature_; - public SignatureCase - getSignatureCase() { - return SignatureCase.forNumber( - signatureCase_); - } - - public Builder clearSignature() { - signatureCase_ = 0; - signature_ = null; - onChanged(); - return this; - } - - - /** - *
-     * smart contract virtual signature (always length zero)
-     * 
- * - * bytes contract = 1; - */ - public com.google.protobuf.ByteString getContract() { - if (signatureCase_ == 1) { - return (com.google.protobuf.ByteString) signature_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - *
-     * smart contract virtual signature (always length zero)
-     * 
- * - * bytes contract = 1; - */ - public Builder setContract(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - signatureCase_ = 1; - signature_ = value; - onChanged(); - return this; - } - /** - *
-     * smart contract virtual signature (always length zero)
-     * 
- * - * bytes contract = 1; - */ - public Builder clearContract() { - if (signatureCase_ == 1) { - signatureCase_ = 0; - signature_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * ed25519 signature
-     * 
- * - * bytes ed25519 = 2; - */ - public com.google.protobuf.ByteString getEd25519() { - if (signatureCase_ == 2) { - return (com.google.protobuf.ByteString) signature_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - *
-     * ed25519 signature
-     * 
- * - * bytes ed25519 = 2; - */ - public Builder setEd25519(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - signatureCase_ = 2; - signature_ = value; - onChanged(); - return this; - } - /** - *
-     * ed25519 signature
-     * 
- * - * bytes ed25519 = 2; - */ - public Builder clearEd25519() { - if (signatureCase_ == 2) { - signatureCase_ = 0; - signature_ = null; - onChanged(); - } - return this; - } - - /** - *
-     *RSA-3072 signature
-     * 
- * - * bytes RSA_3072 = 3; - */ - public com.google.protobuf.ByteString getRSA3072() { - if (signatureCase_ == 3) { - return (com.google.protobuf.ByteString) signature_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - *
-     *RSA-3072 signature
-     * 
- * - * bytes RSA_3072 = 3; - */ - public Builder setRSA3072(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - signatureCase_ = 3; - signature_ = value; - onChanged(); - return this; - } - /** - *
-     *RSA-3072 signature
-     * 
- * - * bytes RSA_3072 = 3; - */ - public Builder clearRSA3072() { - if (signatureCase_ == 3) { - signatureCase_ = 0; - signature_ = null; - onChanged(); - } - return this; - } - - /** - *
-     *ECDSA p-384 signature
-     * 
- * - * bytes ECDSA_384 = 4; - */ - public com.google.protobuf.ByteString getECDSA384() { - if (signatureCase_ == 4) { - return (com.google.protobuf.ByteString) signature_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - *
-     *ECDSA p-384 signature
-     * 
- * - * bytes ECDSA_384 = 4; - */ - public Builder setECDSA384(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - signatureCase_ = 4; - signature_ = value; - onChanged(); - return this; - } - /** - *
-     *ECDSA p-384 signature
-     * 
- * - * bytes ECDSA_384 = 4; - */ - public Builder clearECDSA384() { - if (signatureCase_ == 4) { - signatureCase_ = 0; - signature_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.ThresholdSignature, com.hederahashgraph.api.proto.java.ThresholdSignature.Builder, com.hederahashgraph.api.proto.java.ThresholdSignatureOrBuilder> thresholdSignatureBuilder_; - /** - *
-     * a list of signatures for a single N-of-M threshold Key. This must be a list of exactly M signatures, at least N of which are non-null.
-     * 
- * - * .proto.ThresholdSignature thresholdSignature = 5; - */ - public boolean hasThresholdSignature() { - return signatureCase_ == 5; - } - /** - *
-     * a list of signatures for a single N-of-M threshold Key. This must be a list of exactly M signatures, at least N of which are non-null.
-     * 
- * - * .proto.ThresholdSignature thresholdSignature = 5; - */ - public com.hederahashgraph.api.proto.java.ThresholdSignature getThresholdSignature() { - if (thresholdSignatureBuilder_ == null) { - if (signatureCase_ == 5) { - return (com.hederahashgraph.api.proto.java.ThresholdSignature) signature_; - } - return com.hederahashgraph.api.proto.java.ThresholdSignature.getDefaultInstance(); - } else { - if (signatureCase_ == 5) { - return thresholdSignatureBuilder_.getMessage(); - } - return com.hederahashgraph.api.proto.java.ThresholdSignature.getDefaultInstance(); - } - } - /** - *
-     * a list of signatures for a single N-of-M threshold Key. This must be a list of exactly M signatures, at least N of which are non-null.
-     * 
- * - * .proto.ThresholdSignature thresholdSignature = 5; - */ - public Builder setThresholdSignature(com.hederahashgraph.api.proto.java.ThresholdSignature value) { - if (thresholdSignatureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - signature_ = value; - onChanged(); - } else { - thresholdSignatureBuilder_.setMessage(value); - } - signatureCase_ = 5; - return this; - } - /** - *
-     * a list of signatures for a single N-of-M threshold Key. This must be a list of exactly M signatures, at least N of which are non-null.
-     * 
- * - * .proto.ThresholdSignature thresholdSignature = 5; - */ - public Builder setThresholdSignature( - com.hederahashgraph.api.proto.java.ThresholdSignature.Builder builderForValue) { - if (thresholdSignatureBuilder_ == null) { - signature_ = builderForValue.build(); - onChanged(); - } else { - thresholdSignatureBuilder_.setMessage(builderForValue.build()); - } - signatureCase_ = 5; - return this; - } - /** - *
-     * a list of signatures for a single N-of-M threshold Key. This must be a list of exactly M signatures, at least N of which are non-null.
-     * 
- * - * .proto.ThresholdSignature thresholdSignature = 5; - */ - public Builder mergeThresholdSignature(com.hederahashgraph.api.proto.java.ThresholdSignature value) { - if (thresholdSignatureBuilder_ == null) { - if (signatureCase_ == 5 && - signature_ != com.hederahashgraph.api.proto.java.ThresholdSignature.getDefaultInstance()) { - signature_ = com.hederahashgraph.api.proto.java.ThresholdSignature.newBuilder((com.hederahashgraph.api.proto.java.ThresholdSignature) signature_) - .mergeFrom(value).buildPartial(); - } else { - signature_ = value; - } - onChanged(); - } else { - if (signatureCase_ == 5) { - thresholdSignatureBuilder_.mergeFrom(value); - } - thresholdSignatureBuilder_.setMessage(value); - } - signatureCase_ = 5; - return this; - } - /** - *
-     * a list of signatures for a single N-of-M threshold Key. This must be a list of exactly M signatures, at least N of which are non-null.
-     * 
- * - * .proto.ThresholdSignature thresholdSignature = 5; - */ - public Builder clearThresholdSignature() { - if (thresholdSignatureBuilder_ == null) { - if (signatureCase_ == 5) { - signatureCase_ = 0; - signature_ = null; - onChanged(); - } - } else { - if (signatureCase_ == 5) { - signatureCase_ = 0; - signature_ = null; - } - thresholdSignatureBuilder_.clear(); - } - return this; - } - /** - *
-     * a list of signatures for a single N-of-M threshold Key. This must be a list of exactly M signatures, at least N of which are non-null.
-     * 
- * - * .proto.ThresholdSignature thresholdSignature = 5; - */ - public com.hederahashgraph.api.proto.java.ThresholdSignature.Builder getThresholdSignatureBuilder() { - return getThresholdSignatureFieldBuilder().getBuilder(); - } - /** - *
-     * a list of signatures for a single N-of-M threshold Key. This must be a list of exactly M signatures, at least N of which are non-null.
-     * 
- * - * .proto.ThresholdSignature thresholdSignature = 5; - */ - public com.hederahashgraph.api.proto.java.ThresholdSignatureOrBuilder getThresholdSignatureOrBuilder() { - if ((signatureCase_ == 5) && (thresholdSignatureBuilder_ != null)) { - return thresholdSignatureBuilder_.getMessageOrBuilder(); - } else { - if (signatureCase_ == 5) { - return (com.hederahashgraph.api.proto.java.ThresholdSignature) signature_; - } - return com.hederahashgraph.api.proto.java.ThresholdSignature.getDefaultInstance(); - } - } - /** - *
-     * a list of signatures for a single N-of-M threshold Key. This must be a list of exactly M signatures, at least N of which are non-null.
-     * 
- * - * .proto.ThresholdSignature thresholdSignature = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.ThresholdSignature, com.hederahashgraph.api.proto.java.ThresholdSignature.Builder, com.hederahashgraph.api.proto.java.ThresholdSignatureOrBuilder> - getThresholdSignatureFieldBuilder() { - if (thresholdSignatureBuilder_ == null) { - if (!(signatureCase_ == 5)) { - signature_ = com.hederahashgraph.api.proto.java.ThresholdSignature.getDefaultInstance(); - } - thresholdSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.ThresholdSignature, com.hederahashgraph.api.proto.java.ThresholdSignature.Builder, com.hederahashgraph.api.proto.java.ThresholdSignatureOrBuilder>( - (com.hederahashgraph.api.proto.java.ThresholdSignature) signature_, - getParentForChildren(), - isClean()); - signature_ = null; - } - signatureCase_ = 5; - onChanged();; - return thresholdSignatureBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.SignatureList, com.hederahashgraph.api.proto.java.SignatureList.Builder, com.hederahashgraph.api.proto.java.SignatureListOrBuilder> signatureListBuilder_; - /** - *
-     * a list of M signatures, each corresponding to a Key in a KeyList of the same length.
-     * 
- * - * .proto.SignatureList signatureList = 6; - */ - public boolean hasSignatureList() { - return signatureCase_ == 6; - } - /** - *
-     * a list of M signatures, each corresponding to a Key in a KeyList of the same length.
-     * 
- * - * .proto.SignatureList signatureList = 6; - */ - public com.hederahashgraph.api.proto.java.SignatureList getSignatureList() { - if (signatureListBuilder_ == null) { - if (signatureCase_ == 6) { - return (com.hederahashgraph.api.proto.java.SignatureList) signature_; - } - return com.hederahashgraph.api.proto.java.SignatureList.getDefaultInstance(); - } else { - if (signatureCase_ == 6) { - return signatureListBuilder_.getMessage(); - } - return com.hederahashgraph.api.proto.java.SignatureList.getDefaultInstance(); - } - } - /** - *
-     * a list of M signatures, each corresponding to a Key in a KeyList of the same length.
-     * 
- * - * .proto.SignatureList signatureList = 6; - */ - public Builder setSignatureList(com.hederahashgraph.api.proto.java.SignatureList value) { - if (signatureListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - signature_ = value; - onChanged(); - } else { - signatureListBuilder_.setMessage(value); - } - signatureCase_ = 6; - return this; - } - /** - *
-     * a list of M signatures, each corresponding to a Key in a KeyList of the same length.
-     * 
- * - * .proto.SignatureList signatureList = 6; - */ - public Builder setSignatureList( - com.hederahashgraph.api.proto.java.SignatureList.Builder builderForValue) { - if (signatureListBuilder_ == null) { - signature_ = builderForValue.build(); - onChanged(); - } else { - signatureListBuilder_.setMessage(builderForValue.build()); - } - signatureCase_ = 6; - return this; - } - /** - *
-     * a list of M signatures, each corresponding to a Key in a KeyList of the same length.
-     * 
- * - * .proto.SignatureList signatureList = 6; - */ - public Builder mergeSignatureList(com.hederahashgraph.api.proto.java.SignatureList value) { - if (signatureListBuilder_ == null) { - if (signatureCase_ == 6 && - signature_ != com.hederahashgraph.api.proto.java.SignatureList.getDefaultInstance()) { - signature_ = com.hederahashgraph.api.proto.java.SignatureList.newBuilder((com.hederahashgraph.api.proto.java.SignatureList) signature_) - .mergeFrom(value).buildPartial(); - } else { - signature_ = value; - } - onChanged(); - } else { - if (signatureCase_ == 6) { - signatureListBuilder_.mergeFrom(value); - } - signatureListBuilder_.setMessage(value); - } - signatureCase_ = 6; - return this; - } - /** - *
-     * a list of M signatures, each corresponding to a Key in a KeyList of the same length.
-     * 
- * - * .proto.SignatureList signatureList = 6; - */ - public Builder clearSignatureList() { - if (signatureListBuilder_ == null) { - if (signatureCase_ == 6) { - signatureCase_ = 0; - signature_ = null; - onChanged(); - } - } else { - if (signatureCase_ == 6) { - signatureCase_ = 0; - signature_ = null; - } - signatureListBuilder_.clear(); - } - return this; - } - /** - *
-     * a list of M signatures, each corresponding to a Key in a KeyList of the same length.
-     * 
- * - * .proto.SignatureList signatureList = 6; - */ - public com.hederahashgraph.api.proto.java.SignatureList.Builder getSignatureListBuilder() { - return getSignatureListFieldBuilder().getBuilder(); - } - /** - *
-     * a list of M signatures, each corresponding to a Key in a KeyList of the same length.
-     * 
- * - * .proto.SignatureList signatureList = 6; - */ - public com.hederahashgraph.api.proto.java.SignatureListOrBuilder getSignatureListOrBuilder() { - if ((signatureCase_ == 6) && (signatureListBuilder_ != null)) { - return signatureListBuilder_.getMessageOrBuilder(); - } else { - if (signatureCase_ == 6) { - return (com.hederahashgraph.api.proto.java.SignatureList) signature_; - } - return com.hederahashgraph.api.proto.java.SignatureList.getDefaultInstance(); - } - } - /** - *
-     * a list of M signatures, each corresponding to a Key in a KeyList of the same length.
-     * 
- * - * .proto.SignatureList signatureList = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.SignatureList, com.hederahashgraph.api.proto.java.SignatureList.Builder, com.hederahashgraph.api.proto.java.SignatureListOrBuilder> - getSignatureListFieldBuilder() { - if (signatureListBuilder_ == null) { - if (!(signatureCase_ == 6)) { - signature_ = com.hederahashgraph.api.proto.java.SignatureList.getDefaultInstance(); - } - signatureListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.SignatureList, com.hederahashgraph.api.proto.java.SignatureList.Builder, com.hederahashgraph.api.proto.java.SignatureListOrBuilder>( - (com.hederahashgraph.api.proto.java.SignatureList) signature_, - getParentForChildren(), - isClean()); - signature_ = null; - } - signatureCase_ = 6; - onChanged();; - return signatureListBuilder_; - } - @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:proto.Signature) - } - - // @@protoc_insertion_point(class_scope:proto.Signature) - private static final com.hederahashgraph.api.proto.java.Signature DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.Signature(); - } - - public static com.hederahashgraph.api.proto.java.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 com.hederahashgraph.api.proto.java.Signature getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/SignatureList.java b/target/generated-sources/com/hederahashgraph/api/proto/java/SignatureList.java deleted file mode 100644 index 56694472c..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/SignatureList.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * The signatures corresponding to a KeyList of the same length  
- * 
- * - * Protobuf type {@code proto.SignatureList} - */ -public final class SignatureList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.SignatureList) - SignatureListOrBuilder { -private static final long serialVersionUID = 0L; - // Use SignatureList.newBuilder() to construct. - private SignatureList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignatureList() { - sigs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignatureList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - sigs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - sigs_.add( - input.readMessage(com.hederahashgraph.api.proto.java.Signature.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)) { - sigs_ = java.util.Collections.unmodifiableList(sigs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_SignatureList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_SignatureList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.SignatureList.class, com.hederahashgraph.api.proto.java.SignatureList.Builder.class); - } - - public static final int SIGS_FIELD_NUMBER = 2; - private java.util.List sigs_; - /** - *
-   * each signature corresponds to a Key in the KeyList
-   * 
- * - * repeated .proto.Signature sigs = 2; - */ - public java.util.List getSigsList() { - return sigs_; - } - /** - *
-   * each signature corresponds to a Key in the KeyList
-   * 
- * - * repeated .proto.Signature sigs = 2; - */ - public java.util.List - getSigsOrBuilderList() { - return sigs_; - } - /** - *
-   * each signature corresponds to a Key in the KeyList
-   * 
- * - * repeated .proto.Signature sigs = 2; - */ - public int getSigsCount() { - return sigs_.size(); - } - /** - *
-   * each signature corresponds to a Key in the KeyList
-   * 
- * - * repeated .proto.Signature sigs = 2; - */ - public com.hederahashgraph.api.proto.java.Signature getSigs(int index) { - return sigs_.get(index); - } - /** - *
-   * each signature corresponds to a Key in the KeyList
-   * 
- * - * repeated .proto.Signature sigs = 2; - */ - public com.hederahashgraph.api.proto.java.SignatureOrBuilder getSigsOrBuilder( - int index) { - return sigs_.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 < sigs_.size(); i++) { - output.writeMessage(2, sigs_.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 < sigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, sigs_.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 com.hederahashgraph.api.proto.java.SignatureList)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.SignatureList other = (com.hederahashgraph.api.proto.java.SignatureList) obj; - - boolean result = true; - result = result && getSigsList() - .equals(other.getSigsList()); - 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 (getSigsCount() > 0) { - hash = (37 * hash) + SIGS_FIELD_NUMBER; - hash = (53 * hash) + getSigsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.SignatureList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.SignatureList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.SignatureList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.SignatureList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.SignatureList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.SignatureList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.SignatureList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.SignatureList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.SignatureList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.SignatureList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.SignatureList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.SignatureList parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.SignatureList prototype) { - return 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; - } - /** - *
-   * The signatures corresponding to a KeyList of the same length  
-   * 
- * - * Protobuf type {@code proto.SignatureList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.SignatureList) - com.hederahashgraph.api.proto.java.SignatureListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_SignatureList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_SignatureList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.SignatureList.class, com.hederahashgraph.api.proto.java.SignatureList.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.SignatureList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSigsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (sigsBuilder_ == null) { - sigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - sigsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_SignatureList_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.SignatureList getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.SignatureList.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.SignatureList build() { - com.hederahashgraph.api.proto.java.SignatureList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.SignatureList buildPartial() { - com.hederahashgraph.api.proto.java.SignatureList result = new com.hederahashgraph.api.proto.java.SignatureList(this); - int from_bitField0_ = bitField0_; - if (sigsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - sigs_ = java.util.Collections.unmodifiableList(sigs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.sigs_ = sigs_; - } else { - result.sigs_ = sigsBuilder_.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 com.hederahashgraph.api.proto.java.SignatureList) { - return mergeFrom((com.hederahashgraph.api.proto.java.SignatureList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.SignatureList other) { - if (other == com.hederahashgraph.api.proto.java.SignatureList.getDefaultInstance()) return this; - if (sigsBuilder_ == null) { - if (!other.sigs_.isEmpty()) { - if (sigs_.isEmpty()) { - sigs_ = other.sigs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSigsIsMutable(); - sigs_.addAll(other.sigs_); - } - onChanged(); - } - } else { - if (!other.sigs_.isEmpty()) { - if (sigsBuilder_.isEmpty()) { - sigsBuilder_.dispose(); - sigsBuilder_ = null; - sigs_ = other.sigs_; - bitField0_ = (bitField0_ & ~0x00000001); - sigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSigsFieldBuilder() : null; - } else { - sigsBuilder_.addAllMessages(other.sigs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.hederahashgraph.api.proto.java.SignatureList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.SignatureList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List sigs_ = - java.util.Collections.emptyList(); - private void ensureSigsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - sigs_ = new java.util.ArrayList(sigs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.hederahashgraph.api.proto.java.Signature, com.hederahashgraph.api.proto.java.Signature.Builder, com.hederahashgraph.api.proto.java.SignatureOrBuilder> sigsBuilder_; - - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public java.util.List getSigsList() { - if (sigsBuilder_ == null) { - return java.util.Collections.unmodifiableList(sigs_); - } else { - return sigsBuilder_.getMessageList(); - } - } - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public int getSigsCount() { - if (sigsBuilder_ == null) { - return sigs_.size(); - } else { - return sigsBuilder_.getCount(); - } - } - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public com.hederahashgraph.api.proto.java.Signature getSigs(int index) { - if (sigsBuilder_ == null) { - return sigs_.get(index); - } else { - return sigsBuilder_.getMessage(index); - } - } - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public Builder setSigs( - int index, com.hederahashgraph.api.proto.java.Signature value) { - if (sigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSigsIsMutable(); - sigs_.set(index, value); - onChanged(); - } else { - sigsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public Builder setSigs( - int index, com.hederahashgraph.api.proto.java.Signature.Builder builderForValue) { - if (sigsBuilder_ == null) { - ensureSigsIsMutable(); - sigs_.set(index, builderForValue.build()); - onChanged(); - } else { - sigsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public Builder addSigs(com.hederahashgraph.api.proto.java.Signature value) { - if (sigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSigsIsMutable(); - sigs_.add(value); - onChanged(); - } else { - sigsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public Builder addSigs( - int index, com.hederahashgraph.api.proto.java.Signature value) { - if (sigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSigsIsMutable(); - sigs_.add(index, value); - onChanged(); - } else { - sigsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public Builder addSigs( - com.hederahashgraph.api.proto.java.Signature.Builder builderForValue) { - if (sigsBuilder_ == null) { - ensureSigsIsMutable(); - sigs_.add(builderForValue.build()); - onChanged(); - } else { - sigsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public Builder addSigs( - int index, com.hederahashgraph.api.proto.java.Signature.Builder builderForValue) { - if (sigsBuilder_ == null) { - ensureSigsIsMutable(); - sigs_.add(index, builderForValue.build()); - onChanged(); - } else { - sigsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public Builder addAllSigs( - java.lang.Iterable values) { - if (sigsBuilder_ == null) { - ensureSigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sigs_); - onChanged(); - } else { - sigsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public Builder clearSigs() { - if (sigsBuilder_ == null) { - sigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - sigsBuilder_.clear(); - } - return this; - } - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public Builder removeSigs(int index) { - if (sigsBuilder_ == null) { - ensureSigsIsMutable(); - sigs_.remove(index); - onChanged(); - } else { - sigsBuilder_.remove(index); - } - return this; - } - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public com.hederahashgraph.api.proto.java.Signature.Builder getSigsBuilder( - int index) { - return getSigsFieldBuilder().getBuilder(index); - } - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public com.hederahashgraph.api.proto.java.SignatureOrBuilder getSigsOrBuilder( - int index) { - if (sigsBuilder_ == null) { - return sigs_.get(index); } else { - return sigsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public java.util.List - getSigsOrBuilderList() { - if (sigsBuilder_ != null) { - return sigsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(sigs_); - } - } - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public com.hederahashgraph.api.proto.java.Signature.Builder addSigsBuilder() { - return getSigsFieldBuilder().addBuilder( - com.hederahashgraph.api.proto.java.Signature.getDefaultInstance()); - } - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public com.hederahashgraph.api.proto.java.Signature.Builder addSigsBuilder( - int index) { - return getSigsFieldBuilder().addBuilder( - index, com.hederahashgraph.api.proto.java.Signature.getDefaultInstance()); - } - /** - *
-     * each signature corresponds to a Key in the KeyList
-     * 
- * - * repeated .proto.Signature sigs = 2; - */ - public java.util.List - getSigsBuilderList() { - return getSigsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.hederahashgraph.api.proto.java.Signature, com.hederahashgraph.api.proto.java.Signature.Builder, com.hederahashgraph.api.proto.java.SignatureOrBuilder> - getSigsFieldBuilder() { - if (sigsBuilder_ == null) { - sigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.hederahashgraph.api.proto.java.Signature, com.hederahashgraph.api.proto.java.Signature.Builder, com.hederahashgraph.api.proto.java.SignatureOrBuilder>( - sigs_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - sigs_ = null; - } - return sigsBuilder_; - } - @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:proto.SignatureList) - } - - // @@protoc_insertion_point(class_scope:proto.SignatureList) - private static final com.hederahashgraph.api.proto.java.SignatureList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.SignatureList(); - } - - public static com.hederahashgraph.api.proto.java.SignatureList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignatureList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignatureList(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.hederahashgraph.api.proto.java.SignatureList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/SignatureListOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/SignatureListOrBuilder.java deleted file mode 100644 index 97c88685a..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/SignatureListOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface SignatureListOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.SignatureList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * each signature corresponds to a Key in the KeyList
-   * 
- * - * repeated .proto.Signature sigs = 2; - */ - java.util.List - getSigsList(); - /** - *
-   * each signature corresponds to a Key in the KeyList
-   * 
- * - * repeated .proto.Signature sigs = 2; - */ - com.hederahashgraph.api.proto.java.Signature getSigs(int index); - /** - *
-   * each signature corresponds to a Key in the KeyList
-   * 
- * - * repeated .proto.Signature sigs = 2; - */ - int getSigsCount(); - /** - *
-   * each signature corresponds to a Key in the KeyList
-   * 
- * - * repeated .proto.Signature sigs = 2; - */ - java.util.List - getSigsOrBuilderList(); - /** - *
-   * each signature corresponds to a Key in the KeyList
-   * 
- * - * repeated .proto.Signature sigs = 2; - */ - com.hederahashgraph.api.proto.java.SignatureOrBuilder getSigsOrBuilder( - int index); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/SignatureOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/SignatureOrBuilder.java deleted file mode 100644 index a08b5c067..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/SignatureOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface SignatureOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.Signature) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * smart contract virtual signature (always length zero)
-   * 
- * - * bytes contract = 1; - */ - com.google.protobuf.ByteString getContract(); - - /** - *
-   * ed25519 signature
-   * 
- * - * bytes ed25519 = 2; - */ - com.google.protobuf.ByteString getEd25519(); - - /** - *
-   *RSA-3072 signature
-   * 
- * - * bytes RSA_3072 = 3; - */ - com.google.protobuf.ByteString getRSA3072(); - - /** - *
-   *ECDSA p-384 signature
-   * 
- * - * bytes ECDSA_384 = 4; - */ - com.google.protobuf.ByteString getECDSA384(); - - /** - *
-   * a list of signatures for a single N-of-M threshold Key. This must be a list of exactly M signatures, at least N of which are non-null.
-   * 
- * - * .proto.ThresholdSignature thresholdSignature = 5; - */ - boolean hasThresholdSignature(); - /** - *
-   * a list of signatures for a single N-of-M threshold Key. This must be a list of exactly M signatures, at least N of which are non-null.
-   * 
- * - * .proto.ThresholdSignature thresholdSignature = 5; - */ - com.hederahashgraph.api.proto.java.ThresholdSignature getThresholdSignature(); - /** - *
-   * a list of signatures for a single N-of-M threshold Key. This must be a list of exactly M signatures, at least N of which are non-null.
-   * 
- * - * .proto.ThresholdSignature thresholdSignature = 5; - */ - com.hederahashgraph.api.proto.java.ThresholdSignatureOrBuilder getThresholdSignatureOrBuilder(); - - /** - *
-   * a list of M signatures, each corresponding to a Key in a KeyList of the same length.
-   * 
- * - * .proto.SignatureList signatureList = 6; - */ - boolean hasSignatureList(); - /** - *
-   * a list of M signatures, each corresponding to a Key in a KeyList of the same length.
-   * 
- * - * .proto.SignatureList signatureList = 6; - */ - com.hederahashgraph.api.proto.java.SignatureList getSignatureList(); - /** - *
-   * a list of M signatures, each corresponding to a Key in a KeyList of the same length.
-   * 
- * - * .proto.SignatureList signatureList = 6; - */ - com.hederahashgraph.api.proto.java.SignatureListOrBuilder getSignatureListOrBuilder(); - - public com.hederahashgraph.api.proto.java.Signature.SignatureCase getSignatureCase(); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/ThresholdKey.java b/target/generated-sources/com/hederahashgraph/api/proto/java/ThresholdKey.java deleted file mode 100644 index ddd1b4744..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/ThresholdKey.java +++ /dev/null @@ -1,725 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * A set of public keys that are used together to form a threshold signature. If the threshold is N and there are M keys, then this is an N of M threshold signature. If an account is associated with ThresholdKeys, then a transaction to move cryptocurrency out of it must be signed by a list of M signatures, where at most M-N of them are blank, and the other at least N of them are valid signatures corresponding to at least N of the public keys listed here. 
- * 
- * - * Protobuf type {@code proto.ThresholdKey} - */ -public final class ThresholdKey extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.ThresholdKey) - ThresholdKeyOrBuilder { -private static final long serialVersionUID = 0L; - // Use ThresholdKey.newBuilder() to construct. - private ThresholdKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ThresholdKey() { - threshold_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ThresholdKey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder 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: { - - threshold_ = input.readUInt32(); - break; - } - case 18: { - com.hederahashgraph.api.proto.java.KeyList.Builder subBuilder = null; - if (keys_ != null) { - subBuilder = keys_.toBuilder(); - } - keys_ = input.readMessage(com.hederahashgraph.api.proto.java.KeyList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(keys_); - keys_ = subBuilder.buildPartial(); - } - - 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 com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ThresholdKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ThresholdKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.ThresholdKey.class, com.hederahashgraph.api.proto.java.ThresholdKey.Builder.class); - } - - public static final int THRESHOLD_FIELD_NUMBER = 1; - private int threshold_; - /** - *
-   * a valid signature set must have at least this many signatures
-   * 
- * - * uint32 threshold = 1; - */ - public int getThreshold() { - return threshold_; - } - - public static final int KEYS_FIELD_NUMBER = 2; - private com.hederahashgraph.api.proto.java.KeyList keys_; - /** - *
-   * list of all the keys that can sign
-   * 
- * - * .proto.KeyList keys = 2; - */ - public boolean hasKeys() { - return keys_ != null; - } - /** - *
-   * list of all the keys that can sign
-   * 
- * - * .proto.KeyList keys = 2; - */ - public com.hederahashgraph.api.proto.java.KeyList getKeys() { - return keys_ == null ? com.hederahashgraph.api.proto.java.KeyList.getDefaultInstance() : keys_; - } - /** - *
-   * list of all the keys that can sign
-   * 
- * - * .proto.KeyList keys = 2; - */ - public com.hederahashgraph.api.proto.java.KeyListOrBuilder getKeysOrBuilder() { - return getKeys(); - } - - 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 (threshold_ != 0) { - output.writeUInt32(1, threshold_); - } - if (keys_ != null) { - output.writeMessage(2, getKeys()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (threshold_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, threshold_); - } - if (keys_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getKeys()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.hederahashgraph.api.proto.java.ThresholdKey)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.ThresholdKey other = (com.hederahashgraph.api.proto.java.ThresholdKey) obj; - - boolean result = true; - result = result && (getThreshold() - == other.getThreshold()); - result = result && (hasKeys() == other.hasKeys()); - if (hasKeys()) { - result = result && getKeys() - .equals(other.getKeys()); - } - 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) + THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + getThreshold(); - if (hasKeys()) { - hash = (37 * hash) + KEYS_FIELD_NUMBER; - hash = (53 * hash) + getKeys().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.ThresholdKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.ThresholdKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ThresholdKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.ThresholdKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ThresholdKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.ThresholdKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ThresholdKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.ThresholdKey parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ThresholdKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.ThresholdKey parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ThresholdKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.ThresholdKey parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.ThresholdKey prototype) { - return 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; - } - /** - *
-   * A set of public keys that are used together to form a threshold signature. If the threshold is N and there are M keys, then this is an N of M threshold signature. If an account is associated with ThresholdKeys, then a transaction to move cryptocurrency out of it must be signed by a list of M signatures, where at most M-N of them are blank, and the other at least N of them are valid signatures corresponding to at least N of the public keys listed here. 
-   * 
- * - * Protobuf type {@code proto.ThresholdKey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.ThresholdKey) - com.hederahashgraph.api.proto.java.ThresholdKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ThresholdKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ThresholdKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.ThresholdKey.class, com.hederahashgraph.api.proto.java.ThresholdKey.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.ThresholdKey.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - threshold_ = 0; - - if (keysBuilder_ == null) { - keys_ = null; - } else { - keys_ = null; - keysBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ThresholdKey_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.ThresholdKey getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.ThresholdKey.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.ThresholdKey build() { - com.hederahashgraph.api.proto.java.ThresholdKey result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.ThresholdKey buildPartial() { - com.hederahashgraph.api.proto.java.ThresholdKey result = new com.hederahashgraph.api.proto.java.ThresholdKey(this); - result.threshold_ = threshold_; - if (keysBuilder_ == null) { - result.keys_ = keys_; - } else { - result.keys_ = keysBuilder_.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 com.hederahashgraph.api.proto.java.ThresholdKey) { - return mergeFrom((com.hederahashgraph.api.proto.java.ThresholdKey)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.ThresholdKey other) { - if (other == com.hederahashgraph.api.proto.java.ThresholdKey.getDefaultInstance()) return this; - if (other.getThreshold() != 0) { - setThreshold(other.getThreshold()); - } - if (other.hasKeys()) { - mergeKeys(other.getKeys()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.hederahashgraph.api.proto.java.ThresholdKey parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.ThresholdKey) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int threshold_ ; - /** - *
-     * a valid signature set must have at least this many signatures
-     * 
- * - * uint32 threshold = 1; - */ - public int getThreshold() { - return threshold_; - } - /** - *
-     * a valid signature set must have at least this many signatures
-     * 
- * - * uint32 threshold = 1; - */ - public Builder setThreshold(int value) { - - threshold_ = value; - onChanged(); - return this; - } - /** - *
-     * a valid signature set must have at least this many signatures
-     * 
- * - * uint32 threshold = 1; - */ - public Builder clearThreshold() { - - threshold_ = 0; - onChanged(); - return this; - } - - private com.hederahashgraph.api.proto.java.KeyList keys_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.KeyList, com.hederahashgraph.api.proto.java.KeyList.Builder, com.hederahashgraph.api.proto.java.KeyListOrBuilder> keysBuilder_; - /** - *
-     * list of all the keys that can sign
-     * 
- * - * .proto.KeyList keys = 2; - */ - public boolean hasKeys() { - return keysBuilder_ != null || keys_ != null; - } - /** - *
-     * list of all the keys that can sign
-     * 
- * - * .proto.KeyList keys = 2; - */ - public com.hederahashgraph.api.proto.java.KeyList getKeys() { - if (keysBuilder_ == null) { - return keys_ == null ? com.hederahashgraph.api.proto.java.KeyList.getDefaultInstance() : keys_; - } else { - return keysBuilder_.getMessage(); - } - } - /** - *
-     * list of all the keys that can sign
-     * 
- * - * .proto.KeyList keys = 2; - */ - public Builder setKeys(com.hederahashgraph.api.proto.java.KeyList value) { - if (keysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - keys_ = value; - onChanged(); - } else { - keysBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * list of all the keys that can sign
-     * 
- * - * .proto.KeyList keys = 2; - */ - public Builder setKeys( - com.hederahashgraph.api.proto.java.KeyList.Builder builderForValue) { - if (keysBuilder_ == null) { - keys_ = builderForValue.build(); - onChanged(); - } else { - keysBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * list of all the keys that can sign
-     * 
- * - * .proto.KeyList keys = 2; - */ - public Builder mergeKeys(com.hederahashgraph.api.proto.java.KeyList value) { - if (keysBuilder_ == null) { - if (keys_ != null) { - keys_ = - com.hederahashgraph.api.proto.java.KeyList.newBuilder(keys_).mergeFrom(value).buildPartial(); - } else { - keys_ = value; - } - onChanged(); - } else { - keysBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * list of all the keys that can sign
-     * 
- * - * .proto.KeyList keys = 2; - */ - public Builder clearKeys() { - if (keysBuilder_ == null) { - keys_ = null; - onChanged(); - } else { - keys_ = null; - keysBuilder_ = null; - } - - return this; - } - /** - *
-     * list of all the keys that can sign
-     * 
- * - * .proto.KeyList keys = 2; - */ - public com.hederahashgraph.api.proto.java.KeyList.Builder getKeysBuilder() { - - onChanged(); - return getKeysFieldBuilder().getBuilder(); - } - /** - *
-     * list of all the keys that can sign
-     * 
- * - * .proto.KeyList keys = 2; - */ - public com.hederahashgraph.api.proto.java.KeyListOrBuilder getKeysOrBuilder() { - if (keysBuilder_ != null) { - return keysBuilder_.getMessageOrBuilder(); - } else { - return keys_ == null ? - com.hederahashgraph.api.proto.java.KeyList.getDefaultInstance() : keys_; - } - } - /** - *
-     * list of all the keys that can sign
-     * 
- * - * .proto.KeyList keys = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.KeyList, com.hederahashgraph.api.proto.java.KeyList.Builder, com.hederahashgraph.api.proto.java.KeyListOrBuilder> - getKeysFieldBuilder() { - if (keysBuilder_ == null) { - keysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.KeyList, com.hederahashgraph.api.proto.java.KeyList.Builder, com.hederahashgraph.api.proto.java.KeyListOrBuilder>( - getKeys(), - getParentForChildren(), - isClean()); - keys_ = null; - } - return keysBuilder_; - } - @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:proto.ThresholdKey) - } - - // @@protoc_insertion_point(class_scope:proto.ThresholdKey) - private static final com.hederahashgraph.api.proto.java.ThresholdKey DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ThresholdKey(); - } - - public static com.hederahashgraph.api.proto.java.ThresholdKey getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThresholdKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ThresholdKey(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.hederahashgraph.api.proto.java.ThresholdKey getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/ThresholdKeyOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/ThresholdKeyOrBuilder.java deleted file mode 100644 index 86c3caad2..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/ThresholdKeyOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface ThresholdKeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.ThresholdKey) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * a valid signature set must have at least this many signatures
-   * 
- * - * uint32 threshold = 1; - */ - int getThreshold(); - - /** - *
-   * list of all the keys that can sign
-   * 
- * - * .proto.KeyList keys = 2; - */ - boolean hasKeys(); - /** - *
-   * list of all the keys that can sign
-   * 
- * - * .proto.KeyList keys = 2; - */ - com.hederahashgraph.api.proto.java.KeyList getKeys(); - /** - *
-   * list of all the keys that can sign
-   * 
- * - * .proto.KeyList keys = 2; - */ - com.hederahashgraph.api.proto.java.KeyListOrBuilder getKeysOrBuilder(); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/ThresholdSignature.java b/target/generated-sources/com/hederahashgraph/api/proto/java/ThresholdSignature.java deleted file mode 100644 index a9db05ae3..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/ThresholdSignature.java +++ /dev/null @@ -1,651 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * A signature corresponding to a ThresholdKey. For an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null. 
- * 
- * - * Protobuf type {@code proto.ThresholdSignature} - */ -public final class ThresholdSignature extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.ThresholdSignature) - ThresholdSignatureOrBuilder { -private static final long serialVersionUID = 0L; - // Use ThresholdSignature.newBuilder() to construct. - private ThresholdSignature(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ThresholdSignature() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ThresholdSignature( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: { - com.hederahashgraph.api.proto.java.SignatureList.Builder subBuilder = null; - if (sigs_ != null) { - subBuilder = sigs_.toBuilder(); - } - sigs_ = input.readMessage(com.hederahashgraph.api.proto.java.SignatureList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sigs_); - sigs_ = subBuilder.buildPartial(); - } - - 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 com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ThresholdSignature_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ThresholdSignature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.ThresholdSignature.class, com.hederahashgraph.api.proto.java.ThresholdSignature.Builder.class); - } - - public static final int SIGS_FIELD_NUMBER = 2; - private com.hederahashgraph.api.proto.java.SignatureList sigs_; - /** - *
-   * for an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null
-   * 
- * - * .proto.SignatureList sigs = 2; - */ - public boolean hasSigs() { - return sigs_ != null; - } - /** - *
-   * for an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null
-   * 
- * - * .proto.SignatureList sigs = 2; - */ - public com.hederahashgraph.api.proto.java.SignatureList getSigs() { - return sigs_ == null ? com.hederahashgraph.api.proto.java.SignatureList.getDefaultInstance() : sigs_; - } - /** - *
-   * for an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null
-   * 
- * - * .proto.SignatureList sigs = 2; - */ - public com.hederahashgraph.api.proto.java.SignatureListOrBuilder getSigsOrBuilder() { - return getSigs(); - } - - 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 (sigs_ != null) { - output.writeMessage(2, getSigs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sigs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSigs()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.hederahashgraph.api.proto.java.ThresholdSignature)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.ThresholdSignature other = (com.hederahashgraph.api.proto.java.ThresholdSignature) obj; - - boolean result = true; - result = result && (hasSigs() == other.hasSigs()); - if (hasSigs()) { - result = result && getSigs() - .equals(other.getSigs()); - } - 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 (hasSigs()) { - hash = (37 * hash) + SIGS_FIELD_NUMBER; - hash = (53 * hash) + getSigs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.ThresholdSignature parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.ThresholdSignature parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ThresholdSignature parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.ThresholdSignature parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ThresholdSignature parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.ThresholdSignature parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ThresholdSignature parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.ThresholdSignature parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ThresholdSignature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.ThresholdSignature parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.ThresholdSignature parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.ThresholdSignature parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.ThresholdSignature prototype) { - return 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; - } - /** - *
-   * A signature corresponding to a ThresholdKey. For an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null. 
-   * 
- * - * Protobuf type {@code proto.ThresholdSignature} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.ThresholdSignature) - com.hederahashgraph.api.proto.java.ThresholdSignatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ThresholdSignature_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ThresholdSignature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.ThresholdSignature.class, com.hederahashgraph.api.proto.java.ThresholdSignature.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.ThresholdSignature.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.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 (sigsBuilder_ == null) { - sigs_ = null; - } else { - sigs_ = null; - sigsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_ThresholdSignature_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.ThresholdSignature getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.ThresholdSignature.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.ThresholdSignature build() { - com.hederahashgraph.api.proto.java.ThresholdSignature result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.ThresholdSignature buildPartial() { - com.hederahashgraph.api.proto.java.ThresholdSignature result = new com.hederahashgraph.api.proto.java.ThresholdSignature(this); - if (sigsBuilder_ == null) { - result.sigs_ = sigs_; - } else { - result.sigs_ = sigsBuilder_.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 com.hederahashgraph.api.proto.java.ThresholdSignature) { - return mergeFrom((com.hederahashgraph.api.proto.java.ThresholdSignature)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.ThresholdSignature other) { - if (other == com.hederahashgraph.api.proto.java.ThresholdSignature.getDefaultInstance()) return this; - if (other.hasSigs()) { - mergeSigs(other.getSigs()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.hederahashgraph.api.proto.java.ThresholdSignature parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.ThresholdSignature) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.hederahashgraph.api.proto.java.SignatureList sigs_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.SignatureList, com.hederahashgraph.api.proto.java.SignatureList.Builder, com.hederahashgraph.api.proto.java.SignatureListOrBuilder> sigsBuilder_; - /** - *
-     * for an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null
-     * 
- * - * .proto.SignatureList sigs = 2; - */ - public boolean hasSigs() { - return sigsBuilder_ != null || sigs_ != null; - } - /** - *
-     * for an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null
-     * 
- * - * .proto.SignatureList sigs = 2; - */ - public com.hederahashgraph.api.proto.java.SignatureList getSigs() { - if (sigsBuilder_ == null) { - return sigs_ == null ? com.hederahashgraph.api.proto.java.SignatureList.getDefaultInstance() : sigs_; - } else { - return sigsBuilder_.getMessage(); - } - } - /** - *
-     * for an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null
-     * 
- * - * .proto.SignatureList sigs = 2; - */ - public Builder setSigs(com.hederahashgraph.api.proto.java.SignatureList value) { - if (sigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sigs_ = value; - onChanged(); - } else { - sigsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * for an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null
-     * 
- * - * .proto.SignatureList sigs = 2; - */ - public Builder setSigs( - com.hederahashgraph.api.proto.java.SignatureList.Builder builderForValue) { - if (sigsBuilder_ == null) { - sigs_ = builderForValue.build(); - onChanged(); - } else { - sigsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * for an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null
-     * 
- * - * .proto.SignatureList sigs = 2; - */ - public Builder mergeSigs(com.hederahashgraph.api.proto.java.SignatureList value) { - if (sigsBuilder_ == null) { - if (sigs_ != null) { - sigs_ = - com.hederahashgraph.api.proto.java.SignatureList.newBuilder(sigs_).mergeFrom(value).buildPartial(); - } else { - sigs_ = value; - } - onChanged(); - } else { - sigsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * for an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null
-     * 
- * - * .proto.SignatureList sigs = 2; - */ - public Builder clearSigs() { - if (sigsBuilder_ == null) { - sigs_ = null; - onChanged(); - } else { - sigs_ = null; - sigsBuilder_ = null; - } - - return this; - } - /** - *
-     * for an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null
-     * 
- * - * .proto.SignatureList sigs = 2; - */ - public com.hederahashgraph.api.proto.java.SignatureList.Builder getSigsBuilder() { - - onChanged(); - return getSigsFieldBuilder().getBuilder(); - } - /** - *
-     * for an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null
-     * 
- * - * .proto.SignatureList sigs = 2; - */ - public com.hederahashgraph.api.proto.java.SignatureListOrBuilder getSigsOrBuilder() { - if (sigsBuilder_ != null) { - return sigsBuilder_.getMessageOrBuilder(); - } else { - return sigs_ == null ? - com.hederahashgraph.api.proto.java.SignatureList.getDefaultInstance() : sigs_; - } - } - /** - *
-     * for an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null
-     * 
- * - * .proto.SignatureList sigs = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.SignatureList, com.hederahashgraph.api.proto.java.SignatureList.Builder, com.hederahashgraph.api.proto.java.SignatureListOrBuilder> - getSigsFieldBuilder() { - if (sigsBuilder_ == null) { - sigsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.SignatureList, com.hederahashgraph.api.proto.java.SignatureList.Builder, com.hederahashgraph.api.proto.java.SignatureListOrBuilder>( - getSigs(), - getParentForChildren(), - isClean()); - sigs_ = null; - } - return sigsBuilder_; - } - @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:proto.ThresholdSignature) - } - - // @@protoc_insertion_point(class_scope:proto.ThresholdSignature) - private static final com.hederahashgraph.api.proto.java.ThresholdSignature DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ThresholdSignature(); - } - - public static com.hederahashgraph.api.proto.java.ThresholdSignature getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThresholdSignature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ThresholdSignature(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.hederahashgraph.api.proto.java.ThresholdSignature getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/ThresholdSignatureOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/ThresholdSignatureOrBuilder.java deleted file mode 100644 index 655157c36..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/ThresholdSignatureOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface ThresholdSignatureOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.ThresholdSignature) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * for an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null
-   * 
- * - * .proto.SignatureList sigs = 2; - */ - boolean hasSigs(); - /** - *
-   * for an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null
-   * 
- * - * .proto.SignatureList sigs = 2; - */ - com.hederahashgraph.api.proto.java.SignatureList getSigs(); - /** - *
-   * for an N-of-M threshold key, this is a list of M signatures, at least N of which must be non-null
-   * 
- * - * .proto.SignatureList sigs = 2; - */ - com.hederahashgraph.api.proto.java.SignatureListOrBuilder getSigsOrBuilder(); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/TransactionFeeSchedule.java b/target/generated-sources/com/hederahashgraph/api/proto/java/TransactionFeeSchedule.java deleted file mode 100644 index bf87731ce..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/TransactionFeeSchedule.java +++ /dev/null @@ -1,764 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * The fees for a specific transaction or query based on the fee data. 
- * 
- * - * Protobuf type {@code proto.TransactionFeeSchedule} - */ -public final class TransactionFeeSchedule extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.TransactionFeeSchedule) - TransactionFeeScheduleOrBuilder { -private static final long serialVersionUID = 0L; - // Use TransactionFeeSchedule.newBuilder() to construct. - private TransactionFeeSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TransactionFeeSchedule() { - hederaFunctionality_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TransactionFeeSchedule( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder 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: { - int rawValue = input.readEnum(); - - hederaFunctionality_ = rawValue; - break; - } - case 18: { - com.hederahashgraph.api.proto.java.FeeData.Builder subBuilder = null; - if (feeData_ != null) { - subBuilder = feeData_.toBuilder(); - } - feeData_ = input.readMessage(com.hederahashgraph.api.proto.java.FeeData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(feeData_); - feeData_ = subBuilder.buildPartial(); - } - - 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 com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_TransactionFeeSchedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_TransactionFeeSchedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.TransactionFeeSchedule.class, com.hederahashgraph.api.proto.java.TransactionFeeSchedule.Builder.class); - } - - public static final int HEDERAFUNCTIONALITY_FIELD_NUMBER = 1; - private int hederaFunctionality_; - /** - *
-   * Specific Transaction or Query
-   * 
- * - * .proto.HederaFunctionality hederaFunctionality = 1; - */ - public int getHederaFunctionalityValue() { - return hederaFunctionality_; - } - /** - *
-   * Specific Transaction or Query
-   * 
- * - * .proto.HederaFunctionality hederaFunctionality = 1; - */ - public com.hederahashgraph.api.proto.java.HederaFunctionality getHederaFunctionality() { - @SuppressWarnings("deprecation") - com.hederahashgraph.api.proto.java.HederaFunctionality result = com.hederahashgraph.api.proto.java.HederaFunctionality.valueOf(hederaFunctionality_); - return result == null ? com.hederahashgraph.api.proto.java.HederaFunctionality.UNRECOGNIZED : result; - } - - public static final int FEEDATA_FIELD_NUMBER = 2; - private com.hederahashgraph.api.proto.java.FeeData feeData_; - /** - *
-   * the fee information about the query/data
-   * 
- * - * .proto.FeeData feeData = 2; - */ - public boolean hasFeeData() { - return feeData_ != null; - } - /** - *
-   * the fee information about the query/data
-   * 
- * - * .proto.FeeData feeData = 2; - */ - public com.hederahashgraph.api.proto.java.FeeData getFeeData() { - return feeData_ == null ? com.hederahashgraph.api.proto.java.FeeData.getDefaultInstance() : feeData_; - } - /** - *
-   * the fee information about the query/data
-   * 
- * - * .proto.FeeData feeData = 2; - */ - public com.hederahashgraph.api.proto.java.FeeDataOrBuilder getFeeDataOrBuilder() { - return getFeeData(); - } - - 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 (hederaFunctionality_ != com.hederahashgraph.api.proto.java.HederaFunctionality.CryptoCreates.getNumber()) { - output.writeEnum(1, hederaFunctionality_); - } - if (feeData_ != null) { - output.writeMessage(2, getFeeData()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (hederaFunctionality_ != com.hederahashgraph.api.proto.java.HederaFunctionality.CryptoCreates.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, hederaFunctionality_); - } - if (feeData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFeeData()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.hederahashgraph.api.proto.java.TransactionFeeSchedule)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.TransactionFeeSchedule other = (com.hederahashgraph.api.proto.java.TransactionFeeSchedule) obj; - - boolean result = true; - result = result && hederaFunctionality_ == other.hederaFunctionality_; - result = result && (hasFeeData() == other.hasFeeData()); - if (hasFeeData()) { - result = result && getFeeData() - .equals(other.getFeeData()); - } - 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) + HEDERAFUNCTIONALITY_FIELD_NUMBER; - hash = (53 * hash) + hederaFunctionality_; - if (hasFeeData()) { - hash = (37 * hash) + FEEDATA_FIELD_NUMBER; - hash = (53 * hash) + getFeeData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.TransactionFeeSchedule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.TransactionFeeSchedule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.TransactionFeeSchedule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.TransactionFeeSchedule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.TransactionFeeSchedule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.TransactionFeeSchedule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.TransactionFeeSchedule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.TransactionFeeSchedule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.TransactionFeeSchedule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.TransactionFeeSchedule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.TransactionFeeSchedule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.TransactionFeeSchedule parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.TransactionFeeSchedule prototype) { - return 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; - } - /** - *
-   * The fees for a specific transaction or query based on the fee data. 
-   * 
- * - * Protobuf type {@code proto.TransactionFeeSchedule} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.TransactionFeeSchedule) - com.hederahashgraph.api.proto.java.TransactionFeeScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_TransactionFeeSchedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_TransactionFeeSchedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.TransactionFeeSchedule.class, com.hederahashgraph.api.proto.java.TransactionFeeSchedule.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.TransactionFeeSchedule.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - hederaFunctionality_ = 0; - - if (feeDataBuilder_ == null) { - feeData_ = null; - } else { - feeData_ = null; - feeDataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_TransactionFeeSchedule_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.TransactionFeeSchedule getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.TransactionFeeSchedule.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.TransactionFeeSchedule build() { - com.hederahashgraph.api.proto.java.TransactionFeeSchedule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.TransactionFeeSchedule buildPartial() { - com.hederahashgraph.api.proto.java.TransactionFeeSchedule result = new com.hederahashgraph.api.proto.java.TransactionFeeSchedule(this); - result.hederaFunctionality_ = hederaFunctionality_; - if (feeDataBuilder_ == null) { - result.feeData_ = feeData_; - } else { - result.feeData_ = feeDataBuilder_.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 com.hederahashgraph.api.proto.java.TransactionFeeSchedule) { - return mergeFrom((com.hederahashgraph.api.proto.java.TransactionFeeSchedule)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.TransactionFeeSchedule other) { - if (other == com.hederahashgraph.api.proto.java.TransactionFeeSchedule.getDefaultInstance()) return this; - if (other.hederaFunctionality_ != 0) { - setHederaFunctionalityValue(other.getHederaFunctionalityValue()); - } - if (other.hasFeeData()) { - mergeFeeData(other.getFeeData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.hederahashgraph.api.proto.java.TransactionFeeSchedule parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.TransactionFeeSchedule) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int hederaFunctionality_ = 0; - /** - *
-     * Specific Transaction or Query
-     * 
- * - * .proto.HederaFunctionality hederaFunctionality = 1; - */ - public int getHederaFunctionalityValue() { - return hederaFunctionality_; - } - /** - *
-     * Specific Transaction or Query
-     * 
- * - * .proto.HederaFunctionality hederaFunctionality = 1; - */ - public Builder setHederaFunctionalityValue(int value) { - hederaFunctionality_ = value; - onChanged(); - return this; - } - /** - *
-     * Specific Transaction or Query
-     * 
- * - * .proto.HederaFunctionality hederaFunctionality = 1; - */ - public com.hederahashgraph.api.proto.java.HederaFunctionality getHederaFunctionality() { - @SuppressWarnings("deprecation") - com.hederahashgraph.api.proto.java.HederaFunctionality result = com.hederahashgraph.api.proto.java.HederaFunctionality.valueOf(hederaFunctionality_); - return result == null ? com.hederahashgraph.api.proto.java.HederaFunctionality.UNRECOGNIZED : result; - } - /** - *
-     * Specific Transaction or Query
-     * 
- * - * .proto.HederaFunctionality hederaFunctionality = 1; - */ - public Builder setHederaFunctionality(com.hederahashgraph.api.proto.java.HederaFunctionality value) { - if (value == null) { - throw new NullPointerException(); - } - - hederaFunctionality_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Specific Transaction or Query
-     * 
- * - * .proto.HederaFunctionality hederaFunctionality = 1; - */ - public Builder clearHederaFunctionality() { - - hederaFunctionality_ = 0; - onChanged(); - return this; - } - - private com.hederahashgraph.api.proto.java.FeeData feeData_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FeeData, com.hederahashgraph.api.proto.java.FeeData.Builder, com.hederahashgraph.api.proto.java.FeeDataOrBuilder> feeDataBuilder_; - /** - *
-     * the fee information about the query/data
-     * 
- * - * .proto.FeeData feeData = 2; - */ - public boolean hasFeeData() { - return feeDataBuilder_ != null || feeData_ != null; - } - /** - *
-     * the fee information about the query/data
-     * 
- * - * .proto.FeeData feeData = 2; - */ - public com.hederahashgraph.api.proto.java.FeeData getFeeData() { - if (feeDataBuilder_ == null) { - return feeData_ == null ? com.hederahashgraph.api.proto.java.FeeData.getDefaultInstance() : feeData_; - } else { - return feeDataBuilder_.getMessage(); - } - } - /** - *
-     * the fee information about the query/data
-     * 
- * - * .proto.FeeData feeData = 2; - */ - public Builder setFeeData(com.hederahashgraph.api.proto.java.FeeData value) { - if (feeDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - feeData_ = value; - onChanged(); - } else { - feeDataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * the fee information about the query/data
-     * 
- * - * .proto.FeeData feeData = 2; - */ - public Builder setFeeData( - com.hederahashgraph.api.proto.java.FeeData.Builder builderForValue) { - if (feeDataBuilder_ == null) { - feeData_ = builderForValue.build(); - onChanged(); - } else { - feeDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * the fee information about the query/data
-     * 
- * - * .proto.FeeData feeData = 2; - */ - public Builder mergeFeeData(com.hederahashgraph.api.proto.java.FeeData value) { - if (feeDataBuilder_ == null) { - if (feeData_ != null) { - feeData_ = - com.hederahashgraph.api.proto.java.FeeData.newBuilder(feeData_).mergeFrom(value).buildPartial(); - } else { - feeData_ = value; - } - onChanged(); - } else { - feeDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * the fee information about the query/data
-     * 
- * - * .proto.FeeData feeData = 2; - */ - public Builder clearFeeData() { - if (feeDataBuilder_ == null) { - feeData_ = null; - onChanged(); - } else { - feeData_ = null; - feeDataBuilder_ = null; - } - - return this; - } - /** - *
-     * the fee information about the query/data
-     * 
- * - * .proto.FeeData feeData = 2; - */ - public com.hederahashgraph.api.proto.java.FeeData.Builder getFeeDataBuilder() { - - onChanged(); - return getFeeDataFieldBuilder().getBuilder(); - } - /** - *
-     * the fee information about the query/data
-     * 
- * - * .proto.FeeData feeData = 2; - */ - public com.hederahashgraph.api.proto.java.FeeDataOrBuilder getFeeDataOrBuilder() { - if (feeDataBuilder_ != null) { - return feeDataBuilder_.getMessageOrBuilder(); - } else { - return feeData_ == null ? - com.hederahashgraph.api.proto.java.FeeData.getDefaultInstance() : feeData_; - } - } - /** - *
-     * the fee information about the query/data
-     * 
- * - * .proto.FeeData feeData = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FeeData, com.hederahashgraph.api.proto.java.FeeData.Builder, com.hederahashgraph.api.proto.java.FeeDataOrBuilder> - getFeeDataFieldBuilder() { - if (feeDataBuilder_ == null) { - feeDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.FeeData, com.hederahashgraph.api.proto.java.FeeData.Builder, com.hederahashgraph.api.proto.java.FeeDataOrBuilder>( - getFeeData(), - getParentForChildren(), - isClean()); - feeData_ = null; - } - return feeDataBuilder_; - } - @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:proto.TransactionFeeSchedule) - } - - // @@protoc_insertion_point(class_scope:proto.TransactionFeeSchedule) - private static final com.hederahashgraph.api.proto.java.TransactionFeeSchedule DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.TransactionFeeSchedule(); - } - - public static com.hederahashgraph.api.proto.java.TransactionFeeSchedule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransactionFeeSchedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TransactionFeeSchedule(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.hederahashgraph.api.proto.java.TransactionFeeSchedule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/TransactionFeeScheduleOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/TransactionFeeScheduleOrBuilder.java deleted file mode 100644 index bfb7b5e56..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/TransactionFeeScheduleOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface TransactionFeeScheduleOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.TransactionFeeSchedule) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Specific Transaction or Query
-   * 
- * - * .proto.HederaFunctionality hederaFunctionality = 1; - */ - int getHederaFunctionalityValue(); - /** - *
-   * Specific Transaction or Query
-   * 
- * - * .proto.HederaFunctionality hederaFunctionality = 1; - */ - com.hederahashgraph.api.proto.java.HederaFunctionality getHederaFunctionality(); - - /** - *
-   * the fee information about the query/data
-   * 
- * - * .proto.FeeData feeData = 2; - */ - boolean hasFeeData(); - /** - *
-   * the fee information about the query/data
-   * 
- * - * .proto.FeeData feeData = 2; - */ - com.hederahashgraph.api.proto.java.FeeData getFeeData(); - /** - *
-   * the fee information about the query/data
-   * 
- * - * .proto.FeeData feeData = 2; - */ - com.hederahashgraph.api.proto.java.FeeDataOrBuilder getFeeDataOrBuilder(); -} diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/TransactionID.java b/target/generated-sources/com/hederahashgraph/api/proto/java/TransactionID.java deleted file mode 100644 index 63bb6f19d..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/TransactionID.java +++ /dev/null @@ -1,880 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -/** - *
- * The ID for a transaction. This is used for retrieving receipts and records for a transaction, for appending to a file right after creating it, for instantiating a smart contract with bytecode in a file just created, and internally by the network for detecting when duplicate transactions are submitted. A user might get a transaction processed faster by submitting it to N nodes, each with a different node account, but all with the same TransactionID. Then, the transaction will take effect when the first of all those nodes submits the transaction and it reaches consensus. The other transactions will not take effect. So this could make the transaction take effect faster, if any given node might be slow. However, the full transaction fee is charged for each transaction, so the total fee is N times as much if the transaction is sent to N nodes. 
- * 
- * - * Protobuf type {@code proto.TransactionID} - */ -public final class TransactionID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.TransactionID) - TransactionIDOrBuilder { -private static final long serialVersionUID = 0L; - // Use TransactionID.newBuilder() to construct. - private TransactionID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TransactionID() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TransactionID( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.hederahashgraph.api.proto.java.Timestamp.Builder subBuilder = null; - if (transactionValidStart_ != null) { - subBuilder = transactionValidStart_.toBuilder(); - } - transactionValidStart_ = input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(transactionValidStart_); - transactionValidStart_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null; - if (accountID_ != null) { - subBuilder = accountID_.toBuilder(); - } - accountID_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(accountID_); - accountID_ = subBuilder.buildPartial(); - } - - 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 com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_TransactionID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_TransactionID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.TransactionID.class, com.hederahashgraph.api.proto.java.TransactionID.Builder.class); - } - - public static final int ACCOUNTID_FIELD_NUMBER = 2; - private com.hederahashgraph.api.proto.java.AccountID accountID_; - /** - *
-   *the account that paid for this transaction
-   * 
- * - * .proto.AccountID accountID = 2; - */ - public boolean hasAccountID() { - return accountID_ != null; - } - /** - *
-   *the account that paid for this transaction
-   * 
- * - * .proto.AccountID accountID = 2; - */ - public com.hederahashgraph.api.proto.java.AccountID getAccountID() { - return accountID_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : accountID_; - } - /** - *
-   *the account that paid for this transaction
-   * 
- * - * .proto.AccountID accountID = 2; - */ - public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIDOrBuilder() { - return getAccountID(); - } - - public static final int TRANSACTIONVALIDSTART_FIELD_NUMBER = 1; - private com.hederahashgraph.api.proto.java.Timestamp transactionValidStart_; - /** - *
-   * the transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
-   * 
- * - * .proto.Timestamp transactionValidStart = 1; - */ - public boolean hasTransactionValidStart() { - return transactionValidStart_ != null; - } - /** - *
-   * the transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
-   * 
- * - * .proto.Timestamp transactionValidStart = 1; - */ - public com.hederahashgraph.api.proto.java.Timestamp getTransactionValidStart() { - return transactionValidStart_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : transactionValidStart_; - } - /** - *
-   * the transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
-   * 
- * - * .proto.Timestamp transactionValidStart = 1; - */ - public com.hederahashgraph.api.proto.java.TimestampOrBuilder getTransactionValidStartOrBuilder() { - return getTransactionValidStart(); - } - - 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 (transactionValidStart_ != null) { - output.writeMessage(1, getTransactionValidStart()); - } - if (accountID_ != null) { - output.writeMessage(2, getAccountID()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (transactionValidStart_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTransactionValidStart()); - } - if (accountID_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAccountID()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.hederahashgraph.api.proto.java.TransactionID)) { - return super.equals(obj); - } - com.hederahashgraph.api.proto.java.TransactionID other = (com.hederahashgraph.api.proto.java.TransactionID) obj; - - boolean result = true; - result = result && (hasAccountID() == other.hasAccountID()); - if (hasAccountID()) { - result = result && getAccountID() - .equals(other.getAccountID()); - } - result = result && (hasTransactionValidStart() == other.hasTransactionValidStart()); - if (hasTransactionValidStart()) { - result = result && getTransactionValidStart() - .equals(other.getTransactionValidStart()); - } - 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 (hasAccountID()) { - hash = (37 * hash) + ACCOUNTID_FIELD_NUMBER; - hash = (53 * hash) + getAccountID().hashCode(); - } - if (hasTransactionValidStart()) { - hash = (37 * hash) + TRANSACTIONVALIDSTART_FIELD_NUMBER; - hash = (53 * hash) + getTransactionValidStart().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.hederahashgraph.api.proto.java.TransactionID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.TransactionID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.TransactionID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.TransactionID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.TransactionID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.hederahashgraph.api.proto.java.TransactionID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.TransactionID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.TransactionID parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.TransactionID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.TransactionID parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.hederahashgraph.api.proto.java.TransactionID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.hederahashgraph.api.proto.java.TransactionID parseFrom( - com.google.protobuf.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(com.hederahashgraph.api.proto.java.TransactionID prototype) { - return 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; - } - /** - *
-   * The ID for a transaction. This is used for retrieving receipts and records for a transaction, for appending to a file right after creating it, for instantiating a smart contract with bytecode in a file just created, and internally by the network for detecting when duplicate transactions are submitted. A user might get a transaction processed faster by submitting it to N nodes, each with a different node account, but all with the same TransactionID. Then, the transaction will take effect when the first of all those nodes submits the transaction and it reaches consensus. The other transactions will not take effect. So this could make the transaction take effect faster, if any given node might be slow. However, the full transaction fee is charged for each transaction, so the total fee is N times as much if the transaction is sent to N nodes. 
-   * 
- * - * Protobuf type {@code proto.TransactionID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.TransactionID) - com.hederahashgraph.api.proto.java.TransactionIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_TransactionID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_TransactionID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.hederahashgraph.api.proto.java.TransactionID.class, com.hederahashgraph.api.proto.java.TransactionID.Builder.class); - } - - // Construct using com.hederahashgraph.api.proto.java.TransactionID.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.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 (accountIDBuilder_ == null) { - accountID_ = null; - } else { - accountID_ = null; - accountIDBuilder_ = null; - } - if (transactionValidStartBuilder_ == null) { - transactionValidStart_ = null; - } else { - transactionValidStart_ = null; - transactionValidStartBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_TransactionID_descriptor; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.TransactionID getDefaultInstanceForType() { - return com.hederahashgraph.api.proto.java.TransactionID.getDefaultInstance(); - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.TransactionID build() { - com.hederahashgraph.api.proto.java.TransactionID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.hederahashgraph.api.proto.java.TransactionID buildPartial() { - com.hederahashgraph.api.proto.java.TransactionID result = new com.hederahashgraph.api.proto.java.TransactionID(this); - if (accountIDBuilder_ == null) { - result.accountID_ = accountID_; - } else { - result.accountID_ = accountIDBuilder_.build(); - } - if (transactionValidStartBuilder_ == null) { - result.transactionValidStart_ = transactionValidStart_; - } else { - result.transactionValidStart_ = transactionValidStartBuilder_.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 com.hederahashgraph.api.proto.java.TransactionID) { - return mergeFrom((com.hederahashgraph.api.proto.java.TransactionID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.hederahashgraph.api.proto.java.TransactionID other) { - if (other == com.hederahashgraph.api.proto.java.TransactionID.getDefaultInstance()) return this; - if (other.hasAccountID()) { - mergeAccountID(other.getAccountID()); - } - if (other.hasTransactionValidStart()) { - mergeTransactionValidStart(other.getTransactionValidStart()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.hederahashgraph.api.proto.java.TransactionID parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.hederahashgraph.api.proto.java.TransactionID) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.hederahashgraph.api.proto.java.AccountID accountID_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> accountIDBuilder_; - /** - *
-     *the account that paid for this transaction
-     * 
- * - * .proto.AccountID accountID = 2; - */ - public boolean hasAccountID() { - return accountIDBuilder_ != null || accountID_ != null; - } - /** - *
-     *the account that paid for this transaction
-     * 
- * - * .proto.AccountID accountID = 2; - */ - public com.hederahashgraph.api.proto.java.AccountID getAccountID() { - if (accountIDBuilder_ == null) { - return accountID_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : accountID_; - } else { - return accountIDBuilder_.getMessage(); - } - } - /** - *
-     *the account that paid for this transaction
-     * 
- * - * .proto.AccountID accountID = 2; - */ - public Builder setAccountID(com.hederahashgraph.api.proto.java.AccountID value) { - if (accountIDBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - accountID_ = value; - onChanged(); - } else { - accountIDBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     *the account that paid for this transaction
-     * 
- * - * .proto.AccountID accountID = 2; - */ - public Builder setAccountID( - com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) { - if (accountIDBuilder_ == null) { - accountID_ = builderForValue.build(); - onChanged(); - } else { - accountIDBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     *the account that paid for this transaction
-     * 
- * - * .proto.AccountID accountID = 2; - */ - public Builder mergeAccountID(com.hederahashgraph.api.proto.java.AccountID value) { - if (accountIDBuilder_ == null) { - if (accountID_ != null) { - accountID_ = - com.hederahashgraph.api.proto.java.AccountID.newBuilder(accountID_).mergeFrom(value).buildPartial(); - } else { - accountID_ = value; - } - onChanged(); - } else { - accountIDBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     *the account that paid for this transaction
-     * 
- * - * .proto.AccountID accountID = 2; - */ - public Builder clearAccountID() { - if (accountIDBuilder_ == null) { - accountID_ = null; - onChanged(); - } else { - accountID_ = null; - accountIDBuilder_ = null; - } - - return this; - } - /** - *
-     *the account that paid for this transaction
-     * 
- * - * .proto.AccountID accountID = 2; - */ - public com.hederahashgraph.api.proto.java.AccountID.Builder getAccountIDBuilder() { - - onChanged(); - return getAccountIDFieldBuilder().getBuilder(); - } - /** - *
-     *the account that paid for this transaction
-     * 
- * - * .proto.AccountID accountID = 2; - */ - public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIDOrBuilder() { - if (accountIDBuilder_ != null) { - return accountIDBuilder_.getMessageOrBuilder(); - } else { - return accountID_ == null ? - com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : accountID_; - } - } - /** - *
-     *the account that paid for this transaction
-     * 
- * - * .proto.AccountID accountID = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> - getAccountIDFieldBuilder() { - if (accountIDBuilder_ == null) { - accountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>( - getAccountID(), - getParentForChildren(), - isClean()); - accountID_ = null; - } - return accountIDBuilder_; - } - - private com.hederahashgraph.api.proto.java.Timestamp transactionValidStart_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> transactionValidStartBuilder_; - /** - *
-     * the transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
-     * 
- * - * .proto.Timestamp transactionValidStart = 1; - */ - public boolean hasTransactionValidStart() { - return transactionValidStartBuilder_ != null || transactionValidStart_ != null; - } - /** - *
-     * the transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
-     * 
- * - * .proto.Timestamp transactionValidStart = 1; - */ - public com.hederahashgraph.api.proto.java.Timestamp getTransactionValidStart() { - if (transactionValidStartBuilder_ == null) { - return transactionValidStart_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : transactionValidStart_; - } else { - return transactionValidStartBuilder_.getMessage(); - } - } - /** - *
-     * the transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
-     * 
- * - * .proto.Timestamp transactionValidStart = 1; - */ - public Builder setTransactionValidStart(com.hederahashgraph.api.proto.java.Timestamp value) { - if (transactionValidStartBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transactionValidStart_ = value; - onChanged(); - } else { - transactionValidStartBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * the transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
-     * 
- * - * .proto.Timestamp transactionValidStart = 1; - */ - public Builder setTransactionValidStart( - com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) { - if (transactionValidStartBuilder_ == null) { - transactionValidStart_ = builderForValue.build(); - onChanged(); - } else { - transactionValidStartBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * the transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
-     * 
- * - * .proto.Timestamp transactionValidStart = 1; - */ - public Builder mergeTransactionValidStart(com.hederahashgraph.api.proto.java.Timestamp value) { - if (transactionValidStartBuilder_ == null) { - if (transactionValidStart_ != null) { - transactionValidStart_ = - com.hederahashgraph.api.proto.java.Timestamp.newBuilder(transactionValidStart_).mergeFrom(value).buildPartial(); - } else { - transactionValidStart_ = value; - } - onChanged(); - } else { - transactionValidStartBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * the transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
-     * 
- * - * .proto.Timestamp transactionValidStart = 1; - */ - public Builder clearTransactionValidStart() { - if (transactionValidStartBuilder_ == null) { - transactionValidStart_ = null; - onChanged(); - } else { - transactionValidStart_ = null; - transactionValidStartBuilder_ = null; - } - - return this; - } - /** - *
-     * the transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
-     * 
- * - * .proto.Timestamp transactionValidStart = 1; - */ - public com.hederahashgraph.api.proto.java.Timestamp.Builder getTransactionValidStartBuilder() { - - onChanged(); - return getTransactionValidStartFieldBuilder().getBuilder(); - } - /** - *
-     * the transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
-     * 
- * - * .proto.Timestamp transactionValidStart = 1; - */ - public com.hederahashgraph.api.proto.java.TimestampOrBuilder getTransactionValidStartOrBuilder() { - if (transactionValidStartBuilder_ != null) { - return transactionValidStartBuilder_.getMessageOrBuilder(); - } else { - return transactionValidStart_ == null ? - com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : transactionValidStart_; - } - } - /** - *
-     * the transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
-     * 
- * - * .proto.Timestamp transactionValidStart = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> - getTransactionValidStartFieldBuilder() { - if (transactionValidStartBuilder_ == null) { - transactionValidStartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>( - getTransactionValidStart(), - getParentForChildren(), - isClean()); - transactionValidStart_ = null; - } - return transactionValidStartBuilder_; - } - @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:proto.TransactionID) - } - - // @@protoc_insertion_point(class_scope:proto.TransactionID) - private static final com.hederahashgraph.api.proto.java.TransactionID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.TransactionID(); - } - - public static com.hederahashgraph.api.proto.java.TransactionID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransactionID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TransactionID(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.hederahashgraph.api.proto.java.TransactionID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/target/generated-sources/com/hederahashgraph/api/proto/java/TransactionIDOrBuilder.java b/target/generated-sources/com/hederahashgraph/api/proto/java/TransactionIDOrBuilder.java deleted file mode 100644 index 8caee799b..000000000 --- a/target/generated-sources/com/hederahashgraph/api/proto/java/TransactionIDOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BasicTypes.proto - -package com.hederahashgraph.api.proto.java; - -public interface TransactionIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.TransactionID) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   *the account that paid for this transaction
-   * 
- * - * .proto.AccountID accountID = 2; - */ - boolean hasAccountID(); - /** - *
-   *the account that paid for this transaction
-   * 
- * - * .proto.AccountID accountID = 2; - */ - com.hederahashgraph.api.proto.java.AccountID getAccountID(); - /** - *
-   *the account that paid for this transaction
-   * 
- * - * .proto.AccountID accountID = 2; - */ - com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIDOrBuilder(); - - /** - *
-   * the transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
-   * 
- * - * .proto.Timestamp transactionValidStart = 1; - */ - boolean hasTransactionValidStart(); - /** - *
-   * the transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
-   * 
- * - * .proto.Timestamp transactionValidStart = 1; - */ - com.hederahashgraph.api.proto.java.Timestamp getTransactionValidStart(); - /** - *
-   * the transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
-   * 
- * - * .proto.Timestamp transactionValidStart = 1; - */ - com.hederahashgraph.api.proto.java.TimestampOrBuilder getTransactionValidStartOrBuilder(); -} diff --git a/target/javadoc-bundle-options/javadoc-options-javadoc-resources.xml b/target/javadoc-bundle-options/javadoc-options-javadoc-resources.xml deleted file mode 100644 index 361cf5cd4..000000000 --- a/target/javadoc-bundle-options/javadoc-options-javadoc-resources.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - org.json.* - - src/main/javadoc - diff --git a/target/javadoc-bundle-options/package-list b/target/javadoc-bundle-options/package-list deleted file mode 100644 index 59d423285..000000000 --- a/target/javadoc-bundle-options/package-list +++ /dev/null @@ -1,217 +0,0 @@ -java.applet -java.awt -java.awt.color -java.awt.datatransfer -java.awt.dnd -java.awt.event -java.awt.font -java.awt.geom -java.awt.im -java.awt.im.spi -java.awt.image -java.awt.image.renderable -java.awt.print -java.beans -java.beans.beancontext -java.io -java.lang -java.lang.annotation -java.lang.instrument -java.lang.invoke -java.lang.management -java.lang.ref -java.lang.reflect -java.math -java.net -java.nio -java.nio.channels -java.nio.channels.spi -java.nio.charset -java.nio.charset.spi -java.nio.file -java.nio.file.attribute -java.nio.file.spi -java.rmi -java.rmi.activation -java.rmi.dgc -java.rmi.registry -java.rmi.server -java.security -java.security.acl -java.security.cert -java.security.interfaces -java.security.spec -java.sql -java.text -java.text.spi -java.time -java.time.chrono -java.time.format -java.time.temporal -java.time.zone -java.util -java.util.concurrent -java.util.concurrent.atomic -java.util.concurrent.locks -java.util.function -java.util.jar -java.util.logging -java.util.prefs -java.util.regex -java.util.spi -java.util.stream -java.util.zip -javax.accessibility -javax.activation -javax.activity -javax.annotation -javax.annotation.processing -javax.crypto -javax.crypto.interfaces -javax.crypto.spec -javax.imageio -javax.imageio.event -javax.imageio.metadata -javax.imageio.plugins.bmp -javax.imageio.plugins.jpeg -javax.imageio.spi -javax.imageio.stream -javax.jws -javax.jws.soap -javax.lang.model -javax.lang.model.element -javax.lang.model.type -javax.lang.model.util -javax.management -javax.management.loading -javax.management.modelmbean -javax.management.monitor -javax.management.openmbean -javax.management.relation -javax.management.remote -javax.management.remote.rmi -javax.management.timer -javax.naming -javax.naming.directory -javax.naming.event -javax.naming.ldap -javax.naming.spi -javax.net -javax.net.ssl -javax.print -javax.print.attribute -javax.print.attribute.standard -javax.print.event -javax.rmi -javax.rmi.CORBA -javax.rmi.ssl -javax.script -javax.security.auth -javax.security.auth.callback -javax.security.auth.kerberos -javax.security.auth.login -javax.security.auth.spi -javax.security.auth.x500 -javax.security.cert -javax.security.sasl -javax.sound.midi -javax.sound.midi.spi -javax.sound.sampled -javax.sound.sampled.spi -javax.sql -javax.sql.rowset -javax.sql.rowset.serial -javax.sql.rowset.spi -javax.swing -javax.swing.border -javax.swing.colorchooser -javax.swing.event -javax.swing.filechooser -javax.swing.plaf -javax.swing.plaf.basic -javax.swing.plaf.metal -javax.swing.plaf.multi -javax.swing.plaf.nimbus -javax.swing.plaf.synth -javax.swing.table -javax.swing.text -javax.swing.text.html -javax.swing.text.html.parser -javax.swing.text.rtf -javax.swing.tree -javax.swing.undo -javax.tools -javax.transaction -javax.transaction.xa -javax.xml -javax.xml.bind -javax.xml.bind.annotation -javax.xml.bind.annotation.adapters -javax.xml.bind.attachment -javax.xml.bind.helpers -javax.xml.bind.util -javax.xml.crypto -javax.xml.crypto.dom -javax.xml.crypto.dsig -javax.xml.crypto.dsig.dom -javax.xml.crypto.dsig.keyinfo -javax.xml.crypto.dsig.spec -javax.xml.datatype -javax.xml.namespace -javax.xml.parsers -javax.xml.soap -javax.xml.stream -javax.xml.stream.events -javax.xml.stream.util -javax.xml.transform -javax.xml.transform.dom -javax.xml.transform.sax -javax.xml.transform.stax -javax.xml.transform.stream -javax.xml.validation -javax.xml.ws -javax.xml.ws.handler -javax.xml.ws.handler.soap -javax.xml.ws.http -javax.xml.ws.soap -javax.xml.ws.spi -javax.xml.ws.spi.http -javax.xml.ws.wsaddressing -javax.xml.xpath -org.ietf.jgss -org.omg.CORBA -org.omg.CORBA.DynAnyPackage -org.omg.CORBA.ORBPackage -org.omg.CORBA.TypeCodePackage -org.omg.CORBA.portable -org.omg.CORBA_2_3 -org.omg.CORBA_2_3.portable -org.omg.CosNaming -org.omg.CosNaming.NamingContextExtPackage -org.omg.CosNaming.NamingContextPackage -org.omg.Dynamic -org.omg.DynamicAny -org.omg.DynamicAny.DynAnyFactoryPackage -org.omg.DynamicAny.DynAnyPackage -org.omg.IOP -org.omg.IOP.CodecFactoryPackage -org.omg.IOP.CodecPackage -org.omg.Messaging -org.omg.PortableInterceptor -org.omg.PortableInterceptor.ORBInitInfoPackage -org.omg.PortableServer -org.omg.PortableServer.CurrentPackage -org.omg.PortableServer.POAManagerPackage -org.omg.PortableServer.POAPackage -org.omg.PortableServer.ServantLocatorPackage -org.omg.PortableServer.portable -org.omg.SendingContext -org.omg.stub.java.rmi -org.w3c.dom -org.w3c.dom.bootstrap -org.w3c.dom.events -org.w3c.dom.ls -org.w3c.dom.views -org.xml.sax -org.xml.sax.ext -org.xml.sax.helpers diff --git a/target/log4j.xml b/target/log4j.xml deleted file mode 100644 index 2fcff478c..000000000 --- a/target/log4j.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/target/logback.xml b/target/logback.xml deleted file mode 100644 index 76c76d778..000000000 --- a/target/logback.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n - - - - - - - \ No newline at end of file diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties deleted file mode 100644 index c39636be3..000000000 --- a/target/maven-archiver/pom.properties +++ /dev/null @@ -1,5 +0,0 @@ -#Generated by Maven -#Wed Jan 09 16:11:56 CET 2019 -groupId=com.hedera -artifactId=sdk -version=0.1.0 diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst deleted file mode 100644 index e69de29bb..000000000 diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst deleted file mode 100644 index 96dc36aca..000000000 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ /dev/null @@ -1,116 +0,0 @@ -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/contract/HederaContract.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/TransactionFeeSchedule.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/cryptography/EDKeyPair.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/account/HederaProxyStakers.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/cryptography/CryptoUtils.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/cryptography/ECKeyPair.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaKeyUUIDDescription.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/TransactionID.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/ShardID.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/Key.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/file/HederaFileCreateDefaults.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/query/package-info.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/org/json/simple/JSONObject.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/contract/package-info.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaKeySignatureList.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/cryptography/KeyPair.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaFileID.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/NodeAddressOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/account/HederaProxyStaker.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaKeyList.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/org/json/simple/JSONStreamAware.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/transaction/HederaTransactionBody.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/RealmIDOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionState.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/ContractIDOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBody.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/FeeData.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/account/package-info.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaKeySignature.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/org/json/simple/parser/ContainerFactory.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/KeyOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/org/json/simple/JSONValue.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/AdminDelete.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/AccountIDOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/org/json/simple/JSONArray.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/file/package-info.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/ThresholdKey.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/FileID.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/ThresholdSignatureOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/ThresholdKeyOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/ShardIDOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/TransactionFeeScheduleOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/KeyListOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaDuration.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/org/json/simple/parser/JSONParser.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaContractID.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/AccountID.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaAccountID.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/node/HederaNode.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/account/HederaClaim.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/cryptography/AbstractKeyPair.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/account/HederaAccountUpdateValues.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/FeeSchedule.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaSignature.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/KeyList.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/NodeAddressBook.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaKeySignatureThreshold.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/transaction/package-info.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/cryptography/Reference.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaKeyThreshold.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/cryptography/WordList.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/cryptography/Seed.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaKey.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/contract/HederaContractLogInfo.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/FeeComponents.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/transaction/HederaTransactionResult.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionID.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaTimeStamp.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/package-info.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBody.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/Signature.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/org/json/simple/parser/Yytoken.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/NodeAddress.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/account/HederaAccountCreateDefaults.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/transaction/HederaTransaction.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaEntityID.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/node/package-info.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/SignatureListOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/TransactionIDOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/AdminUndeleteTransactionBodyOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/FeeComponentsOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/query/HederaQueryBySolidityID.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/ContractID.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/org/json/simple/parser/ContentHandler.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/AdminUndelete.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/FeeDataOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/RealmID.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/query/HederaQueryHeader.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/SignatureList.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/account/HederaAccount.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/AdminDeleteTransactionBodyOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/FileIDOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/NodeAddressBookOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/HederaFunctionality.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/account/HederaAccountAmount.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/cryptography/HederaCryptoKeyPair.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/org/json/simple/JSONAware.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/org/json/simple/parser/ParseException.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionReceipt.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionRecord.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/file/HederaFile.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/query/HederaQuery.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaTransactionAndQueryDefaults.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/org/json/simple/parser/Yylex.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaSignatureThreshold.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaShardID.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaSignatureList.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/Utilities.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/org/json/simple/ItemList.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/BasicTypes.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/cryptography/package-info.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/common/HederaRealmID.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/ThresholdSignature.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/FeeScheduleOrBuilder.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/sdk/src/main/java/com/hedera/sdk/contract/HederaContractFunctionResult.java -/Users/gregscullard/dev/github.com/hashgraph/hedera-sdk-java/target/generated-sources/com/hederahashgraph/api/proto/java/SignatureOrBuilder.java diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst deleted file mode 100644 index e69de29bb..000000000 diff --git a/target/original-sdk-0.1.0.jar b/target/original-sdk-0.1.0.jar deleted file mode 100644 index 50e7237d2..000000000 Binary files a/target/original-sdk-0.1.0.jar and /dev/null differ diff --git a/target/sdk-0.1.0-sources.jar b/target/sdk-0.1.0-sources.jar deleted file mode 100644 index bf0f8e2d9..000000000 Binary files a/target/sdk-0.1.0-sources.jar and /dev/null differ diff --git a/target/sdk-0.1.0.jar b/target/sdk-0.1.0.jar deleted file mode 100644 index 16bec2444..000000000 Binary files a/target/sdk-0.1.0.jar and /dev/null differ diff --git a/target/simpleStorage.bin b/target/simpleStorage.bin deleted file mode 100644 index 14249b376..000000000 --- a/target/simpleStorage.bin +++ /dev/null @@ -1 +0,0 @@ -6060604052341561000f57600080fd5b60bb8061001d6000396000f30060606040526004361060485763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166360fe47b18114604d5780636d4ce63c146062575b600080fd5b3415605757600080fd5b60606004356084565b005b3415606c57600080fd5b60726089565b60405190815260200160405180910390f35b600055565b600054905600a165627a7a7230582072a5864a3117a6e2b49814ad58ad464948107c84f5ec0db02b91e0f26a4a0fcc0029 \ No newline at end of file