public static final class Contract.Block.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Contract.Block.Builder> implements Contract.BlockOrBuilder
The block structProtobuf type
xchain.contract.sdk.Block| 限定符和类型 | 方法和说明 |
|---|---|
Contract.Block.Builder |
addAllTxids(Iterable<String> values)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11; |
Contract.Block.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Contract.Block.Builder |
addTxids(String value)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11; |
Contract.Block.Builder |
addTxidsBytes(com.google.protobuf.ByteString value)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11; |
Contract.Block |
build() |
Contract.Block |
buildPartial() |
Contract.Block.Builder |
clear() |
Contract.Block.Builder |
clearBlockid()
blockid generate the hash sign of the block used by sha256
string blockid = 3; |
Contract.Block.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Contract.Block.Builder |
clearHeight()
The height of the blockchain
int64 height = 9; |
Contract.Block.Builder |
clearInTrunk()
下面的属性会动态变化
If the block is on the trunk
bool in_trunk = 14; |
Contract.Block.Builder |
clearNextHash()
Next next block which on trunk
string next_hash = 15; |
Contract.Block.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Contract.Block.Builder |
clearPreHash()
pre_hash is the parent blockid of the block
string pre_hash = 4; |
Contract.Block.Builder |
clearProposer()
The miner id
bytes proposer = 5; |
Contract.Block.Builder |
clearPubkey()
The pk of the miner
bytes pubkey = 7; |
Contract.Block.Builder |
clearSign()
The sign which miner signed: blockid + nonce + timestamp
string sign = 6; |
Contract.Block.Builder |
clearTxCount()
The transaction count of the block
int32 tx_count = 12; |
Contract.Block.Builder |
clearTxids()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11; |
Contract.Block.Builder |
clone() |
String |
getBlockid()
blockid generate the hash sign of the block used by sha256
string blockid = 3; |
com.google.protobuf.ByteString |
getBlockidBytes()
blockid generate the hash sign of the block used by sha256
string blockid = 3; |
Contract.Block |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getHeight()
The height of the blockchain
int64 height = 9; |
boolean |
getInTrunk()
下面的属性会动态变化
If the block is on the trunk
bool in_trunk = 14; |
String |
getNextHash()
Next next block which on trunk
string next_hash = 15; |
com.google.protobuf.ByteString |
getNextHashBytes()
Next next block which on trunk
string next_hash = 15; |
String |
getPreHash()
pre_hash is the parent blockid of the block
string pre_hash = 4; |
com.google.protobuf.ByteString |
getPreHashBytes()
pre_hash is the parent blockid of the block
string pre_hash = 4; |
com.google.protobuf.ByteString |
getProposer()
The miner id
bytes proposer = 5; |
com.google.protobuf.ByteString |
getPubkey()
The pk of the miner
bytes pubkey = 7; |
String |
getSign()
The sign which miner signed: blockid + nonce + timestamp
string sign = 6; |
com.google.protobuf.ByteString |
getSignBytes()
The sign which miner signed: blockid + nonce + timestamp
string sign = 6; |
int |
getTxCount()
The transaction count of the block
int32 tx_count = 12; |
String |
getTxids(int index)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11; |
com.google.protobuf.ByteString |
getTxidsBytes(int index)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11; |
int |
getTxidsCount()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11; |
com.google.protobuf.ProtocolStringList |
getTxidsList()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Contract.Block.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Contract.Block.Builder |
mergeFrom(Contract.Block other) |
Contract.Block.Builder |
mergeFrom(com.google.protobuf.Message other) |
Contract.Block.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Contract.Block.Builder |
setBlockid(String value)
blockid generate the hash sign of the block used by sha256
string blockid = 3; |
Contract.Block.Builder |
setBlockidBytes(com.google.protobuf.ByteString value)
blockid generate the hash sign of the block used by sha256
string blockid = 3; |
Contract.Block.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Contract.Block.Builder |
setHeight(long value)
The height of the blockchain
int64 height = 9; |
Contract.Block.Builder |
setInTrunk(boolean value)
下面的属性会动态变化
If the block is on the trunk
bool in_trunk = 14; |
Contract.Block.Builder |
setNextHash(String value)
Next next block which on trunk
string next_hash = 15; |
Contract.Block.Builder |
setNextHashBytes(com.google.protobuf.ByteString value)
Next next block which on trunk
string next_hash = 15; |
Contract.Block.Builder |
setPreHash(String value)
pre_hash is the parent blockid of the block
string pre_hash = 4; |
Contract.Block.Builder |
setPreHashBytes(com.google.protobuf.ByteString value)
pre_hash is the parent blockid of the block
string pre_hash = 4; |
Contract.Block.Builder |
setProposer(com.google.protobuf.ByteString value)
The miner id
bytes proposer = 5; |
Contract.Block.Builder |
setPubkey(com.google.protobuf.ByteString value)
The pk of the miner
bytes pubkey = 7; |
Contract.Block.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Contract.Block.Builder |
setSign(String value)
The sign which miner signed: blockid + nonce + timestamp
string sign = 6; |
Contract.Block.Builder |
setSignBytes(com.google.protobuf.ByteString value)
The sign which miner signed: blockid + nonce + timestamp
string sign = 6; |
Contract.Block.Builder |
setTxCount(int value)
The transaction count of the block
int32 tx_count = 12; |
Contract.Block.Builder |
setTxids(int index,
String value)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11; |
Contract.Block.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Contract.Block.Builder>public Contract.Block.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Contract.Block.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Contract.Block.Builder>public Contract.Block getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic Contract.Block build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic Contract.Block buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic Contract.Block.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Contract.Block.Builder>public Contract.Block.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Contract.Block.Builder>public Contract.Block.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Contract.Block.Builder>public Contract.Block.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Contract.Block.Builder>public Contract.Block.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Contract.Block.Builder>public Contract.Block.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Contract.Block.Builder>public Contract.Block.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Contract.Block.Builder>public Contract.Block.Builder mergeFrom(Contract.Block other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Contract.Block.Builder>public Contract.Block.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Contract.Block.Builder>IOExceptionpublic String getBlockid()
blockid generate the hash sign of the block used by sha256
string blockid = 3;getBlockid 在接口中 Contract.BlockOrBuilderpublic com.google.protobuf.ByteString getBlockidBytes()
blockid generate the hash sign of the block used by sha256
string blockid = 3;getBlockidBytes 在接口中 Contract.BlockOrBuilderpublic Contract.Block.Builder setBlockid(String value)
blockid generate the hash sign of the block used by sha256
string blockid = 3;value - The blockid to set.public Contract.Block.Builder clearBlockid()
blockid generate the hash sign of the block used by sha256
string blockid = 3;public Contract.Block.Builder setBlockidBytes(com.google.protobuf.ByteString value)
blockid generate the hash sign of the block used by sha256
string blockid = 3;value - The bytes for blockid to set.public String getPreHash()
pre_hash is the parent blockid of the block
string pre_hash = 4;getPreHash 在接口中 Contract.BlockOrBuilderpublic com.google.protobuf.ByteString getPreHashBytes()
pre_hash is the parent blockid of the block
string pre_hash = 4;getPreHashBytes 在接口中 Contract.BlockOrBuilderpublic Contract.Block.Builder setPreHash(String value)
pre_hash is the parent blockid of the block
string pre_hash = 4;value - The preHash to set.public Contract.Block.Builder clearPreHash()
pre_hash is the parent blockid of the block
string pre_hash = 4;public Contract.Block.Builder setPreHashBytes(com.google.protobuf.ByteString value)
pre_hash is the parent blockid of the block
string pre_hash = 4;value - The bytes for preHash to set.public com.google.protobuf.ByteString getProposer()
The miner id
bytes proposer = 5;getProposer 在接口中 Contract.BlockOrBuilderpublic Contract.Block.Builder setProposer(com.google.protobuf.ByteString value)
The miner id
bytes proposer = 5;value - The proposer to set.public Contract.Block.Builder clearProposer()
The miner id
bytes proposer = 5;public String getSign()
The sign which miner signed: blockid + nonce + timestamp
string sign = 6;getSign 在接口中 Contract.BlockOrBuilderpublic com.google.protobuf.ByteString getSignBytes()
The sign which miner signed: blockid + nonce + timestamp
string sign = 6;getSignBytes 在接口中 Contract.BlockOrBuilderpublic Contract.Block.Builder setSign(String value)
The sign which miner signed: blockid + nonce + timestamp
string sign = 6;value - The sign to set.public Contract.Block.Builder clearSign()
The sign which miner signed: blockid + nonce + timestamp
string sign = 6;public Contract.Block.Builder setSignBytes(com.google.protobuf.ByteString value)
The sign which miner signed: blockid + nonce + timestamp
string sign = 6;value - The bytes for sign to set.public com.google.protobuf.ByteString getPubkey()
The pk of the miner
bytes pubkey = 7;getPubkey 在接口中 Contract.BlockOrBuilderpublic Contract.Block.Builder setPubkey(com.google.protobuf.ByteString value)
The pk of the miner
bytes pubkey = 7;value - The pubkey to set.public Contract.Block.Builder clearPubkey()
The pk of the miner
bytes pubkey = 7;public long getHeight()
The height of the blockchain
int64 height = 9;getHeight 在接口中 Contract.BlockOrBuilderpublic Contract.Block.Builder setHeight(long value)
The height of the blockchain
int64 height = 9;value - The height to set.public Contract.Block.Builder clearHeight()
The height of the blockchain
int64 height = 9;public com.google.protobuf.ProtocolStringList getTxidsList()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11;getTxidsList 在接口中 Contract.BlockOrBuilderpublic int getTxidsCount()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11;getTxidsCount 在接口中 Contract.BlockOrBuilderpublic String getTxids(int index)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11;getTxids 在接口中 Contract.BlockOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getTxidsBytes(int index)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11;getTxidsBytes 在接口中 Contract.BlockOrBuilderindex - The index of the value to return.public Contract.Block.Builder setTxids(int index, String value)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11;index - The index to set the value at.value - The txids to set.public Contract.Block.Builder addTxids(String value)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11;value - The txids to add.public Contract.Block.Builder addAllTxids(Iterable<String> values)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11;values - The txids to add.public Contract.Block.Builder clearTxids()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11;public Contract.Block.Builder addTxidsBytes(com.google.protobuf.ByteString value)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11;value - The bytes of the txids to add.public int getTxCount()
The transaction count of the block
int32 tx_count = 12;getTxCount 在接口中 Contract.BlockOrBuilderpublic Contract.Block.Builder setTxCount(int value)
The transaction count of the block
int32 tx_count = 12;value - The txCount to set.public Contract.Block.Builder clearTxCount()
The transaction count of the block
int32 tx_count = 12;public boolean getInTrunk()
下面的属性会动态变化 If the block is on the trunk
bool in_trunk = 14;getInTrunk 在接口中 Contract.BlockOrBuilderpublic Contract.Block.Builder setInTrunk(boolean value)
下面的属性会动态变化 If the block is on the trunk
bool in_trunk = 14;value - The inTrunk to set.public Contract.Block.Builder clearInTrunk()
下面的属性会动态变化 If the block is on the trunk
bool in_trunk = 14;public String getNextHash()
Next next block which on trunk
string next_hash = 15;getNextHash 在接口中 Contract.BlockOrBuilderpublic com.google.protobuf.ByteString getNextHashBytes()
Next next block which on trunk
string next_hash = 15;getNextHashBytes 在接口中 Contract.BlockOrBuilderpublic Contract.Block.Builder setNextHash(String value)
Next next block which on trunk
string next_hash = 15;value - The nextHash to set.public Contract.Block.Builder clearNextHash()
Next next block which on trunk
string next_hash = 15;public Contract.Block.Builder setNextHashBytes(com.google.protobuf.ByteString value)
Next next block which on trunk
string next_hash = 15;value - The bytes for nextHash to set.public final Contract.Block.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Contract.Block.Builder>public final Contract.Block.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Contract.Block.Builder>Copyright © 2020. All rights reserved.