类 Contract.Block
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.baidu.xuper.contractpb.Contract.Block
- 所有已实现的接口:
Contract.BlockOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- 封闭类:
- Contract
public static final class Contract.Block extends com.google.protobuf.GeneratedMessageV3 implements Contract.BlockOrBuilder
The block structProtobuf type
xchain.contract.sdk.Block- 另请参阅:
- 序列化表格
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classContract.Block.BuilderThe block struct从类继承的嵌套类/接口 com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter从类继承的嵌套类/接口 com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
字段概要
字段 修饰符和类型 字段 说明 static intBLOCKID_FIELD_NUMBERstatic intHEIGHT_FIELD_NUMBERstatic intIN_TRUNK_FIELD_NUMBERstatic intNEXT_HASH_FIELD_NUMBERstatic intPRE_HASH_FIELD_NUMBERstatic intPROPOSER_FIELD_NUMBERstatic intPUBKEY_FIELD_NUMBERstatic intSIGN_FIELD_NUMBERstatic intTX_COUNT_FIELD_NUMBERstatic intTXIDS_FIELD_NUMBER从类继承的字段 com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields从类继承的字段 com.google.protobuf.AbstractMessage
memoizedSize从类继承的字段 com.google.protobuf.AbstractMessageLite
memoizedHashCode -
方法概要
修饰符和类型 方法 说明 booleanequals(Object obj)StringgetBlockid()blockid generate the hash sign of the block used by sha256com.google.protobuf.ByteStringgetBlockidBytes()blockid generate the hash sign of the block used by sha256static Contract.BlockgetDefaultInstance()Contract.BlockgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()longgetHeight()The height of the blockchainbooleangetInTrunk()下面的属性会动态变化 If the block is on the trunkStringgetNextHash()Next next block which on trunkcom.google.protobuf.ByteStringgetNextHashBytes()Next next block which on trunkcom.google.protobuf.Parser<Contract.Block>getParserForType()StringgetPreHash()pre_hash is the parent blockid of the blockcom.google.protobuf.ByteStringgetPreHashBytes()pre_hash is the parent blockid of the blockcom.google.protobuf.ByteStringgetProposer()The miner idcom.google.protobuf.ByteStringgetPubkey()The pk of the minerintgetSerializedSize()StringgetSign()The sign which miner signed: blockid + nonce + timestampcom.google.protobuf.ByteStringgetSignBytes()The sign which miner signed: blockid + nonce + timestampintgetTxCount()The transaction count of the blockStringgetTxids(int index)Transactions of the block, only txid stored on kv, the detail information stored in another tablecom.google.protobuf.ByteStringgetTxidsBytes(int index)Transactions of the block, only txid stored on kv, the detail information stored in another tableintgetTxidsCount()Transactions of the block, only txid stored on kv, the detail information stored in another tablecom.google.protobuf.ProtocolStringListgetTxidsList()Transactions of the block, only txid stored on kv, the detail information stored in another tablecom.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Contract.Block.BuildernewBuilder()static Contract.Block.BuildernewBuilder(Contract.Block prototype)Contract.Block.BuildernewBuilderForType()protected Contract.Block.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Contract.BlockparseDelimitedFrom(InputStream input)static Contract.BlockparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Contract.BlockparseFrom(byte[] data)static Contract.BlockparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Contract.BlockparseFrom(com.google.protobuf.ByteString data)static Contract.BlockparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Contract.BlockparseFrom(com.google.protobuf.CodedInputStream input)static Contract.BlockparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Contract.BlockparseFrom(InputStream input)static Contract.BlockparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Contract.BlockparseFrom(ByteBuffer data)static Contract.BlockparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Contract.Block>parser()Contract.Block.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)从类继承的方法 com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag从类继承的方法 com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString从类继承的方法 com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo从接口继承的方法 com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
字段详细资料
-
BLOCKID_FIELD_NUMBER
public static final int BLOCKID_FIELD_NUMBER- 另请参阅:
- 常量字段值
-
PRE_HASH_FIELD_NUMBER
public static final int PRE_HASH_FIELD_NUMBER- 另请参阅:
- 常量字段值
-
PROPOSER_FIELD_NUMBER
public static final int PROPOSER_FIELD_NUMBER- 另请参阅:
- 常量字段值
-
SIGN_FIELD_NUMBER
public static final int SIGN_FIELD_NUMBER- 另请参阅:
- 常量字段值
-
PUBKEY_FIELD_NUMBER
public static final int PUBKEY_FIELD_NUMBER- 另请参阅:
- 常量字段值
-
HEIGHT_FIELD_NUMBER
public static final int HEIGHT_FIELD_NUMBER- 另请参阅:
- 常量字段值
-
TXIDS_FIELD_NUMBER
public static final int TXIDS_FIELD_NUMBER- 另请参阅:
- 常量字段值
-
TX_COUNT_FIELD_NUMBER
public static final int TX_COUNT_FIELD_NUMBER- 另请参阅:
- 常量字段值
-
IN_TRUNK_FIELD_NUMBER
public static final int IN_TRUNK_FIELD_NUMBER- 另请参阅:
- 常量字段值
-
NEXT_HASH_FIELD_NUMBER
public static final int NEXT_HASH_FIELD_NUMBER- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
newInstance
- 覆盖:
newInstance在类中com.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- 指定者:
getUnknownFields在接口中com.google.protobuf.MessageOrBuilder- 覆盖:
getUnknownFields在类中com.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3
-
getBlockid
blockid generate the hash sign of the block used by sha256
string blockid = 3;- 指定者:
getBlockid在接口中Contract.BlockOrBuilder- 返回:
- The blockid.
-
getBlockidBytes
public com.google.protobuf.ByteString getBlockidBytes()blockid generate the hash sign of the block used by sha256
string blockid = 3;- 指定者:
getBlockidBytes在接口中Contract.BlockOrBuilder- 返回:
- The bytes for blockid.
-
getPreHash
pre_hash is the parent blockid of the block
string pre_hash = 4;- 指定者:
getPreHash在接口中Contract.BlockOrBuilder- 返回:
- The preHash.
-
getPreHashBytes
public com.google.protobuf.ByteString getPreHashBytes()pre_hash is the parent blockid of the block
string pre_hash = 4;- 指定者:
getPreHashBytes在接口中Contract.BlockOrBuilder- 返回:
- The bytes for preHash.
-
getProposer
public com.google.protobuf.ByteString getProposer()The miner id
bytes proposer = 5;- 指定者:
getProposer在接口中Contract.BlockOrBuilder- 返回:
- The proposer.
-
getSign
The sign which miner signed: blockid + nonce + timestamp
string sign = 6;- 指定者:
getSign在接口中Contract.BlockOrBuilder- 返回:
- The sign.
-
getSignBytes
public com.google.protobuf.ByteString getSignBytes()The sign which miner signed: blockid + nonce + timestamp
string sign = 6;- 指定者:
getSignBytes在接口中Contract.BlockOrBuilder- 返回:
- The bytes for sign.
-
getPubkey
public com.google.protobuf.ByteString getPubkey()The pk of the miner
bytes pubkey = 7;- 指定者:
getPubkey在接口中Contract.BlockOrBuilder- 返回:
- The pubkey.
-
getHeight
public long getHeight()The height of the blockchain
int64 height = 9;- 指定者:
getHeight在接口中Contract.BlockOrBuilder- 返回:
- The height.
-
getTxidsList
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.BlockOrBuilder- 返回:
- A list containing the txids.
-
getTxidsCount
public int getTxidsCount()Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11;- 指定者:
getTxidsCount在接口中Contract.BlockOrBuilder- 返回:
- The count of txids.
-
getTxids
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated string txids = 11;- 指定者:
getTxids在接口中Contract.BlockOrBuilder- 参数:
index- The index of the element to return.- 返回:
- The txids at the given index.
-
getTxidsBytes
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.BlockOrBuilder- 参数:
index- The index of the value to return.- 返回:
- The bytes of the txids at the given index.
-
getTxCount
public int getTxCount()The transaction count of the block
int32 tx_count = 12;- 指定者:
getTxCount在接口中Contract.BlockOrBuilder- 返回:
- The txCount.
-
getInTrunk
public boolean getInTrunk()下面的属性会动态变化 If the block is on the trunk
bool in_trunk = 14;- 指定者:
getInTrunk在接口中Contract.BlockOrBuilder- 返回:
- The inTrunk.
-
getNextHash
Next next block which on trunk
string next_hash = 15;- 指定者:
getNextHash在接口中Contract.BlockOrBuilder- 返回:
- The nextHash.
-
getNextHashBytes
public com.google.protobuf.ByteString getNextHashBytes()Next next block which on trunk
string next_hash = 15;- 指定者:
getNextHashBytes在接口中Contract.BlockOrBuilder- 返回:
- The bytes for nextHash.
-
isInitialized
public final boolean isInitialized()- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3
-
writeTo
- 指定者:
writeTo在接口中com.google.protobuf.MessageLite- 覆盖:
writeTo在类中com.google.protobuf.GeneratedMessageV3- 抛出:
IOException
-
getSerializedSize
public int getSerializedSize()- 指定者:
getSerializedSize在接口中com.google.protobuf.MessageLite- 覆盖:
getSerializedSize在类中com.google.protobuf.GeneratedMessageV3
-
equals
- 指定者:
equals在接口中com.google.protobuf.Message- 覆盖:
equals在类中com.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- 指定者:
hashCode在接口中com.google.protobuf.Message- 覆盖:
hashCode在类中com.google.protobuf.AbstractMessage
-
parseFrom
public static Contract.Block parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Contract.Block parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Contract.Block parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Contract.Block parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Contract.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Contract.Block parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- 抛出:
IOException
-
parseFrom
public static Contract.Block parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException- 抛出:
IOException
-
parseDelimitedFrom
- 抛出:
IOException
-
parseDelimitedFrom
public static Contract.Block parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException- 抛出:
IOException
-
parseFrom
public static Contract.Block parseFrom(com.google.protobuf.CodedInputStream input) throws IOException- 抛出:
IOException
-
parseFrom
public static Contract.Block parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException- 抛出:
IOException
-
newBuilderForType
- 指定者:
newBuilderForType在接口中com.google.protobuf.Message- 指定者:
newBuilderForType在接口中com.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- 指定者:
toBuilder在接口中com.google.protobuf.Message- 指定者:
toBuilder在接口中com.google.protobuf.MessageLite
-
newBuilderForType
protected Contract.Block.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)- 指定者:
newBuilderForType在类中com.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- 指定者:
getParserForType在接口中com.google.protobuf.Message- 指定者:
getParserForType在接口中com.google.protobuf.MessageLite- 覆盖:
getParserForType在类中com.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-