public static final class VoteContract.VotingResult.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VoteContract.VotingResult.Builder> implements VoteContract.VotingResultOrBuilder
VotingResult| 限定符和类型 | 方法和说明 |
|---|---|
VoteContract.VotingResult.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
VoteContract.VotingResult |
build() |
VoteContract.VotingResult |
buildPartial() |
VoteContract.VotingResult.Builder |
clear() |
VoteContract.VotingResult.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
VoteContract.VotingResult.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
VoteContract.VotingResult.Builder |
clearResults() |
VoteContract.VotingResult.Builder |
clearSnapshotEndTimestamp()
The end time of this snapshot.
|
VoteContract.VotingResult.Builder |
clearSnapshotNumber()
The snapshot number.
|
VoteContract.VotingResult.Builder |
clearSnapshotStartTimestamp()
The start time of this snapshot.
|
VoteContract.VotingResult.Builder |
clearVotersCount()
The total number of voters.
|
VoteContract.VotingResult.Builder |
clearVotesAmount()
Total votes received during the process of this snapshot.
|
VoteContract.VotingResult.Builder |
clearVotingItemId()
The voting activity id.
|
VoteContract.VotingResult.Builder |
clone() |
boolean |
containsResults(String key)
The voting result, option -> amount of votes,
map<string, int64> results = 2; |
VoteContract.VotingResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,Long> |
getMutableResults()
已过时。
|
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; |
com.google.protobuf.Timestamp |
getSnapshotEndTimestamp()
The end time of this snapshot.
|
com.google.protobuf.Timestamp.Builder |
getSnapshotEndTimestampBuilder()
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.Timestamp.Builder |
getSnapshotStartTimestampBuilder()
The start time of this snapshot.
|
com.google.protobuf.TimestampOrBuilder |
getSnapshotStartTimestampOrBuilder()
The start time of this snapshot.
|
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.Hash.Builder |
getVotingItemIdBuilder()
The voting activity id.
|
Client.HashOrBuilder |
getVotingItemIdOrBuilder()
The voting activity id.
|
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) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
VoteContract.VotingResult.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
VoteContract.VotingResult.Builder |
mergeFrom(com.google.protobuf.Message other) |
VoteContract.VotingResult.Builder |
mergeFrom(VoteContract.VotingResult other) |
VoteContract.VotingResult.Builder |
mergeSnapshotEndTimestamp(com.google.protobuf.Timestamp value)
The end time of this snapshot.
|
VoteContract.VotingResult.Builder |
mergeSnapshotStartTimestamp(com.google.protobuf.Timestamp value)
The start time of this snapshot.
|
VoteContract.VotingResult.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
VoteContract.VotingResult.Builder |
mergeVotingItemId(Client.Hash value)
The voting activity id.
|
VoteContract.VotingResult.Builder |
putAllResults(Map<String,Long> values)
The voting result, option -> amount of votes,
map<string, int64> results = 2; |
VoteContract.VotingResult.Builder |
putResults(String key,
long value)
The voting result, option -> amount of votes,
map<string, int64> results = 2; |
VoteContract.VotingResult.Builder |
removeResults(String key)
The voting result, option -> amount of votes,
map<string, int64> results = 2; |
VoteContract.VotingResult.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
VoteContract.VotingResult.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
VoteContract.VotingResult.Builder |
setSnapshotEndTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
The end time of this snapshot.
|
VoteContract.VotingResult.Builder |
setSnapshotEndTimestamp(com.google.protobuf.Timestamp value)
The end time of this snapshot.
|
VoteContract.VotingResult.Builder |
setSnapshotNumber(long value)
The snapshot number.
|
VoteContract.VotingResult.Builder |
setSnapshotStartTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
The start time of this snapshot.
|
VoteContract.VotingResult.Builder |
setSnapshotStartTimestamp(com.google.protobuf.Timestamp value)
The start time of this snapshot.
|
VoteContract.VotingResult.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
VoteContract.VotingResult.Builder |
setVotersCount(long value)
The total number of voters.
|
VoteContract.VotingResult.Builder |
setVotesAmount(long value)
Total votes received during the process of this snapshot.
|
VoteContract.VotingResult.Builder |
setVotingItemId(Client.Hash.Builder builderForValue)
The voting activity id.
|
VoteContract.VotingResult.Builder |
setVotingItemId(Client.Hash value)
The voting activity id.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, 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.MapField internalGetMapField(int number)
internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VoteContract.VotingResult.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VoteContract.VotingResult.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VoteContract.VotingResult.Builder>public VoteContract.VotingResult.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VoteContract.VotingResult.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VoteContract.VotingResult.Builder>public VoteContract.VotingResult getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic VoteContract.VotingResult build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic VoteContract.VotingResult buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic VoteContract.VotingResult.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VoteContract.VotingResult.Builder>public VoteContract.VotingResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VoteContract.VotingResult.Builder>public VoteContract.VotingResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VoteContract.VotingResult.Builder>public VoteContract.VotingResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VoteContract.VotingResult.Builder>public VoteContract.VotingResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VoteContract.VotingResult.Builder>public VoteContract.VotingResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VoteContract.VotingResult.Builder>public VoteContract.VotingResult.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<VoteContract.VotingResult.Builder>public VoteContract.VotingResult.Builder mergeFrom(VoteContract.VotingResult other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VoteContract.VotingResult.Builder>public VoteContract.VotingResult.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<VoteContract.VotingResult.Builder>IOExceptionpublic 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 VoteContract.VotingResult.Builder setVotingItemId(Client.Hash value)
The voting activity id.
.Hash voting_item_id = 1;public VoteContract.VotingResult.Builder setVotingItemId(Client.Hash.Builder builderForValue)
The voting activity id.
.Hash voting_item_id = 1;public VoteContract.VotingResult.Builder mergeVotingItemId(Client.Hash value)
The voting activity id.
.Hash voting_item_id = 1;public VoteContract.VotingResult.Builder clearVotingItemId()
The voting activity id.
.Hash voting_item_id = 1;public Client.Hash.Builder getVotingItemIdBuilder()
The voting activity id.
.Hash voting_item_id = 1;public 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 VoteContract.VotingResult.Builder clearResults()
public VoteContract.VotingResult.Builder removeResults(String key)
The voting result, option -> amount of votes,
map<string, int64> results = 2;@Deprecated public Map<String,Long> getMutableResults()
public VoteContract.VotingResult.Builder putResults(String key, long value)
The voting result, option -> amount of votes,
map<string, int64> results = 2;public VoteContract.VotingResult.Builder putAllResults(Map<String,Long> values)
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 VoteContract.VotingResult.Builder setSnapshotNumber(long value)
The snapshot number.
int64 snapshot_number = 3;value - The snapshotNumber to set.public VoteContract.VotingResult.Builder clearSnapshotNumber()
The snapshot number.
int64 snapshot_number = 3;public long getVotersCount()
The total number of voters.
int64 voters_count = 4;getVotersCount 在接口中 VoteContract.VotingResultOrBuilderpublic VoteContract.VotingResult.Builder setVotersCount(long value)
The total number of voters.
int64 voters_count = 4;value - The votersCount to set.public VoteContract.VotingResult.Builder clearVotersCount()
The total number of voters.
int64 voters_count = 4;public 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 VoteContract.VotingResult.Builder setSnapshotStartTimestamp(com.google.protobuf.Timestamp value)
The start time of this snapshot.
.google.protobuf.Timestamp snapshot_start_timestamp = 5;public VoteContract.VotingResult.Builder setSnapshotStartTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
The start time of this snapshot.
.google.protobuf.Timestamp snapshot_start_timestamp = 5;public VoteContract.VotingResult.Builder mergeSnapshotStartTimestamp(com.google.protobuf.Timestamp value)
The start time of this snapshot.
.google.protobuf.Timestamp snapshot_start_timestamp = 5;public VoteContract.VotingResult.Builder clearSnapshotStartTimestamp()
The start time of this snapshot.
.google.protobuf.Timestamp snapshot_start_timestamp = 5;public com.google.protobuf.Timestamp.Builder getSnapshotStartTimestampBuilder()
The start time of this snapshot.
.google.protobuf.Timestamp snapshot_start_timestamp = 5;public 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 VoteContract.VotingResult.Builder setSnapshotEndTimestamp(com.google.protobuf.Timestamp value)
The end time of this snapshot.
.google.protobuf.Timestamp snapshot_end_timestamp = 6;public VoteContract.VotingResult.Builder setSnapshotEndTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
The end time of this snapshot.
.google.protobuf.Timestamp snapshot_end_timestamp = 6;public VoteContract.VotingResult.Builder mergeSnapshotEndTimestamp(com.google.protobuf.Timestamp value)
The end time of this snapshot.
.google.protobuf.Timestamp snapshot_end_timestamp = 6;public VoteContract.VotingResult.Builder clearSnapshotEndTimestamp()
The end time of this snapshot.
.google.protobuf.Timestamp snapshot_end_timestamp = 6;public com.google.protobuf.Timestamp.Builder getSnapshotEndTimestampBuilder()
The end time of this snapshot.
.google.protobuf.Timestamp snapshot_end_timestamp = 6;public 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 VoteContract.VotingResult.Builder setVotesAmount(long value)
Total votes received during the process of this snapshot.
int64 votes_amount = 7;value - The votesAmount to set.public VoteContract.VotingResult.Builder clearVotesAmount()
Total votes received during the process of this snapshot.
int64 votes_amount = 7;public final VoteContract.VotingResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VoteContract.VotingResult.Builder>public final VoteContract.VotingResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VoteContract.VotingResult.Builder>Copyright © 2020. All rights reserved.