public static final class ElectionContract.CandidateInformation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ElectionContract.CandidateInformation.Builder> implements ElectionContract.CandidateInformationOrBuilder
election_contractProtobuf type
CandidateInformation| 限定符和类型 | 方法和说明 |
|---|---|
ElectionContract.CandidateInformation.Builder |
addAllTerms(Iterable<? extends Long> values)
The number of terms that the candidate is elected.
|
ElectionContract.CandidateInformation.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ElectionContract.CandidateInformation.Builder |
addTerms(long value)
The number of terms that the candidate is elected.
|
ElectionContract.CandidateInformation |
build() |
ElectionContract.CandidateInformation |
buildPartial() |
ElectionContract.CandidateInformation.Builder |
clear() |
ElectionContract.CandidateInformation.Builder |
clearAnnouncementTransactionId()
The transaction id when the candidate announced.
|
ElectionContract.CandidateInformation.Builder |
clearContinualAppointmentCount()
The count of continual appointment.
|
ElectionContract.CandidateInformation.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ElectionContract.CandidateInformation.Builder |
clearIsCurrentCandidate()
Indicate whether the candidate can be elected in the current term.
|
ElectionContract.CandidateInformation.Builder |
clearMissedTimeSlots()
The time slot for which the candidate failed to produce blocks.
|
ElectionContract.CandidateInformation.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ElectionContract.CandidateInformation.Builder |
clearProducedBlocks()
The number of blocks the candidate has produced.
|
ElectionContract.CandidateInformation.Builder |
clearPubkey()
Candidate’s public key.
|
ElectionContract.CandidateInformation.Builder |
clearTerms()
The number of terms that the candidate is elected.
|
ElectionContract.CandidateInformation.Builder |
clone() |
Client.Hash |
getAnnouncementTransactionId()
The transaction id when the candidate announced.
|
Client.Hash.Builder |
getAnnouncementTransactionIdBuilder()
The transaction id when the candidate announced.
|
Client.HashOrBuilder |
getAnnouncementTransactionIdOrBuilder()
The transaction id when the candidate announced.
|
long |
getContinualAppointmentCount()
The count of continual appointment.
|
ElectionContract.CandidateInformation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getIsCurrentCandidate()
Indicate whether the candidate can be elected in the current term.
|
long |
getMissedTimeSlots()
The time slot for which the candidate failed to produce blocks.
|
long |
getProducedBlocks()
The number of blocks the candidate has produced.
|
String |
getPubkey()
Candidate’s public key.
|
com.google.protobuf.ByteString |
getPubkeyBytes()
Candidate’s public key.
|
long |
getTerms(int index)
The number of terms that the candidate is elected.
|
int |
getTermsCount()
The number of terms that the candidate is elected.
|
List<Long> |
getTermsList()
The number of terms that the candidate is elected.
|
boolean |
hasAnnouncementTransactionId()
The transaction id when the candidate announced.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ElectionContract.CandidateInformation.Builder |
mergeAnnouncementTransactionId(Client.Hash value)
The transaction id when the candidate announced.
|
ElectionContract.CandidateInformation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ElectionContract.CandidateInformation.Builder |
mergeFrom(ElectionContract.CandidateInformation other) |
ElectionContract.CandidateInformation.Builder |
mergeFrom(com.google.protobuf.Message other) |
ElectionContract.CandidateInformation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ElectionContract.CandidateInformation.Builder |
setAnnouncementTransactionId(Client.Hash.Builder builderForValue)
The transaction id when the candidate announced.
|
ElectionContract.CandidateInformation.Builder |
setAnnouncementTransactionId(Client.Hash value)
The transaction id when the candidate announced.
|
ElectionContract.CandidateInformation.Builder |
setContinualAppointmentCount(long value)
The count of continual appointment.
|
ElectionContract.CandidateInformation.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ElectionContract.CandidateInformation.Builder |
setIsCurrentCandidate(boolean value)
Indicate whether the candidate can be elected in the current term.
|
ElectionContract.CandidateInformation.Builder |
setMissedTimeSlots(long value)
The time slot for which the candidate failed to produce blocks.
|
ElectionContract.CandidateInformation.Builder |
setProducedBlocks(long value)
The number of blocks the candidate has produced.
|
ElectionContract.CandidateInformation.Builder |
setPubkey(String value)
Candidate’s public key.
|
ElectionContract.CandidateInformation.Builder |
setPubkeyBytes(com.google.protobuf.ByteString value)
Candidate’s public key.
|
ElectionContract.CandidateInformation.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ElectionContract.CandidateInformation.Builder |
setTerms(int index,
long value)
The number of terms that the candidate is elected.
|
ElectionContract.CandidateInformation.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ElectionContract.CandidateInformation.Builder>public ElectionContract.CandidateInformation.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ElectionContract.CandidateInformation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ElectionContract.CandidateInformation.Builder>public ElectionContract.CandidateInformation getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic ElectionContract.CandidateInformation build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic ElectionContract.CandidateInformation buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic ElectionContract.CandidateInformation.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ElectionContract.CandidateInformation.Builder>public ElectionContract.CandidateInformation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ElectionContract.CandidateInformation.Builder>public ElectionContract.CandidateInformation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ElectionContract.CandidateInformation.Builder>public ElectionContract.CandidateInformation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ElectionContract.CandidateInformation.Builder>public ElectionContract.CandidateInformation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ElectionContract.CandidateInformation.Builder>public ElectionContract.CandidateInformation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ElectionContract.CandidateInformation.Builder>public ElectionContract.CandidateInformation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<ElectionContract.CandidateInformation.Builder>public ElectionContract.CandidateInformation.Builder mergeFrom(ElectionContract.CandidateInformation other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ElectionContract.CandidateInformation.Builder>public ElectionContract.CandidateInformation.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<ElectionContract.CandidateInformation.Builder>IOExceptionpublic String getPubkey()
Candidate’s public key.
string pubkey = 1;getPubkey 在接口中 ElectionContract.CandidateInformationOrBuilderpublic com.google.protobuf.ByteString getPubkeyBytes()
Candidate’s public key.
string pubkey = 1;getPubkeyBytes 在接口中 ElectionContract.CandidateInformationOrBuilderpublic ElectionContract.CandidateInformation.Builder setPubkey(String value)
Candidate’s public key.
string pubkey = 1;value - The pubkey to set.public ElectionContract.CandidateInformation.Builder clearPubkey()
Candidate’s public key.
string pubkey = 1;public ElectionContract.CandidateInformation.Builder setPubkeyBytes(com.google.protobuf.ByteString value)
Candidate’s public key.
string pubkey = 1;value - The bytes for pubkey to set.public List<Long> getTermsList()
The number of terms that the candidate is elected.
repeated int64 terms = 2;getTermsList 在接口中 ElectionContract.CandidateInformationOrBuilderpublic int getTermsCount()
The number of terms that the candidate is elected.
repeated int64 terms = 2;getTermsCount 在接口中 ElectionContract.CandidateInformationOrBuilderpublic long getTerms(int index)
The number of terms that the candidate is elected.
repeated int64 terms = 2;getTerms 在接口中 ElectionContract.CandidateInformationOrBuilderindex - The index of the element to return.public ElectionContract.CandidateInformation.Builder setTerms(int index, long value)
The number of terms that the candidate is elected.
repeated int64 terms = 2;index - The index to set the value at.value - The terms to set.public ElectionContract.CandidateInformation.Builder addTerms(long value)
The number of terms that the candidate is elected.
repeated int64 terms = 2;value - The terms to add.public ElectionContract.CandidateInformation.Builder addAllTerms(Iterable<? extends Long> values)
The number of terms that the candidate is elected.
repeated int64 terms = 2;values - The terms to add.public ElectionContract.CandidateInformation.Builder clearTerms()
The number of terms that the candidate is elected.
repeated int64 terms = 2;public long getProducedBlocks()
The number of blocks the candidate has produced.
int64 produced_blocks = 3;getProducedBlocks 在接口中 ElectionContract.CandidateInformationOrBuilderpublic ElectionContract.CandidateInformation.Builder setProducedBlocks(long value)
The number of blocks the candidate has produced.
int64 produced_blocks = 3;value - The producedBlocks to set.public ElectionContract.CandidateInformation.Builder clearProducedBlocks()
The number of blocks the candidate has produced.
int64 produced_blocks = 3;public long getMissedTimeSlots()
The time slot for which the candidate failed to produce blocks.
int64 missed_time_slots = 4;getMissedTimeSlots 在接口中 ElectionContract.CandidateInformationOrBuilderpublic ElectionContract.CandidateInformation.Builder setMissedTimeSlots(long value)
The time slot for which the candidate failed to produce blocks.
int64 missed_time_slots = 4;value - The missedTimeSlots to set.public ElectionContract.CandidateInformation.Builder clearMissedTimeSlots()
The time slot for which the candidate failed to produce blocks.
int64 missed_time_slots = 4;public long getContinualAppointmentCount()
The count of continual appointment.
int64 continual_appointment_count = 5;getContinualAppointmentCount 在接口中 ElectionContract.CandidateInformationOrBuilderpublic ElectionContract.CandidateInformation.Builder setContinualAppointmentCount(long value)
The count of continual appointment.
int64 continual_appointment_count = 5;value - The continualAppointmentCount to set.public ElectionContract.CandidateInformation.Builder clearContinualAppointmentCount()
The count of continual appointment.
int64 continual_appointment_count = 5;public boolean hasAnnouncementTransactionId()
The transaction id when the candidate announced.
.Hash announcement_transaction_id = 6;hasAnnouncementTransactionId 在接口中 ElectionContract.CandidateInformationOrBuilderpublic Client.Hash getAnnouncementTransactionId()
The transaction id when the candidate announced.
.Hash announcement_transaction_id = 6;getAnnouncementTransactionId 在接口中 ElectionContract.CandidateInformationOrBuilderpublic ElectionContract.CandidateInformation.Builder setAnnouncementTransactionId(Client.Hash value)
The transaction id when the candidate announced.
.Hash announcement_transaction_id = 6;public ElectionContract.CandidateInformation.Builder setAnnouncementTransactionId(Client.Hash.Builder builderForValue)
The transaction id when the candidate announced.
.Hash announcement_transaction_id = 6;public ElectionContract.CandidateInformation.Builder mergeAnnouncementTransactionId(Client.Hash value)
The transaction id when the candidate announced.
.Hash announcement_transaction_id = 6;public ElectionContract.CandidateInformation.Builder clearAnnouncementTransactionId()
The transaction id when the candidate announced.
.Hash announcement_transaction_id = 6;public Client.Hash.Builder getAnnouncementTransactionIdBuilder()
The transaction id when the candidate announced.
.Hash announcement_transaction_id = 6;public Client.HashOrBuilder getAnnouncementTransactionIdOrBuilder()
The transaction id when the candidate announced.
.Hash announcement_transaction_id = 6;public boolean getIsCurrentCandidate()
Indicate whether the candidate can be elected in the current term.
bool is_current_candidate = 7;getIsCurrentCandidate 在接口中 ElectionContract.CandidateInformationOrBuilderpublic ElectionContract.CandidateInformation.Builder setIsCurrentCandidate(boolean value)
Indicate whether the candidate can be elected in the current term.
bool is_current_candidate = 7;value - The isCurrentCandidate to set.public ElectionContract.CandidateInformation.Builder clearIsCurrentCandidate()
Indicate whether the candidate can be elected in the current term.
bool is_current_candidate = 7;public final ElectionContract.CandidateInformation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ElectionContract.CandidateInformation.Builder>public final ElectionContract.CandidateInformation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ElectionContract.CandidateInformation.Builder>Copyright © 2020. All rights reserved.