-
- All Implemented Interfaces:
-
cash.z.wallet.sdk.internal.rpc.CompactFormats.CompactTxOrBuilder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,java.lang.Cloneable
public final class CompactFormats.CompactTx.Builder extends GeneratedMessageLite.Builder<CompactFormats.CompactTx, CompactFormats.CompactTx.Builder> implements CompactFormats.CompactTxOrBuilder
Protobuf typeCompactTx contains the minimum information for a wallet to know if this transaction is relevant to it (either pays to it or spends from it) via shielded elements only. This message will not encode a transparent-to-transparent transaction.{@code cash.z.wallet.sdk.rpc.CompactTx}
-
-
Method Summary
Modifier and Type Method Description longgetIndex()Index and hash will allow the receiver to call out to chain explorers or other data structures to retrieve more information about this transaction.uint64 index = 1;CompactFormats.CompactTx.BuildersetIndex(long value)Index and hash will allow the receiver to call out to chain explorers or other data structures to retrieve more information about this transaction.uint64 index = 1;CompactFormats.CompactTx.BuilderclearIndex()Index and hash will allow the receiver to call out to chain explorers or other data structures to retrieve more information about this transaction.uint64 index = 1;ByteStringgetHash()the ID (hash) of this transaction, same as in block explorersbytes hash = 2;CompactFormats.CompactTx.BuildersetHash(ByteString value)the ID (hash) of this transaction, same as in block explorersbytes hash = 2;CompactFormats.CompactTx.BuilderclearHash()the ID (hash) of this transaction, same as in block explorersbytes hash = 2;intgetFee()The transaction fee: present if server can provide. In the case of a stateless server and a transaction with transparent inputs, this will be unset because the calculation requires reference to prior transactions. If there are no transparent inputs, the fee will be calculable as: valueBalanceSapling + valueBalanceOrchard + sum(vPubNew) - sum(vPubOld) - sum(tOut)uint32 fee = 3;CompactFormats.CompactTx.BuildersetFee(int value)The transaction fee: present if server can provide. In the case of a stateless server and a transaction with transparent inputs, this will be unset because the calculation requires reference to prior transactions. If there are no transparent inputs, the fee will be calculable as: valueBalanceSapling + valueBalanceOrchard + sum(vPubNew) - sum(vPubOld) - sum(tOut)uint32 fee = 3;CompactFormats.CompactTx.BuilderclearFee()The transaction fee: present if server can provide. In the case of a stateless server and a transaction with transparent inputs, this will be unset because the calculation requires reference to prior transactions. If there are no transparent inputs, the fee will be calculable as: valueBalanceSapling + valueBalanceOrchard + sum(vPubNew) - sum(vPubOld) - sum(tOut)uint32 fee = 3;List<CompactFormats.CompactSaplingSpend>getSpendsList()repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;intgetSpendsCount()repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;CompactFormats.CompactSaplingSpendgetSpends(int index)repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;CompactFormats.CompactTx.BuildersetSpends(int index, CompactFormats.CompactSaplingSpend value)repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;CompactFormats.CompactTx.BuildersetSpends(int index, CompactFormats.CompactSaplingSpend.Builder builderForValue)repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;CompactFormats.CompactTx.BuilderaddSpends(CompactFormats.CompactSaplingSpend value)repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;CompactFormats.CompactTx.BuilderaddSpends(int index, CompactFormats.CompactSaplingSpend value)repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;CompactFormats.CompactTx.BuilderaddSpends(CompactFormats.CompactSaplingSpend.Builder builderForValue)repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;CompactFormats.CompactTx.BuilderaddSpends(int index, CompactFormats.CompactSaplingSpend.Builder builderForValue)repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;CompactFormats.CompactTx.BuilderaddAllSpends(Iterable<out CompactFormats.CompactSaplingSpend> values)repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;CompactFormats.CompactTx.BuilderclearSpends()repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;CompactFormats.CompactTx.BuilderremoveSpends(int index)repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;List<CompactFormats.CompactSaplingOutput>getOutputsList()repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;intgetOutputsCount()repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;CompactFormats.CompactSaplingOutputgetOutputs(int index)repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;CompactFormats.CompactTx.BuildersetOutputs(int index, CompactFormats.CompactSaplingOutput value)repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;CompactFormats.CompactTx.BuildersetOutputs(int index, CompactFormats.CompactSaplingOutput.Builder builderForValue)repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;CompactFormats.CompactTx.BuilderaddOutputs(CompactFormats.CompactSaplingOutput value)repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;CompactFormats.CompactTx.BuilderaddOutputs(int index, CompactFormats.CompactSaplingOutput value)repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;CompactFormats.CompactTx.BuilderaddOutputs(CompactFormats.CompactSaplingOutput.Builder builderForValue)repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;CompactFormats.CompactTx.BuilderaddOutputs(int index, CompactFormats.CompactSaplingOutput.Builder builderForValue)repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;CompactFormats.CompactTx.BuilderaddAllOutputs(Iterable<out CompactFormats.CompactSaplingOutput> values)repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;CompactFormats.CompactTx.BuilderclearOutputs()repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;CompactFormats.CompactTx.BuilderremoveOutputs(int index)repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;List<CompactFormats.CompactOrchardAction>getActionsList()repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;intgetActionsCount()repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;CompactFormats.CompactOrchardActiongetActions(int index)repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;CompactFormats.CompactTx.BuildersetActions(int index, CompactFormats.CompactOrchardAction value)repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;CompactFormats.CompactTx.BuildersetActions(int index, CompactFormats.CompactOrchardAction.Builder builderForValue)repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;CompactFormats.CompactTx.BuilderaddActions(CompactFormats.CompactOrchardAction value)repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;CompactFormats.CompactTx.BuilderaddActions(int index, CompactFormats.CompactOrchardAction value)repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;CompactFormats.CompactTx.BuilderaddActions(CompactFormats.CompactOrchardAction.Builder builderForValue)repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;CompactFormats.CompactTx.BuilderaddActions(int index, CompactFormats.CompactOrchardAction.Builder builderForValue)repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;CompactFormats.CompactTx.BuilderaddAllActions(Iterable<out CompactFormats.CompactOrchardAction> values)repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;CompactFormats.CompactTx.BuilderclearActions()repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;CompactFormats.CompactTx.BuilderremoveActions(int index)repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, getDefaultInstanceForType, isInitialized, mergeFrom -
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
mergeDelimitedFrom -
Methods inherited from class com.google.protobuf.MessageLite.Builder
build, buildPartial, clear, clone, mergeFrom -
Methods inherited from class com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getIndex
long getIndex()
Index and hash will allow the receiver to call out to chain explorers or other data structures to retrieve more information about this transaction.uint64 index = 1;
-
setIndex
CompactFormats.CompactTx.Builder setIndex(long value)
Index and hash will allow the receiver to call out to chain explorers or other data structures to retrieve more information about this transaction.uint64 index = 1;- Parameters:
value- The index to set.
-
clearIndex
CompactFormats.CompactTx.Builder clearIndex()
Index and hash will allow the receiver to call out to chain explorers or other data structures to retrieve more information about this transaction.uint64 index = 1;
-
getHash
ByteString getHash()
the ID (hash) of this transaction, same as in block explorersbytes hash = 2;
-
setHash
CompactFormats.CompactTx.Builder setHash(ByteString value)
the ID (hash) of this transaction, same as in block explorersbytes hash = 2;- Parameters:
value- The hash to set.
-
clearHash
CompactFormats.CompactTx.Builder clearHash()
the ID (hash) of this transaction, same as in block explorersbytes hash = 2;
-
getFee
int getFee()
The transaction fee: present if server can provide. In the case of a stateless server and a transaction with transparent inputs, this will be unset because the calculation requires reference to prior transactions. If there are no transparent inputs, the fee will be calculable as: valueBalanceSapling + valueBalanceOrchard + sum(vPubNew) - sum(vPubOld) - sum(tOut)uint32 fee = 3;
-
setFee
CompactFormats.CompactTx.Builder setFee(int value)
The transaction fee: present if server can provide. In the case of a stateless server and a transaction with transparent inputs, this will be unset because the calculation requires reference to prior transactions. If there are no transparent inputs, the fee will be calculable as: valueBalanceSapling + valueBalanceOrchard + sum(vPubNew) - sum(vPubOld) - sum(tOut)uint32 fee = 3;- Parameters:
value- The fee to set.
-
clearFee
CompactFormats.CompactTx.Builder clearFee()
The transaction fee: present if server can provide. In the case of a stateless server and a transaction with transparent inputs, this will be unset because the calculation requires reference to prior transactions. If there are no transparent inputs, the fee will be calculable as: valueBalanceSapling + valueBalanceOrchard + sum(vPubNew) - sum(vPubOld) - sum(tOut)uint32 fee = 3;
-
getSpendsList
List<CompactFormats.CompactSaplingSpend> getSpendsList()
repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;
-
getSpendsCount
int getSpendsCount()
repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;
-
getSpends
CompactFormats.CompactSaplingSpend getSpends(int index)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;
-
setSpends
CompactFormats.CompactTx.Builder setSpends(int index, CompactFormats.CompactSaplingSpend value)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;
-
setSpends
CompactFormats.CompactTx.Builder setSpends(int index, CompactFormats.CompactSaplingSpend.Builder builderForValue)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;
-
addSpends
CompactFormats.CompactTx.Builder addSpends(CompactFormats.CompactSaplingSpend value)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;
-
addSpends
CompactFormats.CompactTx.Builder addSpends(int index, CompactFormats.CompactSaplingSpend value)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;
-
addSpends
CompactFormats.CompactTx.Builder addSpends(CompactFormats.CompactSaplingSpend.Builder builderForValue)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;
-
addSpends
CompactFormats.CompactTx.Builder addSpends(int index, CompactFormats.CompactSaplingSpend.Builder builderForValue)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;
-
addAllSpends
CompactFormats.CompactTx.Builder addAllSpends(Iterable<out CompactFormats.CompactSaplingSpend> values)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;
-
clearSpends
CompactFormats.CompactTx.Builder clearSpends()
repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;
-
removeSpends
CompactFormats.CompactTx.Builder removeSpends(int index)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingSpend spends = 4;
-
getOutputsList
List<CompactFormats.CompactSaplingOutput> getOutputsList()
repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;
-
getOutputsCount
int getOutputsCount()
repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;
-
getOutputs
CompactFormats.CompactSaplingOutput getOutputs(int index)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;
-
setOutputs
CompactFormats.CompactTx.Builder setOutputs(int index, CompactFormats.CompactSaplingOutput value)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;
-
setOutputs
CompactFormats.CompactTx.Builder setOutputs(int index, CompactFormats.CompactSaplingOutput.Builder builderForValue)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;
-
addOutputs
CompactFormats.CompactTx.Builder addOutputs(CompactFormats.CompactSaplingOutput value)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;
-
addOutputs
CompactFormats.CompactTx.Builder addOutputs(int index, CompactFormats.CompactSaplingOutput value)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;
-
addOutputs
CompactFormats.CompactTx.Builder addOutputs(CompactFormats.CompactSaplingOutput.Builder builderForValue)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;
-
addOutputs
CompactFormats.CompactTx.Builder addOutputs(int index, CompactFormats.CompactSaplingOutput.Builder builderForValue)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;
-
addAllOutputs
CompactFormats.CompactTx.Builder addAllOutputs(Iterable<out CompactFormats.CompactSaplingOutput> values)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;
-
clearOutputs
CompactFormats.CompactTx.Builder clearOutputs()
repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;
-
removeOutputs
CompactFormats.CompactTx.Builder removeOutputs(int index)
repeated .cash.z.wallet.sdk.rpc.CompactSaplingOutput outputs = 5;
-
getActionsList
List<CompactFormats.CompactOrchardAction> getActionsList()
repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;
-
getActionsCount
int getActionsCount()
repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;
-
getActions
CompactFormats.CompactOrchardAction getActions(int index)
repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;
-
setActions
CompactFormats.CompactTx.Builder setActions(int index, CompactFormats.CompactOrchardAction value)
repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;
-
setActions
CompactFormats.CompactTx.Builder setActions(int index, CompactFormats.CompactOrchardAction.Builder builderForValue)
repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;
-
addActions
CompactFormats.CompactTx.Builder addActions(CompactFormats.CompactOrchardAction value)
repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;
-
addActions
CompactFormats.CompactTx.Builder addActions(int index, CompactFormats.CompactOrchardAction value)
repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;
-
addActions
CompactFormats.CompactTx.Builder addActions(CompactFormats.CompactOrchardAction.Builder builderForValue)
repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;
-
addActions
CompactFormats.CompactTx.Builder addActions(int index, CompactFormats.CompactOrchardAction.Builder builderForValue)
repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;
-
addAllActions
CompactFormats.CompactTx.Builder addAllActions(Iterable<out CompactFormats.CompactOrchardAction> values)
repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;
-
clearActions
CompactFormats.CompactTx.Builder clearActions()
repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;
-
removeActions
CompactFormats.CompactTx.Builder removeActions(int index)
repeated .cash.z.wallet.sdk.rpc.CompactOrchardAction actions = 6;
-
-
-
-