public static final class VoteContract.VotingResult extends com.google.protobuf.GeneratedMessageV3 implements VoteContract.VotingResultOrBuilder
VotingResult| 限定符和类型 | 类和说明 |
|---|---|
static class |
VoteContract.VotingResult.Builder
Protobuf type
VotingResult |
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 |
RESULTS_FIELD_NUMBER |
static int |
SNAPSHOT_END_TIMESTAMP_FIELD_NUMBER |
static int |
SNAPSHOT_NUMBER_FIELD_NUMBER |
static int |
SNAPSHOT_START_TIMESTAMP_FIELD_NUMBER |
static int |
VOTERS_COUNT_FIELD_NUMBER |
static int |
VOTES_AMOUNT_FIELD_NUMBER |
static int |
VOTING_ITEM_ID_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsResults(String key)
The voting result, option -> amount of votes,
map<string, int64> results = 2; |
boolean |
equals(Object obj) |
static VoteContract.VotingResult |
getDefaultInstance() |
VoteContract.VotingResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<VoteContract.VotingResult> |
getParserForType() |
Map<String,Long> |
getResults()
已过时。
|
int |
getResultsCount()
The voting result, option -> amount of votes,
map<string, int64> results = 2; |
Map<String,Long> |
getResultsMap()
The voting result, option -> amount of votes,
map<string, int64> results = 2; |
long |
getResultsOrDefault(String key,
long defaultValue)
The voting result, option -> amount of votes,
map<string, int64> results = 2; |
long |
getResultsOrThrow(String key)
The voting result, option -> amount of votes,
map<string, int64> results = 2; |
int |
getSerializedSize() |
com.google.protobuf.Timestamp |
getSnapshotEndTimestamp()
The end time of this snapshot.
|
com.google.protobuf.TimestampOrBuilder |
getSnapshotEndTimestampOrBuilder()
The end time of this snapshot.
|
long |
getSnapshotNumber()
The snapshot number.
|
com.google.protobuf.Timestamp |
getSnapshotStartTimestamp()
The start time of this snapshot.
|
com.google.protobuf.TimestampOrBuilder |
getSnapshotStartTimestampOrBuilder()
The start time of this snapshot.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
long |
getVotersCount()
The total number of voters.
|
long |
getVotesAmount()
Total votes received during the process of this snapshot.
|
Client.Hash |
getVotingItemId()
The voting activity id.
|
Client.HashOrBuilder |
getVotingItemIdOrBuilder()
The voting activity id.
|
int |
hashCode() |
boolean |
hasSnapshotEndTimestamp()
The end time of this snapshot.
|
boolean |
hasSnapshotStartTimestamp()
The start time of this snapshot.
|
boolean |
hasVotingItemId()
The voting activity id.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static VoteContract.VotingResult.Builder |
newBuilder() |
static VoteContract.VotingResult.Builder |
newBuilder(VoteContract.VotingResult prototype) |
VoteContract.VotingResult.Builder |
newBuilderForType() |
protected VoteContract.VotingResult.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static VoteContract.VotingResult |
parseDelimitedFrom(InputStream input) |
static VoteContract.VotingResult |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VoteContract.VotingResult |
parseFrom(byte[] data) |
static VoteContract.VotingResult |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VoteContract.VotingResult |
parseFrom(ByteBuffer data) |
static VoteContract.VotingResult |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VoteContract.VotingResult |
parseFrom(com.google.protobuf.ByteString data) |
static VoteContract.VotingResult |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VoteContract.VotingResult |
parseFrom(com.google.protobuf.CodedInputStream input) |
static VoteContract.VotingResult |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VoteContract.VotingResult |
parseFrom(InputStream input) |
static VoteContract.VotingResult |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<VoteContract.VotingResult> |
parser() |
VoteContract.VotingResult.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 VOTING_ITEM_ID_FIELD_NUMBER
public static final int RESULTS_FIELD_NUMBER
public static final int SNAPSHOT_NUMBER_FIELD_NUMBER
public static final int VOTERS_COUNT_FIELD_NUMBER
public static final int SNAPSHOT_START_TIMESTAMP_FIELD_NUMBER
public static final int SNAPSHOT_END_TIMESTAMP_FIELD_NUMBER
public static final int VOTES_AMOUNT_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 boolean hasVotingItemId()
The voting activity id.
.Hash voting_item_id = 1;hasVotingItemId 在接口中 VoteContract.VotingResultOrBuilderpublic Client.Hash getVotingItemId()
The voting activity id.
.Hash voting_item_id = 1;getVotingItemId 在接口中 VoteContract.VotingResultOrBuilderpublic Client.HashOrBuilder getVotingItemIdOrBuilder()
The voting activity id.
.Hash voting_item_id = 1;public int getResultsCount()
VoteContract.VotingResultOrBuilderThe voting result, option -> amount of votes,
map<string, int64> results = 2;public boolean containsResults(String key)
The voting result, option -> amount of votes,
map<string, int64> results = 2;@Deprecated public Map<String,Long> getResults()
getResultsMap() instead.getResults 在接口中 VoteContract.VotingResultOrBuilderpublic Map<String,Long> getResultsMap()
The voting result, option -> amount of votes,
map<string, int64> results = 2;public long getResultsOrDefault(String key, long defaultValue)
The voting result, option -> amount of votes,
map<string, int64> results = 2;public long getResultsOrThrow(String key)
The voting result, option -> amount of votes,
map<string, int64> results = 2;public long getSnapshotNumber()
The snapshot number.
int64 snapshot_number = 3;getSnapshotNumber 在接口中 VoteContract.VotingResultOrBuilderpublic long getVotersCount()
The total number of voters.
int64 voters_count = 4;getVotersCount 在接口中 VoteContract.VotingResultOrBuilderpublic boolean hasSnapshotStartTimestamp()
The start time of this snapshot.
.google.protobuf.Timestamp snapshot_start_timestamp = 5;hasSnapshotStartTimestamp 在接口中 VoteContract.VotingResultOrBuilderpublic com.google.protobuf.Timestamp getSnapshotStartTimestamp()
The start time of this snapshot.
.google.protobuf.Timestamp snapshot_start_timestamp = 5;getSnapshotStartTimestamp 在接口中 VoteContract.VotingResultOrBuilderpublic com.google.protobuf.TimestampOrBuilder getSnapshotStartTimestampOrBuilder()
The start time of this snapshot.
.google.protobuf.Timestamp snapshot_start_timestamp = 5;public boolean hasSnapshotEndTimestamp()
The end time of this snapshot.
.google.protobuf.Timestamp snapshot_end_timestamp = 6;hasSnapshotEndTimestamp 在接口中 VoteContract.VotingResultOrBuilderpublic com.google.protobuf.Timestamp getSnapshotEndTimestamp()
The end time of this snapshot.
.google.protobuf.Timestamp snapshot_end_timestamp = 6;getSnapshotEndTimestamp 在接口中 VoteContract.VotingResultOrBuilderpublic com.google.protobuf.TimestampOrBuilder getSnapshotEndTimestampOrBuilder()
The end time of this snapshot.
.google.protobuf.Timestamp snapshot_end_timestamp = 6;public long getVotesAmount()
Total votes received during the process of this snapshot.
int64 votes_amount = 7;getVotesAmount 在接口中 VoteContract.VotingResultOrBuilderpublic 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 VoteContract.VotingResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VoteContract.VotingResult parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VoteContract.VotingResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VoteContract.VotingResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VoteContract.VotingResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VoteContract.VotingResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VoteContract.VotingResult parseFrom(InputStream input) throws IOException
IOExceptionpublic static VoteContract.VotingResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static VoteContract.VotingResult parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static VoteContract.VotingResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static VoteContract.VotingResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static VoteContract.VotingResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic VoteContract.VotingResult.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static VoteContract.VotingResult.Builder newBuilder()
public static VoteContract.VotingResult.Builder newBuilder(VoteContract.VotingResult prototype)
public VoteContract.VotingResult.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected VoteContract.VotingResult.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static VoteContract.VotingResult getDefaultInstance()
public static com.google.protobuf.Parser<VoteContract.VotingResult> parser()
public com.google.protobuf.Parser<VoteContract.VotingResult> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public VoteContract.VotingResult getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2020. All rights reserved.