Package org.bdware.bdledger.api.grpc.pb
Class 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
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,CommonProto.BlockOrBuilder
- Enclosing class:
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
-
Method Summary
Modifier and TypeMethodDescriptionaddAllParentHashes
(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) 见证者账户地址addAllWitnessSignatures
(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) 见证者账户地址addWitnessSignatures
(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
产块者账户地址com.google.protobuf.ByteString
产块者签名static final 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>
见证者账户地址com.google.protobuf.ByteString
getWitnessSignatures
(int index) 见证者签名int
见证者签名List<com.google.protobuf.ByteString>
见证者签名protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final 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) 产块者账户地址setCreatorSignature
(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) 见证者账户地址setWitnessSignatures
(int index, com.google.protobuf.ByteString value) 见证者签名Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
setField
public CommonProto.Block.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
setRepeatedField
public CommonProto.Block.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
addRepeatedField
public CommonProto.Block.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommonProto.Block.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommonProto.Block.Builder>
- Throws:
IOException
-
getHash
public com.google.protobuf.ByteString getHash()区块的哈希,当区块处于待确认状态时为`null`
bytes hash = 1;
- Specified by:
getHash
in interfaceCommonProto.BlockOrBuilder
- Returns:
- The hash.
-
setHash
区块的哈希,当区块处于待确认状态时为`null`
bytes hash = 1;
- Parameters:
value
- The hash to set.- Returns:
- This builder for chaining.
-
clearHash
区块的哈希,当区块处于待确认状态时为`null`
bytes hash = 1;
- Returns:
- This builder for chaining.
-
getCreator
public com.google.protobuf.ByteString getCreator()产块者账户地址
bytes creator = 2;
- Specified by:
getCreator
in interfaceCommonProto.BlockOrBuilder
- Returns:
- The creator.
-
setCreator
产块者账户地址
bytes creator = 2;
- Parameters:
value
- The creator to set.- Returns:
- This builder for chaining.
-
clearCreator
产块者账户地址
bytes creator = 2;
- Returns:
- This builder for chaining.
-
getNonce
public long getNonce()这个区块之前产块者产生的区块数量
uint64 nonce = 3;
- Specified by:
getNonce
in interfaceCommonProto.BlockOrBuilder
- Returns:
- The nonce.
-
setNonce
这个区块之前产块者产生的区块数量
uint64 nonce = 3;
- Parameters:
value
- The nonce to set.- Returns:
- This builder for chaining.
-
clearNonce
这个区块之前产块者产生的区块数量
uint64 nonce = 3;
- Returns:
- This builder for chaining.
-
getParentHashesList
父区块的哈希
repeated bytes parent_hashes = 4;
- Specified by:
getParentHashesList
in interfaceCommonProto.BlockOrBuilder
- Returns:
- A list containing the parentHashes.
-
getParentHashesCount
public int getParentHashesCount()父区块的哈希
repeated bytes parent_hashes = 4;
- Specified by:
getParentHashesCount
in interfaceCommonProto.BlockOrBuilder
- Returns:
- The count of parentHashes.
-
getParentHashes
public com.google.protobuf.ByteString getParentHashes(int index) 父区块的哈希
repeated bytes parent_hashes = 4;
- Specified by:
getParentHashes
in interfaceCommonProto.BlockOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The parentHashes at the given index.
-
setParentHashes
父区块的哈希
repeated bytes parent_hashes = 4;
- Parameters:
index
- The index to set the value at.value
- The parentHashes to set.- Returns:
- This builder for chaining.
-
addParentHashes
父区块的哈希
repeated bytes parent_hashes = 4;
- Parameters:
value
- The parentHashes to add.- Returns:
- This builder for chaining.
-
addAllParentHashes
public CommonProto.Block.Builder addAllParentHashes(Iterable<? extends com.google.protobuf.ByteString> values) 父区块的哈希
repeated bytes parent_hashes = 4;
- Parameters:
values
- The parentHashes to add.- Returns:
- This builder for chaining.
-
clearParentHashes
父区块的哈希
repeated bytes parent_hashes = 4;
- Returns:
- This builder for chaining.
-
getWitnessesList
见证者账户地址
repeated bytes witnesses = 5;
- Specified by:
getWitnessesList
in interfaceCommonProto.BlockOrBuilder
- Returns:
- A list containing the witnesses.
-
getWitnessesCount
public int getWitnessesCount()见证者账户地址
repeated bytes witnesses = 5;
- Specified by:
getWitnessesCount
in interfaceCommonProto.BlockOrBuilder
- Returns:
- The count of witnesses.
-
getWitnesses
public com.google.protobuf.ByteString getWitnesses(int index) 见证者账户地址
repeated bytes witnesses = 5;
- Specified by:
getWitnesses
in interfaceCommonProto.BlockOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The witnesses at the given index.
-
setWitnesses
见证者账户地址
repeated bytes witnesses = 5;
- Parameters:
index
- The index to set the value at.value
- The witnesses to set.- Returns:
- This builder for chaining.
-
addWitnesses
见证者账户地址
repeated bytes witnesses = 5;
- Parameters:
value
- The witnesses to add.- Returns:
- This builder for chaining.
-
addAllWitnesses
public CommonProto.Block.Builder addAllWitnesses(Iterable<? extends com.google.protobuf.ByteString> values) 见证者账户地址
repeated bytes witnesses = 5;
- Parameters:
values
- The witnesses to add.- Returns:
- This builder for chaining.
-
clearWitnesses
见证者账户地址
repeated bytes witnesses = 5;
- Returns:
- This builder for chaining.
-
getTimestamp
public long getTimestamp()区块产生时的 UNIX 时间戳,单位为秒
int64 timestamp = 6;
- Specified by:
getTimestamp
in interfaceCommonProto.BlockOrBuilder
- Returns:
- The timestamp.
-
setTimestamp
区块产生时的 UNIX 时间戳,单位为秒
int64 timestamp = 6;
- Parameters:
value
- The timestamp to set.- Returns:
- This builder for chaining.
-
clearTimestamp
区块产生时的 UNIX 时间戳,单位为秒
int64 timestamp = 6;
- Returns:
- This builder for chaining.
-
getSize
public long getSize()区块大小的字节数
uint64 size = 7;
- Specified by:
getSize
in interfaceCommonProto.BlockOrBuilder
- Returns:
- The size.
-
setSize
区块大小的字节数
uint64 size = 7;
- Parameters:
value
- The size to set.- Returns:
- This builder for chaining.
-
clearSize
区块大小的字节数
uint64 size = 7;
- Returns:
- This builder for chaining.
-
getTransactionCount
public int getTransactionCount()区块包含的事务数量
uint32 transaction_count = 8;
- Specified by:
getTransactionCount
in interfaceCommonProto.BlockOrBuilder
- Returns:
- The transactionCount.
-
setTransactionCount
区块包含的事务数量
uint32 transaction_count = 8;
- Parameters:
value
- The transactionCount to set.- Returns:
- This builder for chaining.
-
clearTransactionCount
区块包含的事务数量
uint32 transaction_count = 8;
- Returns:
- This builder for chaining.
-
getTransactionsRoot
public com.google.protobuf.ByteString getTransactionsRoot()区块的事务默克尔树根
bytes transactions_root = 9;
- Specified by:
getTransactionsRoot
in interfaceCommonProto.BlockOrBuilder
- Returns:
- The transactionsRoot.
-
setTransactionsRoot
区块的事务默克尔树根
bytes transactions_root = 9;
- Parameters:
value
- The transactionsRoot to set.- Returns:
- This builder for chaining.
-
clearTransactionsRoot
区块的事务默克尔树根
bytes transactions_root = 9;
- Returns:
- This builder for chaining.
-
getTransactionsList
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
- Specified by:
getTransactionsList
in interfaceCommonProto.BlockOrBuilder
-
getTransactionsCount
public int getTransactionsCount()事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
- Specified by:
getTransactionsCount
in interfaceCommonProto.BlockOrBuilder
-
getTransactions
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
- Specified by:
getTransactions
in interfaceCommonProto.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;
- Specified by:
getTransactionsOrBuilder
in interfaceCommonProto.BlockOrBuilder
-
getTransactionsOrBuilderList
事务对象的数组,或为空
repeated .bdware.bdledger.api.Transaction transactions = 10;
- Specified by:
getTransactionsOrBuilderList
in interfaceCommonProto.BlockOrBuilder
-
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;
- Specified by:
getTransactionHashesList
in interfaceCommonProto.BlockOrBuilder
- Returns:
- A list containing the transactionHashes.
-
getTransactionHashesCount
public int getTransactionHashesCount()20字节的事务哈希的数组,或为空
repeated bytes transaction_hashes = 11;
- Specified by:
getTransactionHashesCount
in interfaceCommonProto.BlockOrBuilder
- Returns:
- The count of transactionHashes.
-
getTransactionHashes
public com.google.protobuf.ByteString getTransactionHashes(int index) 20字节的事务哈希的数组,或为空
repeated bytes transaction_hashes = 11;
- Specified by:
getTransactionHashes
in interfaceCommonProto.BlockOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- 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;
- Parameters:
index
- The index to set the value at.value
- The transactionHashes to set.- Returns:
- This builder for chaining.
-
addTransactionHashes
20字节的事务哈希的数组,或为空
repeated bytes transaction_hashes = 11;
- Parameters:
value
- The transactionHashes to add.- Returns:
- This builder for chaining.
-
addAllTransactionHashes
public CommonProto.Block.Builder addAllTransactionHashes(Iterable<? extends com.google.protobuf.ByteString> values) 20字节的事务哈希的数组,或为空
repeated bytes transaction_hashes = 11;
- Parameters:
values
- The transactionHashes to add.- Returns:
- This builder for chaining.
-
clearTransactionHashes
20字节的事务哈希的数组,或为空
repeated bytes transaction_hashes = 11;
- Returns:
- This builder for chaining.
-
getCreatorSignature
public com.google.protobuf.ByteString getCreatorSignature()产块者签名
bytes creator_signature = 12;
- Specified by:
getCreatorSignature
in interfaceCommonProto.BlockOrBuilder
- Returns:
- The creatorSignature.
-
setCreatorSignature
产块者签名
bytes creator_signature = 12;
- Parameters:
value
- The creatorSignature to set.- Returns:
- This builder for chaining.
-
clearCreatorSignature
产块者签名
bytes creator_signature = 12;
- Returns:
- This builder for chaining.
-
getWitnessSignaturesList
见证者签名
repeated bytes witness_signatures = 13;
- Specified by:
getWitnessSignaturesList
in interfaceCommonProto.BlockOrBuilder
- Returns:
- A list containing the witnessSignatures.
-
getWitnessSignaturesCount
public int getWitnessSignaturesCount()见证者签名
repeated bytes witness_signatures = 13;
- Specified by:
getWitnessSignaturesCount
in interfaceCommonProto.BlockOrBuilder
- Returns:
- The count of witnessSignatures.
-
getWitnessSignatures
public com.google.protobuf.ByteString getWitnessSignatures(int index) 见证者签名
repeated bytes witness_signatures = 13;
- Specified by:
getWitnessSignatures
in interfaceCommonProto.BlockOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The witnessSignatures at the given index.
-
setWitnessSignatures
public CommonProto.Block.Builder setWitnessSignatures(int index, com.google.protobuf.ByteString value) 见证者签名
repeated bytes witness_signatures = 13;
- Parameters:
index
- The index to set the value at.value
- The witnessSignatures to set.- Returns:
- This builder for chaining.
-
addWitnessSignatures
见证者签名
repeated bytes witness_signatures = 13;
- Parameters:
value
- The witnessSignatures to add.- Returns:
- This builder for chaining.
-
addAllWitnessSignatures
public CommonProto.Block.Builder addAllWitnessSignatures(Iterable<? extends com.google.protobuf.ByteString> values) 见证者签名
repeated bytes witness_signatures = 13;
- Parameters:
values
- The witnessSignatures to add.- Returns:
- This builder for chaining.
-
clearWitnessSignatures
见证者签名
repeated bytes witness_signatures = 13;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final CommonProto.Block.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-
mergeUnknownFields
public final CommonProto.Block.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
-