Files
bdledger-java-sdk/src/main/java/bdchain/api/grpc/BlockOrBuilder.java

142 lines
3.0 KiB
Java
Raw Normal View History

2018-09-11 22:31:21 +08:00
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
public interface BlockOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.Block)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* 区块号当区块处于待确认状态时为`null`
* </pre>
*
* <code>uint64 number = 1;</code>
*/
long getNumber();
/**
* <pre>
* 区块的哈希当区块处于待确认状态时为`null`
* </pre>
*
* <code>bytes hash = 2;</code>
*/
com.google.protobuf.ByteString getHash();
/**
* <pre>
* 父区块的哈希
* </pre>
*
* <code>bytes parent_hash = 3;</code>
*/
com.google.protobuf.ByteString getParentHash();
/**
* <pre>
* 见证者账户地址
* </pre>
*
* <code>bytes witness = 4;</code>
*/
com.google.protobuf.ByteString getWitness();
/**
* <pre>
* 区块产生时的UNIX时间戳
* </pre>
*
* <code>uint64 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.Transaction transactions = 8;</code>
*/
java.util.List<bdchain.api.grpc.Transaction>
getTransactionsList();
/**
* <pre>
* 事务对象的数组或为空
* </pre>
*
* <code>repeated .bdchain.api.Transaction transactions = 8;</code>
*/
bdchain.api.grpc.Transaction getTransactions(int index);
/**
* <pre>
* 事务对象的数组或为空
* </pre>
*
* <code>repeated .bdchain.api.Transaction transactions = 8;</code>
*/
int getTransactionsCount();
/**
* <pre>
* 事务对象的数组或为空
* </pre>
*
* <code>repeated .bdchain.api.Transaction transactions = 8;</code>
*/
java.util.List<? extends bdchain.api.grpc.TransactionOrBuilder>
getTransactionsOrBuilderList();
/**
* <pre>
* 事务对象的数组或为空
* </pre>
*
* <code>repeated .bdchain.api.Transaction transactions = 8;</code>
*/
bdchain.api.grpc.TransactionOrBuilder getTransactionsOrBuilder(
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);
}