Module com.hedera.hashgraph.sdk
Class HintsPreprocessingVoteTransactionBody.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<HintsPreprocessingVoteTransactionBody,HintsPreprocessingVoteTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<HintsPreprocessingVoteTransactionBody,HintsPreprocessingVoteTransactionBody.Builder>
com.hedera.hapi.services.auxiliary.hints.legacy.HintsPreprocessingVoteTransactionBody.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,HintsPreprocessingVoteTransactionBodyOrBuilder,Cloneable
- Enclosing class:
HintsPreprocessingVoteTransactionBody
public static final class HintsPreprocessingVoteTransactionBody.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<HintsPreprocessingVoteTransactionBody,HintsPreprocessingVoteTransactionBody.Builder>
implements HintsPreprocessingVoteTransactionBodyOrBuilder
* A transaction body to publish a node's vote for the results of aggregating the hinTS keys for a specified construction id. The node can either give their explicit aggregation results, or delegate their vote to another node's results.Protobuf type
com.hedera.hapi.services.auxiliary.hints.HintsPreprocessingVoteTransactionBody-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* The id of the hinTS construction this vote is for.* The vote the node is casting for the aggregation of the hints in the given construction (which should be ongoing).long* The id of the hinTS construction this vote is for.getVote()* The vote the node is casting for the aggregation of the hints in the given construction (which should be ongoing).booleanhasVote()* The vote the node is casting for the aggregation of the hints in the given construction (which should be ongoing).mergeVote(PreprocessingVote value) * The vote the node is casting for the aggregation of the hints in the given construction (which should be ongoing).setConstructionId(long value) * The id of the hinTS construction this vote is for.setVote(PreprocessingVote value) * The vote the node is casting for the aggregation of the hints in the given construction (which should be ongoing).setVote(PreprocessingVote.Builder builderForValue) * The vote the node is casting for the aggregation of the hints in the given construction (which should be ongoing).Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getConstructionId
public long getConstructionId()* The id of the hinTS construction this vote is for. Because the network only ever performs one construction a time, this is somewhat redundant, but included to detect any strange edge cases where a node is so far behind it votes on the wrong construction.
uint64 construction_id = 1;- Specified by:
getConstructionIdin interfaceHintsPreprocessingVoteTransactionBodyOrBuilder- Returns:
- The constructionId.
-
setConstructionId
* The id of the hinTS construction this vote is for. Because the network only ever performs one construction a time, this is somewhat redundant, but included to detect any strange edge cases where a node is so far behind it votes on the wrong construction.
uint64 construction_id = 1;- Parameters:
value- The constructionId to set.- Returns:
- This builder for chaining.
-
clearConstructionId
* The id of the hinTS construction this vote is for. Because the network only ever performs one construction a time, this is somewhat redundant, but included to detect any strange edge cases where a node is so far behind it votes on the wrong construction.
uint64 construction_id = 1;- Returns:
- This builder for chaining.
-
hasVote
public boolean hasVote()* The vote the node is casting for the aggregation of the hints in the given construction (which should be ongoing).
.com.hedera.hapi.node.state.hints.PreprocessingVote vote = 2;- Specified by:
hasVotein interfaceHintsPreprocessingVoteTransactionBodyOrBuilder- Returns:
- Whether the vote field is set.
-
getVote
* The vote the node is casting for the aggregation of the hints in the given construction (which should be ongoing).
.com.hedera.hapi.node.state.hints.PreprocessingVote vote = 2;- Specified by:
getVotein interfaceHintsPreprocessingVoteTransactionBodyOrBuilder- Returns:
- The vote.
-
setVote
* The vote the node is casting for the aggregation of the hints in the given construction (which should be ongoing).
.com.hedera.hapi.node.state.hints.PreprocessingVote vote = 2; -
setVote
public HintsPreprocessingVoteTransactionBody.Builder setVote(PreprocessingVote.Builder builderForValue) * The vote the node is casting for the aggregation of the hints in the given construction (which should be ongoing).
.com.hedera.hapi.node.state.hints.PreprocessingVote vote = 2; -
mergeVote
* The vote the node is casting for the aggregation of the hints in the given construction (which should be ongoing).
.com.hedera.hapi.node.state.hints.PreprocessingVote vote = 2; -
clearVote
* The vote the node is casting for the aggregation of the hints in the given construction (which should be ongoing).
.com.hedera.hapi.node.state.hints.PreprocessingVote vote = 2;
-