public static final class ElectionContract.TermSnapshot extends com.google.protobuf.GeneratedMessageV3 implements ElectionContract.TermSnapshotOrBuilder
TermSnapshot| 限定符和类型 | 类和说明 |
|---|---|
static class |
ElectionContract.TermSnapshot.Builder
Protobuf type
TermSnapshot |
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 |
ELECTION_RESULT_FIELD_NUMBER |
static int |
END_ROUND_NUMBER_FIELD_NUMBER |
static int |
MINED_BLOCKS_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsElectionResult(String key)
The election result, candidates’ public key -> number of votes.
|
boolean |
equals(Object obj) |
static ElectionContract.TermSnapshot |
getDefaultInstance() |
ElectionContract.TermSnapshot |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Map<String,Long> |
getElectionResult()
已过时。
|
int |
getElectionResultCount()
The election result, candidates’ public key -> number of votes.
|
Map<String,Long> |
getElectionResultMap()
The election result, candidates’ public key -> number of votes.
|
long |
getElectionResultOrDefault(String key,
long defaultValue)
The election result, candidates’ public key -> number of votes.
|
long |
getElectionResultOrThrow(String key)
The election result, candidates’ public key -> number of votes.
|
long |
getEndRoundNumber()
The end round number of this term.
|
long |
getMinedBlocks()
The number of blocks mined in this term.
|
com.google.protobuf.Parser<ElectionContract.TermSnapshot> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static ElectionContract.TermSnapshot.Builder |
newBuilder() |
static ElectionContract.TermSnapshot.Builder |
newBuilder(ElectionContract.TermSnapshot prototype) |
ElectionContract.TermSnapshot.Builder |
newBuilderForType() |
protected ElectionContract.TermSnapshot.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ElectionContract.TermSnapshot |
parseDelimitedFrom(InputStream input) |
static ElectionContract.TermSnapshot |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ElectionContract.TermSnapshot |
parseFrom(byte[] data) |
static ElectionContract.TermSnapshot |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ElectionContract.TermSnapshot |
parseFrom(ByteBuffer data) |
static ElectionContract.TermSnapshot |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ElectionContract.TermSnapshot |
parseFrom(com.google.protobuf.ByteString data) |
static ElectionContract.TermSnapshot |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ElectionContract.TermSnapshot |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ElectionContract.TermSnapshot |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ElectionContract.TermSnapshot |
parseFrom(InputStream input) |
static ElectionContract.TermSnapshot |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ElectionContract.TermSnapshot> |
parser() |
ElectionContract.TermSnapshot.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, 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 END_ROUND_NUMBER_FIELD_NUMBER
public static final int MINED_BLOCKS_FIELD_NUMBER
public static final int ELECTION_RESULT_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.MapField internalGetMapField(int number)
internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3public long getEndRoundNumber()
The end round number of this term.
int64 end_round_number = 1;getEndRoundNumber 在接口中 ElectionContract.TermSnapshotOrBuilderpublic long getMinedBlocks()
The number of blocks mined in this term.
int64 mined_blocks = 2;getMinedBlocks 在接口中 ElectionContract.TermSnapshotOrBuilderpublic int getElectionResultCount()
ElectionContract.TermSnapshotOrBuilderThe election result, candidates’ public key -> number of votes.
map<string, int64> election_result = 3;public boolean containsElectionResult(String key)
The election result, candidates’ public key -> number of votes.
map<string, int64> election_result = 3;@Deprecated public Map<String,Long> getElectionResult()
getElectionResultMap() instead.public Map<String,Long> getElectionResultMap()
The election result, candidates’ public key -> number of votes.
map<string, int64> election_result = 3;public long getElectionResultOrDefault(String key, long defaultValue)
The election result, candidates’ public key -> number of votes.
map<string, int64> election_result = 3;public long getElectionResultOrThrow(String key)
The election result, candidates’ public key -> number of votes.
map<string, int64> election_result = 3;public 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 ElectionContract.TermSnapshot parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ElectionContract.TermSnapshot parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ElectionContract.TermSnapshot parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ElectionContract.TermSnapshot parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ElectionContract.TermSnapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ElectionContract.TermSnapshot parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ElectionContract.TermSnapshot parseFrom(InputStream input) throws IOException
IOExceptionpublic static ElectionContract.TermSnapshot parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ElectionContract.TermSnapshot parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ElectionContract.TermSnapshot parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ElectionContract.TermSnapshot parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ElectionContract.TermSnapshot parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ElectionContract.TermSnapshot.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static ElectionContract.TermSnapshot.Builder newBuilder()
public static ElectionContract.TermSnapshot.Builder newBuilder(ElectionContract.TermSnapshot prototype)
public ElectionContract.TermSnapshot.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected ElectionContract.TermSnapshot.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static ElectionContract.TermSnapshot getDefaultInstance()
public static com.google.protobuf.Parser<ElectionContract.TermSnapshot> parser()
public com.google.protobuf.Parser<ElectionContract.TermSnapshot> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public ElectionContract.TermSnapshot getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2020. All rights reserved.