Update gRPC API
This commit is contained in:
157
src/main/java/bdchain/api/grpc/acchain/BlockOrBuilder.java
Normal file
157
src/main/java/bdchain/api/grpc/acchain/BlockOrBuilder.java
Normal file
@@ -0,0 +1,157 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/ac_chain.proto
|
||||
|
||||
package bdchain.api.grpc.acchain;
|
||||
|
||||
public interface BlockOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.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>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.acchain.Transaction transactions = 8;</code>
|
||||
*/
|
||||
java.util.List<bdchain.api.grpc.acchain.Transaction>
|
||||
getTransactionsList();
|
||||
/**
|
||||
* <pre>
|
||||
* 事务对象的数组,或为空
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdchain.api.acchain.Transaction transactions = 8;</code>
|
||||
*/
|
||||
bdchain.api.grpc.acchain.Transaction getTransactions(int index);
|
||||
/**
|
||||
* <pre>
|
||||
* 事务对象的数组,或为空
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdchain.api.acchain.Transaction transactions = 8;</code>
|
||||
*/
|
||||
int getTransactionsCount();
|
||||
/**
|
||||
* <pre>
|
||||
* 事务对象的数组,或为空
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdchain.api.acchain.Transaction transactions = 8;</code>
|
||||
*/
|
||||
java.util.List<? extends bdchain.api.grpc.acchain.TransactionOrBuilder>
|
||||
getTransactionsOrBuilderList();
|
||||
/**
|
||||
* <pre>
|
||||
* 事务对象的数组,或为空
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdchain.api.acchain.Transaction transactions = 8;</code>
|
||||
*/
|
||||
bdchain.api.grpc.acchain.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);
|
||||
}
|
||||
Reference in New Issue
Block a user