2019-04-24 00:18:08 +08:00

174 lines
3.8 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc.txledger;
public interface BlockOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.Block)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* 事务链本地区块索引,当区块处于待确认状态时为`null`
* </pre>
*
* <code>uint64 index = 1;</code>
*/
long getIndex();
/**
* <pre>
* 区块的哈希,当区块处于待确认状态时为`null`
* </pre>
*
* <code>bytes hash = 2;</code>
*/
com.google.protobuf.ByteString getHash();
/**
* <pre>
* 父区块的哈希
* </pre>
*
* <code>repeated bytes parent_hashes = 3;</code>
*/
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);
/**
* <pre>
* 见证者账户地址
* </pre>
*
* <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>
*/
com.google.protobuf.ByteString getWitnesses(int index);
/**
* <pre>
* 区块产生时的 UNIX 时间戳,单位为秒
* </pre>
*
* <code>int64 timestamp = 5;</code>
*/
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>
*
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
*/
java.util.List<bdchain.api.grpc.txledger.Transaction>
getTransactionsList();
/**
* <pre>
* 事务对象的数组,或为空
* </pre>
*
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
*/
bdchain.api.grpc.txledger.Transaction getTransactions(int index);
/**
* <pre>
* 事务对象的数组,或为空
* </pre>
*
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
*/
int getTransactionsCount();
/**
* <pre>
* 事务对象的数组,或为空
* </pre>
*
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
*/
java.util.List<? extends bdchain.api.grpc.txledger.TransactionOrBuilder>
getTransactionsOrBuilderList();
/**
* <pre>
* 事务对象的数组,或为空
* </pre>
*
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
*/
bdchain.api.grpc.txledger.TransactionOrBuilder getTransactionsOrBuilder(
int index);
/**
* <pre>
* 20字节的交易哈希的数组或为空
* </pre>
*
* <code>repeated bytes transaction_hashes = 9;</code>
*/
java.util.List<com.google.protobuf.ByteString> getTransactionHashesList();
/**
* <pre>
* 20字节的交易哈希的数组或为空
* </pre>
*
* <code>repeated bytes transaction_hashes = 9;</code>
*/
int getTransactionHashesCount();
/**
* <pre>
* 20字节的交易哈希的数组或为空
* </pre>
*
* <code>repeated bytes transaction_hashes = 9;</code>
*/
com.google.protobuf.ByteString getTransactionHashes(int index);
}