public static final class Contract.Block extends com.google.protobuf.GeneratedMessageV3 implements Contract.BlockOrBuilder
The block structProtobuf type
xchain.contract.sdk.Block| 限定符和类型 | 类和说明 |
|---|---|
static class |
Contract.Block.Builder
The block struct
Protobuf type
xchain.contract.sdk.Block |
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| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BLOCKID_FIELD_NUMBER |
static int |
HEIGHT_FIELD_NUMBER |
static int |
IN_TRUNK_FIELD_NUMBER |
static int |
NEXT_HASH_FIELD_NUMBER |
static int |
PRE_HASH_FIELD_NUMBER |
static int |
PROPOSER_FIELD_NUMBER |
static int |
PUBKEY_FIELD_NUMBER |
static int |
SIGN_FIELD_NUMBER |
static int |
TX_COUNT_FIELD_NUMBER |
static int |
TXIDS_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
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; |
static Contract.Block |
getDefaultInstance() |
Contract.Block |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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; |
com.google.protobuf.Parser<Contract.Block> |
getParserForType() |
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; |
int |
getSerializedSize() |
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; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Contract.Block.Builder |
newBuilder() |
static Contract.Block.Builder |
newBuilder(Contract.Block prototype) |
Contract.Block.Builder |
newBuilderForType() |
protected Contract.Block.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Contract.Block |
parseDelimitedFrom(InputStream input) |
static Contract.Block |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Contract.Block |
parseFrom(byte[] data) |
static Contract.Block |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Contract.Block |
parseFrom(ByteBuffer data) |
static Contract.Block |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Contract.Block |
parseFrom(com.google.protobuf.ByteString data) |
static Contract.Block |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Contract.Block |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Contract.Block |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Contract.Block |
parseFrom(InputStream input) |
static Contract.Block |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Contract.Block> |
parser() |
Contract.Block.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic static final int BLOCKID_FIELD_NUMBER
public static final int PRE_HASH_FIELD_NUMBER
public static final int PROPOSER_FIELD_NUMBER
public static final int SIGN_FIELD_NUMBER
public static final int PUBKEY_FIELD_NUMBER
public static final int HEIGHT_FIELD_NUMBER
public static final int TXIDS_FIELD_NUMBER
public static final int TX_COUNT_FIELD_NUMBER
public static final int IN_TRUNK_FIELD_NUMBER
public static final int NEXT_HASH_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance 在类中 com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields 在接口中 com.google.protobuf.MessageOrBuildergetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3public 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 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 com.google.protobuf.ByteString getProposer()
The miner id
bytes proposer = 5;getProposer 在接口中 Contract.BlockOrBuilderpublic 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 com.google.protobuf.ByteString getPubkey()
The pk of the miner
bytes pubkey = 7;getPubkey 在接口中 Contract.BlockOrBuilderpublic long getHeight()
The height of the blockchain
int64 height = 9;getHeight 在接口中 Contract.BlockOrBuilderpublic 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 int getTxCount()
The transaction count of the block
int32 tx_count = 12;getTxCount 在接口中 Contract.BlockOrBuilderpublic boolean getInTrunk()
下面的属性会动态变化 If the block is on the trunk
bool in_trunk = 14;getInTrunk 在接口中 Contract.BlockOrBuilderpublic 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 final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static Contract.Block parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Contract.Block parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Contract.Block parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Contract.Block parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Contract.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Contract.Block parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Contract.Block parseFrom(InputStream input) throws IOException
IOExceptionpublic static Contract.Block parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Contract.Block parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Contract.Block parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Contract.Block parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Contract.Block parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Contract.Block.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static Contract.Block.Builder newBuilder()
public static Contract.Block.Builder newBuilder(Contract.Block prototype)
public Contract.Block.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected Contract.Block.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static Contract.Block getDefaultInstance()
public static com.google.protobuf.Parser<Contract.Block> parser()
public com.google.protobuf.Parser<Contract.Block> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public Contract.Block getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2020. All rights reserved.