2018-09-11 22:31:21 +08:00
|
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
2019-04-23 15:58:21 +08:00
|
|
|
|
// source: bdchain/api/tx_ledger.proto
|
2018-09-11 22:31:21 +08:00
|
|
|
|
|
2019-04-23 15:58:21 +08:00
|
|
|
|
package bdchain.api.grpc.txledger;
|
2018-09-11 22:31:21 +08:00
|
|
|
|
|
|
|
|
|
|
public interface BlockOrBuilder extends
|
2019-04-23 15:58:21 +08:00
|
|
|
|
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.Block)
|
2018-09-11 22:31:21 +08:00
|
|
|
|
com.google.protobuf.MessageOrBuilder {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* 事务链本地区块索引,当区块处于待确认状态时为`null`
|
2018-09-11 22:31:21 +08:00
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>uint64 index = 1;</code>
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
2019-04-23 15:58:21 +08:00
|
|
|
|
long getIndex();
|
2018-09-11 22:31:21 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 区块的哈希,当区块处于待确认状态时为`null`
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
|
|
|
|
|
* <code>bytes hash = 2;</code>
|
|
|
|
|
|
*/
|
|
|
|
|
|
com.google.protobuf.ByteString getHash();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 父区块的哈希
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>repeated bytes parent_hashes = 3;</code>
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
2019-04-23 15:58:21 +08:00
|
|
|
|
java.util.List<com.google.protobuf.ByteString> getParentHashesList();
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 父区块的哈希
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
|
|
|
|
|
* <code>repeated bytes parent_hashes = 3;</code>
|
|
|
|
|
|
*/
|
|
|
|
|
|
int getParentHashesCount();
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 父区块的哈希
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
|
|
|
|
|
* <code>repeated bytes parent_hashes = 3;</code>
|
|
|
|
|
|
*/
|
|
|
|
|
|
com.google.protobuf.ByteString getParentHashes(int index);
|
2018-09-11 22:31:21 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 见证者账户地址
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>repeated bytes witnesses = 4;</code>
|
|
|
|
|
|
*/
|
|
|
|
|
|
java.util.List<com.google.protobuf.ByteString> getWitnessesList();
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 见证者账户地址
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
|
|
|
|
|
* <code>repeated bytes witnesses = 4;</code>
|
|
|
|
|
|
*/
|
|
|
|
|
|
int getWitnessesCount();
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 见证者账户地址
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
|
|
|
|
|
* <code>repeated bytes witnesses = 4;</code>
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
2019-04-23 15:58:21 +08:00
|
|
|
|
com.google.protobuf.ByteString getWitnesses(int index);
|
2018-09-11 22:31:21 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* 区块产生时的 UNIX 时间戳,单位为秒
|
2018-09-11 22:31:21 +08:00
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>int64 timestamp = 5;</code>
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
|
|
|
|
|
long getTimestamp();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 区块大小的字节数
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
|
|
|
|
|
* <code>uint64 size = 6;</code>
|
|
|
|
|
|
*/
|
|
|
|
|
|
long getSize();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 区块的事务树根
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
|
|
|
|
|
* <code>bytes transactions_root = 7;</code>
|
|
|
|
|
|
*/
|
|
|
|
|
|
com.google.protobuf.ByteString getTransactionsRoot();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 事务对象的数组,或为空
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
2019-04-23 15:58:21 +08:00
|
|
|
|
java.util.List<bdchain.api.grpc.txledger.Transaction>
|
2018-09-11 22:31:21 +08:00
|
|
|
|
getTransactionsList();
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 事务对象的数组,或为空
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
2019-04-23 15:58:21 +08:00
|
|
|
|
bdchain.api.grpc.txledger.Transaction getTransactions(int index);
|
2018-09-11 22:31:21 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 事务对象的数组,或为空
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
|
|
|
|
|
int getTransactionsCount();
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 事务对象的数组,或为空
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
2019-04-23 15:58:21 +08:00
|
|
|
|
java.util.List<? extends bdchain.api.grpc.txledger.TransactionOrBuilder>
|
2018-09-11 22:31:21 +08:00
|
|
|
|
getTransactionsOrBuilderList();
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 事务对象的数组,或为空
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
2019-04-23 15:58:21 +08:00
|
|
|
|
bdchain.api.grpc.txledger.TransactionOrBuilder getTransactionsOrBuilder(
|
2018-09-11 22:31:21 +08:00
|
|
|
|
int index);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 32字节的交易哈希的数组,或为空
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
|
|
|
|
|
* <code>repeated bytes transaction_hashes = 9;</code>
|
|
|
|
|
|
*/
|
|
|
|
|
|
java.util.List<com.google.protobuf.ByteString> getTransactionHashesList();
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 32字节的交易哈希的数组,或为空
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
|
|
|
|
|
* <code>repeated bytes transaction_hashes = 9;</code>
|
|
|
|
|
|
*/
|
|
|
|
|
|
int getTransactionHashesCount();
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 32字节的交易哈希的数组,或为空
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
|
|
|
|
|
* <code>repeated bytes transaction_hashes = 9;</code>
|
|
|
|
|
|
*/
|
|
|
|
|
|
com.google.protobuf.ByteString getTransactionHashes(int index);
|
|
|
|
|
|
}
|