-
- All Implemented Interfaces:
-
cash.z.wallet.sdk.internal.rpc.CompactFormats.CompactBlockOrBuilder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,java.lang.Cloneable
public final class CompactFormats.CompactBlock.Builder extends GeneratedMessageLite.Builder<CompactFormats.CompactBlock, CompactFormats.CompactBlock.Builder> implements CompactFormats.CompactBlockOrBuilder
Protobuf typeCompactBlock is a packaging of ONLY the data from a block that's needed to: 1. Detect a payment to your shielded Sapling address 2. Detect a spend of your shielded Sapling notes 3. Update your witnesses to generate new Sapling spend proofs.{@code cash.z.wallet.sdk.rpc.CompactBlock}
-
-
Method Summary
Modifier and Type Method Description intgetProtoVersion()the version of this wire format, for storageuint32 protoVersion = 1;CompactFormats.CompactBlock.BuildersetProtoVersion(int value)the version of this wire format, for storageuint32 protoVersion = 1;CompactFormats.CompactBlock.BuilderclearProtoVersion()the version of this wire format, for storageuint32 protoVersion = 1;longgetHeight()the height of this blockuint64 height = 2;CompactFormats.CompactBlock.BuildersetHeight(long value)the height of this blockuint64 height = 2;CompactFormats.CompactBlock.BuilderclearHeight()the height of this blockuint64 height = 2;ByteStringgetHash()the ID (hash) of this block, same as in block explorersbytes hash = 3;CompactFormats.CompactBlock.BuildersetHash(ByteString value)the ID (hash) of this block, same as in block explorersbytes hash = 3;CompactFormats.CompactBlock.BuilderclearHash()the ID (hash) of this block, same as in block explorersbytes hash = 3;ByteStringgetPrevHash()the ID (hash) of this block's predecessorbytes prevHash = 4;CompactFormats.CompactBlock.BuildersetPrevHash(ByteString value)the ID (hash) of this block's predecessorbytes prevHash = 4;CompactFormats.CompactBlock.BuilderclearPrevHash()the ID (hash) of this block's predecessorbytes prevHash = 4;intgetTime()Unix epoch time when the block was mineduint32 time = 5;CompactFormats.CompactBlock.BuildersetTime(int value)Unix epoch time when the block was mineduint32 time = 5;CompactFormats.CompactBlock.BuilderclearTime()Unix epoch time when the block was mineduint32 time = 5;ByteStringgetHeader()(hash, prevHash, and time) OR (full header)bytes header = 6;CompactFormats.CompactBlock.BuildersetHeader(ByteString value)(hash, prevHash, and time) OR (full header)bytes header = 6;CompactFormats.CompactBlock.BuilderclearHeader()(hash, prevHash, and time) OR (full header)bytes header = 6;List<CompactFormats.CompactTx>getVtxList()zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;intgetVtxCount()zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;CompactFormats.CompactTxgetVtx(int index)zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;CompactFormats.CompactBlock.BuildersetVtx(int index, CompactFormats.CompactTx value)zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;CompactFormats.CompactBlock.BuildersetVtx(int index, CompactFormats.CompactTx.Builder builderForValue)zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;CompactFormats.CompactBlock.BuilderaddVtx(CompactFormats.CompactTx value)zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;CompactFormats.CompactBlock.BuilderaddVtx(int index, CompactFormats.CompactTx value)zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;CompactFormats.CompactBlock.BuilderaddVtx(CompactFormats.CompactTx.Builder builderForValue)zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;CompactFormats.CompactBlock.BuilderaddVtx(int index, CompactFormats.CompactTx.Builder builderForValue)zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;CompactFormats.CompactBlock.BuilderaddAllVtx(Iterable<out CompactFormats.CompactTx> values)zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;CompactFormats.CompactBlock.BuilderclearVtx()zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;CompactFormats.CompactBlock.BuilderremoveVtx(int index)zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;booleanhasChainMetadata()information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;CompactFormats.ChainMetadatagetChainMetadata()information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;CompactFormats.CompactBlock.BuildersetChainMetadata(CompactFormats.ChainMetadata value)information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;CompactFormats.CompactBlock.BuildersetChainMetadata(CompactFormats.ChainMetadata.Builder builderForValue)information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;CompactFormats.CompactBlock.BuildermergeChainMetadata(CompactFormats.ChainMetadata value)information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;CompactFormats.CompactBlock.BuilderclearChainMetadata()information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;-
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
-
getProtoVersion
int getProtoVersion()
the version of this wire format, for storageuint32 protoVersion = 1;
-
setProtoVersion
CompactFormats.CompactBlock.Builder setProtoVersion(int value)
the version of this wire format, for storageuint32 protoVersion = 1;- Parameters:
value- The protoVersion to set.
-
clearProtoVersion
CompactFormats.CompactBlock.Builder clearProtoVersion()
the version of this wire format, for storageuint32 protoVersion = 1;
-
getHeight
long getHeight()
the height of this blockuint64 height = 2;
-
setHeight
CompactFormats.CompactBlock.Builder setHeight(long value)
the height of this blockuint64 height = 2;- Parameters:
value- The height to set.
-
clearHeight
CompactFormats.CompactBlock.Builder clearHeight()
the height of this blockuint64 height = 2;
-
getHash
ByteString getHash()
the ID (hash) of this block, same as in block explorersbytes hash = 3;
-
setHash
CompactFormats.CompactBlock.Builder setHash(ByteString value)
the ID (hash) of this block, same as in block explorersbytes hash = 3;- Parameters:
value- The hash to set.
-
clearHash
CompactFormats.CompactBlock.Builder clearHash()
the ID (hash) of this block, same as in block explorersbytes hash = 3;
-
getPrevHash
ByteString getPrevHash()
the ID (hash) of this block's predecessorbytes prevHash = 4;
-
setPrevHash
CompactFormats.CompactBlock.Builder setPrevHash(ByteString value)
the ID (hash) of this block's predecessorbytes prevHash = 4;- Parameters:
value- The prevHash to set.
-
clearPrevHash
CompactFormats.CompactBlock.Builder clearPrevHash()
the ID (hash) of this block's predecessorbytes prevHash = 4;
-
getTime
int getTime()
Unix epoch time when the block was mineduint32 time = 5;
-
setTime
CompactFormats.CompactBlock.Builder setTime(int value)
Unix epoch time when the block was mineduint32 time = 5;- Parameters:
value- The time to set.
-
clearTime
CompactFormats.CompactBlock.Builder clearTime()
Unix epoch time when the block was mineduint32 time = 5;
-
getHeader
ByteString getHeader()
(hash, prevHash, and time) OR (full header)bytes header = 6;
-
setHeader
CompactFormats.CompactBlock.Builder setHeader(ByteString value)
(hash, prevHash, and time) OR (full header)bytes header = 6;- Parameters:
value- The header to set.
-
clearHeader
CompactFormats.CompactBlock.Builder clearHeader()
(hash, prevHash, and time) OR (full header)bytes header = 6;
-
getVtxList
List<CompactFormats.CompactTx> getVtxList()
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
getVtxCount
int getVtxCount()
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
getVtx
CompactFormats.CompactTx getVtx(int index)
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
setVtx
CompactFormats.CompactBlock.Builder setVtx(int index, CompactFormats.CompactTx value)
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
setVtx
CompactFormats.CompactBlock.Builder setVtx(int index, CompactFormats.CompactTx.Builder builderForValue)
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
addVtx
CompactFormats.CompactBlock.Builder addVtx(CompactFormats.CompactTx value)
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
addVtx
CompactFormats.CompactBlock.Builder addVtx(int index, CompactFormats.CompactTx value)
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
addVtx
CompactFormats.CompactBlock.Builder addVtx(CompactFormats.CompactTx.Builder builderForValue)
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
addVtx
CompactFormats.CompactBlock.Builder addVtx(int index, CompactFormats.CompactTx.Builder builderForValue)
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
addAllVtx
CompactFormats.CompactBlock.Builder addAllVtx(Iterable<out CompactFormats.CompactTx> values)
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
clearVtx
CompactFormats.CompactBlock.Builder clearVtx()
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
removeVtx
CompactFormats.CompactBlock.Builder removeVtx(int index)
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
hasChainMetadata
boolean hasChainMetadata()
information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;
-
getChainMetadata
CompactFormats.ChainMetadata getChainMetadata()
information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;
-
setChainMetadata
CompactFormats.CompactBlock.Builder setChainMetadata(CompactFormats.ChainMetadata value)
information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;
-
setChainMetadata
CompactFormats.CompactBlock.Builder setChainMetadata(CompactFormats.ChainMetadata.Builder builderForValue)
information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;
-
mergeChainMetadata
CompactFormats.CompactBlock.Builder mergeChainMetadata(CompactFormats.ChainMetadata value)
information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;
-
clearChainMetadata
CompactFormats.CompactBlock.Builder clearChainMetadata()
information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;
-
-
-
-