Package org.bdware.bdledger.api.grpc.pb
Interface CommonProto.BlockOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CommonProto.Block,CommonProto.Block.Builder
- Enclosing class:
CommonProto
public static interface CommonProto.BlockOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ByteString产块者账户地址com.google.protobuf.ByteString产块者签名com.google.protobuf.ByteStringgetHash()区块的哈希,当区块处于待确认状态时为`null`longgetNonce()这个区块之前产块者产生的区块数量com.google.protobuf.ByteStringgetParentHashes(int index) 父区块的哈希int父区块的哈希List<com.google.protobuf.ByteString>父区块的哈希longgetSize()区块大小的字节数long区块产生时的 UNIX 时间戳,单位为秒int区块包含的事务数量com.google.protobuf.ByteStringgetTransactionHashes(int index) 20字节的事务哈希的数组,或为空int20字节的事务哈希的数组,或为空List<com.google.protobuf.ByteString>20字节的事务哈希的数组,或为空getTransactions(int index) 事务对象的数组,或为空int事务对象的数组,或为空事务对象的数组,或为空getTransactionsOrBuilder(int index) 事务对象的数组,或为空List<? extends CommonProto.TransactionOrBuilder>事务对象的数组,或为空com.google.protobuf.ByteString区块的事务默克尔树根com.google.protobuf.ByteStringgetWitnesses(int index) 见证者账户地址int见证者账户地址List<com.google.protobuf.ByteString>见证者账户地址com.google.protobuf.ByteStringgetWitnessSignatures(int index) 见证者签名int见证者签名List<com.google.protobuf.ByteString>见证者签名Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getHash
com.google.protobuf.ByteString getHash()区块的哈希,当区块处于待确认状态时为`null`
bytes hash = 1;- Returns:
- The hash.
-
getCreator
com.google.protobuf.ByteString getCreator()产块者账户地址
bytes creator = 2;- Returns:
- The creator.
-
getNonce
long getNonce()这个区块之前产块者产生的区块数量
uint64 nonce = 3;- Returns:
- The nonce.
-
getParentHashesList
List<com.google.protobuf.ByteString> getParentHashesList()父区块的哈希
repeated bytes parent_hashes = 4;- Returns:
- A list containing the parentHashes.
-
getParentHashesCount
int getParentHashesCount()父区块的哈希
repeated bytes parent_hashes = 4;- Returns:
- The count of parentHashes.
-
getParentHashes
com.google.protobuf.ByteString getParentHashes(int index) 父区块的哈希
repeated bytes parent_hashes = 4;- Parameters:
index- The index of the element to return.- Returns:
- The parentHashes at the given index.
-
getWitnessesList
List<com.google.protobuf.ByteString> getWitnessesList()见证者账户地址
repeated bytes witnesses = 5;- Returns:
- A list containing the witnesses.
-
getWitnessesCount
int getWitnessesCount()见证者账户地址
repeated bytes witnesses = 5;- Returns:
- The count of witnesses.
-
getWitnesses
com.google.protobuf.ByteString getWitnesses(int index) 见证者账户地址
repeated bytes witnesses = 5;- Parameters:
index- The index of the element to return.- Returns:
- The witnesses at the given index.
-
getTimestamp
long getTimestamp()区块产生时的 UNIX 时间戳,单位为秒
int64 timestamp = 6;- Returns:
- The timestamp.
-
getSize
long getSize()区块大小的字节数
uint64 size = 7;- Returns:
- The size.
-
getTransactionCount
int getTransactionCount()区块包含的事务数量
uint32 transaction_count = 8;- Returns:
- The transactionCount.
-
getTransactionsRoot
com.google.protobuf.ByteString getTransactionsRoot()区块的事务默克尔树根
bytes transactions_root = 9;- Returns:
- The transactionsRoot.
-
getTransactionsList
List<CommonProto.Transaction> getTransactionsList()事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10; -
getTransactions
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10; -
getTransactionsCount
int getTransactionsCount()事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10; -
getTransactionsOrBuilderList
List<? extends CommonProto.TransactionOrBuilder> getTransactionsOrBuilderList()事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10; -
getTransactionsOrBuilder
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10; -
getTransactionHashesList
List<com.google.protobuf.ByteString> getTransactionHashesList()20字节的事务哈希的数组,或为空
repeated bytes transaction_hashes = 11;- Returns:
- A list containing the transactionHashes.
-
getTransactionHashesCount
int getTransactionHashesCount()20字节的事务哈希的数组,或为空
repeated bytes transaction_hashes = 11;- Returns:
- The count of transactionHashes.
-
getTransactionHashes
com.google.protobuf.ByteString getTransactionHashes(int index) 20字节的事务哈希的数组,或为空
repeated bytes transaction_hashes = 11;- Parameters:
index- The index of the element to return.- Returns:
- The transactionHashes at the given index.
-
getCreatorSignature
com.google.protobuf.ByteString getCreatorSignature()产块者签名
bytes creator_signature = 12;- Returns:
- The creatorSignature.
-
getWitnessSignaturesList
List<com.google.protobuf.ByteString> getWitnessSignaturesList()见证者签名
repeated bytes witness_signatures = 13;- Returns:
- A list containing the witnessSignatures.
-
getWitnessSignaturesCount
int getWitnessSignaturesCount()见证者签名
repeated bytes witness_signatures = 13;- Returns:
- The count of witnessSignatures.
-
getWitnessSignatures
com.google.protobuf.ByteString getWitnessSignatures(int index) 见证者签名
repeated bytes witness_signatures = 13;- Parameters:
index- The index of the element to return.- Returns:
- The witnessSignatures at the given index.
-