类 CommonProto.Block.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
org.bdware.bdledger.api.grpc.pb.CommonProto.Block.Builder
- 所有已实现的接口:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,CommonProto.BlockOrBuilder
- 封闭类:
- CommonProto.Block
public static final class CommonProto.Block.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
implements CommonProto.BlockOrBuilder
Protobuf type
bdware.bdledger.api.Block
-
方法概要
修饰符和类型方法说明addAllParentHashes(Iterable<? extends com.google.protobuf.ByteString> values)
父区块的哈希addAllTransactionHashes(Iterable<? extends com.google.protobuf.ByteString> values)
20字节的交易哈希的数组,或为空addAllTransactions(Iterable<? extends CommonProto.Transaction> values)
事务对象的数组,或为空addAllWitnesses(Iterable<? extends com.google.protobuf.ByteString> values)
见证者账户地址addParentHashes(com.google.protobuf.ByteString value)
父区块的哈希addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addTransactionHashes(com.google.protobuf.ByteString value)
20字节的交易哈希的数组,或为空addTransactions(int index, CommonProto.Transaction value)
事务对象的数组,或为空addTransactions(int index, CommonProto.Transaction.Builder builderForValue)
事务对象的数组,或为空事务对象的数组,或为空addTransactions(CommonProto.Transaction.Builder builderForValue)
事务对象的数组,或为空事务对象的数组,或为空addTransactionsBuilder(int index)
事务对象的数组,或为空addWitnesses(com.google.protobuf.ByteString value)
见证者账户地址build()
clear()
产块者账户地址clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
区块的哈希,当区块处于待确认状态时为`null`这个区块之前产块者产生的区块数量clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
父区块的哈希区块大小的字节数区块产生时的 UNIX 时间戳,单位为秒区块包含的事务数量20字节的交易哈希的数组,或为空事务对象的数组,或为空区块的事务默克尔树根见证者账户地址clone()
com.google.protobuf.ByteString
产块者账户地址static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.ByteString
getHash()
区块的哈希,当区块处于待确认状态时为`null`long
getNonce()
这个区块之前产块者产生的区块数量com.google.protobuf.ByteString
getParentHashes(int index)
父区块的哈希int
父区块的哈希List<com.google.protobuf.ByteString>
父区块的哈希long
getSize()
区块大小的字节数long
区块产生时的 UNIX 时间戳,单位为秒int
区块包含的事务数量com.google.protobuf.ByteString
getTransactionHashes(int index)
20字节的交易哈希的数组,或为空int
20字节的交易哈希的数组,或为空List<com.google.protobuf.ByteString>
20字节的交易哈希的数组,或为空getTransactions(int index)
事务对象的数组,或为空getTransactionsBuilder(int index)
事务对象的数组,或为空事务对象的数组,或为空int
事务对象的数组,或为空事务对象的数组,或为空getTransactionsOrBuilder(int index)
事务对象的数组,或为空List<? extends CommonProto.TransactionOrBuilder>
事务对象的数组,或为空com.google.protobuf.ByteString
区块的事务默克尔树根com.google.protobuf.ByteString
getWitnesses(int index)
见证者账户地址int
见证者账户地址List<com.google.protobuf.ByteString>
见证者账户地址protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
boolean
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
mergeFrom(com.google.protobuf.Message other)
mergeFrom(CommonProto.Block other)
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
removeTransactions(int index)
事务对象的数组,或为空setCreator(com.google.protobuf.ByteString value)
产块者账户地址setHash(com.google.protobuf.ByteString value)
区块的哈希,当区块处于待确认状态时为`null`setNonce(long value)
这个区块之前产块者产生的区块数量setParentHashes(int index, com.google.protobuf.ByteString value)
父区块的哈希setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setSize(long value)
区块大小的字节数setTimestamp(long value)
区块产生时的 UNIX 时间戳,单位为秒setTransactionCount(int value)
区块包含的事务数量setTransactionHashes(int index, com.google.protobuf.ByteString value)
20字节的交易哈希的数组,或为空setTransactions(int index, CommonProto.Transaction value)
事务对象的数组,或为空setTransactions(int index, CommonProto.Transaction.Builder builderForValue)
事务对象的数组,或为空setTransactionsRoot(com.google.protobuf.ByteString value)
区块的事务默克尔树根setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setWitnesses(int index, com.google.protobuf.ByteString value)
见证者账户地址从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
从类继承的方法 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
从接口继承的方法 com.google.protobuf.MessageLite.Builder
mergeFrom
从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- 指定者:
internalGetFieldAccessorTable
在类中com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
clear
- 指定者:
clear
在接口中com.google.protobuf.Message.Builder
- 指定者:
clear
在接口中com.google.protobuf.MessageLite.Builder
- 覆盖:
clear
在类中com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- 指定者:
getDescriptorForType
在接口中com.google.protobuf.Message.Builder
- 指定者:
getDescriptorForType
在接口中com.google.protobuf.MessageOrBuilder
- 覆盖:
getDescriptorForType
在类中com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
getDefaultInstanceForType
- 指定者:
getDefaultInstanceForType
在接口中com.google.protobuf.MessageLiteOrBuilder
- 指定者:
getDefaultInstanceForType
在接口中com.google.protobuf.MessageOrBuilder
-
build
- 指定者:
build
在接口中com.google.protobuf.Message.Builder
- 指定者:
build
在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
- 指定者:
buildPartial
在接口中com.google.protobuf.Message.Builder
- 指定者:
buildPartial
在接口中com.google.protobuf.MessageLite.Builder
-
clone
- 指定者:
clone
在接口中com.google.protobuf.Message.Builder
- 指定者:
clone
在接口中com.google.protobuf.MessageLite.Builder
- 覆盖:
clone
在类中com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
setField
public CommonProto.Block.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)- 指定者:
setField
在接口中com.google.protobuf.Message.Builder
- 覆盖:
setField
在类中com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
clearField
- 指定者:
clearField
在接口中com.google.protobuf.Message.Builder
- 覆盖:
clearField
在类中com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
clearOneof
- 指定者:
clearOneof
在接口中com.google.protobuf.Message.Builder
- 覆盖:
clearOneof
在类中com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
setRepeatedField
public CommonProto.Block.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)- 指定者:
setRepeatedField
在接口中com.google.protobuf.Message.Builder
- 覆盖:
setRepeatedField
在类中com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
addRepeatedField
public CommonProto.Block.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)- 指定者:
addRepeatedField
在接口中com.google.protobuf.Message.Builder
- 覆盖:
addRepeatedField
在类中com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
mergeFrom
- 指定者:
mergeFrom
在接口中com.google.protobuf.Message.Builder
- 覆盖:
mergeFrom
在类中com.google.protobuf.AbstractMessage.Builder<CommonProto.Block.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- 指定者:
isInitialized
在接口中com.google.protobuf.MessageLiteOrBuilder
- 覆盖:
isInitialized
在类中com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
mergeFrom
public CommonProto.Block.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException- 指定者:
mergeFrom
在接口中com.google.protobuf.Message.Builder
- 指定者:
mergeFrom
在接口中com.google.protobuf.MessageLite.Builder
- 覆盖:
mergeFrom
在类中com.google.protobuf.AbstractMessage.Builder<CommonProto.Block.Builder>
- 抛出:
IOException
-
getHash
public com.google.protobuf.ByteString getHash()区块的哈希,当区块处于待确认状态时为`null`
bytes hash = 1;
- 指定者:
getHash
在接口中CommonProto.BlockOrBuilder
- 返回:
- The hash.
-
setHash
区块的哈希,当区块处于待确认状态时为`null`
bytes hash = 1;
- 参数:
value
- The hash to set.- 返回:
- This builder for chaining.
-
clearHash
区块的哈希,当区块处于待确认状态时为`null`
bytes hash = 1;
- 返回:
- This builder for chaining.
-
getCreator
public com.google.protobuf.ByteString getCreator()产块者账户地址
bytes creator = 2;
- 指定者:
getCreator
在接口中CommonProto.BlockOrBuilder
- 返回:
- The creator.
-
setCreator
产块者账户地址
bytes creator = 2;
- 参数:
value
- The creator to set.- 返回:
- This builder for chaining.
-
clearCreator
产块者账户地址
bytes creator = 2;
- 返回:
- This builder for chaining.
-
getNonce
public long getNonce()这个区块之前产块者产生的区块数量
uint64 nonce = 3;
- 指定者:
getNonce
在接口中CommonProto.BlockOrBuilder
- 返回:
- The nonce.
-
setNonce
这个区块之前产块者产生的区块数量
uint64 nonce = 3;
- 参数:
value
- The nonce to set.- 返回:
- This builder for chaining.
-
clearNonce
这个区块之前产块者产生的区块数量
uint64 nonce = 3;
- 返回:
- This builder for chaining.
-
getParentHashesList
父区块的哈希
repeated bytes parent_hashes = 4;
- 指定者:
getParentHashesList
在接口中CommonProto.BlockOrBuilder
- 返回:
- A list containing the parentHashes.
-
getParentHashesCount
public int getParentHashesCount()父区块的哈希
repeated bytes parent_hashes = 4;
- 指定者:
getParentHashesCount
在接口中CommonProto.BlockOrBuilder
- 返回:
- The count of parentHashes.
-
getParentHashes
public com.google.protobuf.ByteString getParentHashes(int index)父区块的哈希
repeated bytes parent_hashes = 4;
- 指定者:
getParentHashes
在接口中CommonProto.BlockOrBuilder
- 参数:
index
- The index of the element to return.- 返回:
- The parentHashes at the given index.
-
setParentHashes
父区块的哈希
repeated bytes parent_hashes = 4;
- 参数:
index
- The index to set the value at.value
- The parentHashes to set.- 返回:
- This builder for chaining.
-
addParentHashes
父区块的哈希
repeated bytes parent_hashes = 4;
- 参数:
value
- The parentHashes to add.- 返回:
- This builder for chaining.
-
addAllParentHashes
public CommonProto.Block.Builder addAllParentHashes(Iterable<? extends com.google.protobuf.ByteString> values)父区块的哈希
repeated bytes parent_hashes = 4;
- 参数:
values
- The parentHashes to add.- 返回:
- This builder for chaining.
-
clearParentHashes
父区块的哈希
repeated bytes parent_hashes = 4;
- 返回:
- This builder for chaining.
-
getWitnessesList
见证者账户地址
repeated bytes witnesses = 5;
- 指定者:
getWitnessesList
在接口中CommonProto.BlockOrBuilder
- 返回:
- A list containing the witnesses.
-
getWitnessesCount
public int getWitnessesCount()见证者账户地址
repeated bytes witnesses = 5;
- 指定者:
getWitnessesCount
在接口中CommonProto.BlockOrBuilder
- 返回:
- The count of witnesses.
-
getWitnesses
public com.google.protobuf.ByteString getWitnesses(int index)见证者账户地址
repeated bytes witnesses = 5;
- 指定者:
getWitnesses
在接口中CommonProto.BlockOrBuilder
- 参数:
index
- The index of the element to return.- 返回:
- The witnesses at the given index.
-
setWitnesses
见证者账户地址
repeated bytes witnesses = 5;
- 参数:
index
- The index to set the value at.value
- The witnesses to set.- 返回:
- This builder for chaining.
-
addWitnesses
见证者账户地址
repeated bytes witnesses = 5;
- 参数:
value
- The witnesses to add.- 返回:
- This builder for chaining.
-
addAllWitnesses
public CommonProto.Block.Builder addAllWitnesses(Iterable<? extends com.google.protobuf.ByteString> values)见证者账户地址
repeated bytes witnesses = 5;
- 参数:
values
- The witnesses to add.- 返回:
- This builder for chaining.
-
clearWitnesses
见证者账户地址
repeated bytes witnesses = 5;
- 返回:
- This builder for chaining.
-
getTimestamp
public long getTimestamp()区块产生时的 UNIX 时间戳,单位为秒
int64 timestamp = 6;
- 指定者:
getTimestamp
在接口中CommonProto.BlockOrBuilder
- 返回:
- The timestamp.
-
setTimestamp
区块产生时的 UNIX 时间戳,单位为秒
int64 timestamp = 6;
- 参数:
value
- The timestamp to set.- 返回:
- This builder for chaining.
-
clearTimestamp
区块产生时的 UNIX 时间戳,单位为秒
int64 timestamp = 6;
- 返回:
- This builder for chaining.
-
getSize
public long getSize()区块大小的字节数
uint64 size = 7;
- 指定者:
getSize
在接口中CommonProto.BlockOrBuilder
- 返回:
- The size.
-
setSize
区块大小的字节数
uint64 size = 7;
- 参数:
value
- The size to set.- 返回:
- This builder for chaining.
-
clearSize
区块大小的字节数
uint64 size = 7;
- 返回:
- This builder for chaining.
-
getTransactionCount
public int getTransactionCount()区块包含的事务数量
uint32 transaction_count = 8;
- 指定者:
getTransactionCount
在接口中CommonProto.BlockOrBuilder
- 返回:
- The transactionCount.
-
setTransactionCount
区块包含的事务数量
uint32 transaction_count = 8;
- 参数:
value
- The transactionCount to set.- 返回:
- This builder for chaining.
-
clearTransactionCount
区块包含的事务数量
uint32 transaction_count = 8;
- 返回:
- This builder for chaining.
-
getTransactionsRoot
public com.google.protobuf.ByteString getTransactionsRoot()区块的事务默克尔树根
bytes transactions_root = 9;
- 指定者:
getTransactionsRoot
在接口中CommonProto.BlockOrBuilder
- 返回:
- The transactionsRoot.
-
setTransactionsRoot
区块的事务默克尔树根
bytes transactions_root = 9;
- 参数:
value
- The transactionsRoot to set.- 返回:
- This builder for chaining.
-
clearTransactionsRoot
区块的事务默克尔树根
bytes transactions_root = 9;
- 返回:
- This builder for chaining.
-
getTransactionsList
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
-
getTransactionsCount
public int getTransactionsCount()事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
-
getTransactions
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
- 指定者:
getTransactions
在接口中CommonProto.BlockOrBuilder
-
setTransactions
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
-
setTransactions
public CommonProto.Block.Builder setTransactions(int index, CommonProto.Transaction.Builder builderForValue)事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
-
addTransactions
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
-
addTransactions
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
-
addTransactions
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
-
addTransactions
public CommonProto.Block.Builder addTransactions(int index, CommonProto.Transaction.Builder builderForValue)事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
-
addAllTransactions
public CommonProto.Block.Builder addAllTransactions(Iterable<? extends CommonProto.Transaction> values)事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
-
clearTransactions
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
-
removeTransactions
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
-
getTransactionsBuilder
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
-
getTransactionsOrBuilder
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
-
getTransactionsOrBuilderList
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
-
addTransactionsBuilder
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
-
addTransactionsBuilder
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
-
getTransactionsBuilderList
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
-
getTransactionHashesList
20字节的交易哈希的数组,或为空
repeated bytes transaction_hashes = 11;
- 指定者:
getTransactionHashesList
在接口中CommonProto.BlockOrBuilder
- 返回:
- A list containing the transactionHashes.
-
getTransactionHashesCount
public int getTransactionHashesCount()20字节的交易哈希的数组,或为空
repeated bytes transaction_hashes = 11;
- 指定者:
getTransactionHashesCount
在接口中CommonProto.BlockOrBuilder
- 返回:
- The count of transactionHashes.
-
getTransactionHashes
public com.google.protobuf.ByteString getTransactionHashes(int index)20字节的交易哈希的数组,或为空
repeated bytes transaction_hashes = 11;
- 指定者:
getTransactionHashes
在接口中CommonProto.BlockOrBuilder
- 参数:
index
- The index of the element to return.- 返回:
- The transactionHashes at the given index.
-
setTransactionHashes
public CommonProto.Block.Builder setTransactionHashes(int index, com.google.protobuf.ByteString value)20字节的交易哈希的数组,或为空
repeated bytes transaction_hashes = 11;
- 参数:
index
- The index to set the value at.value
- The transactionHashes to set.- 返回:
- This builder for chaining.
-
addTransactionHashes
20字节的交易哈希的数组,或为空
repeated bytes transaction_hashes = 11;
- 参数:
value
- The transactionHashes to add.- 返回:
- This builder for chaining.
-
addAllTransactionHashes
public CommonProto.Block.Builder addAllTransactionHashes(Iterable<? extends com.google.protobuf.ByteString> values)20字节的交易哈希的数组,或为空
repeated bytes transaction_hashes = 11;
- 参数:
values
- The transactionHashes to add.- 返回:
- This builder for chaining.
-
clearTransactionHashes
20字节的交易哈希的数组,或为空
repeated bytes transaction_hashes = 11;
- 返回:
- This builder for chaining.
-
setUnknownFields
public final CommonProto.Block.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- 指定者:
setUnknownFields
在接口中com.google.protobuf.Message.Builder
- 覆盖:
setUnknownFields
在类中com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
mergeUnknownFields
public final CommonProto.Block.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- 指定者:
mergeUnknownFields
在接口中com.google.protobuf.Message.Builder
- 覆盖:
mergeUnknownFields
在类中com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-