Module com.hedera.hashgraph.sdk
Class HistoryProofVoteTransactionBody.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<HistoryProofVoteTransactionBody,HistoryProofVoteTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<HistoryProofVoteTransactionBody,HistoryProofVoteTransactionBody.Builder>
com.hedera.hapi.services.auxiliary.history.legacy.HistoryProofVoteTransactionBody.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,HistoryProofVoteTransactionBodyOrBuilder,Cloneable
- Enclosing class:
HistoryProofVoteTransactionBody
public static final class HistoryProofVoteTransactionBody.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<HistoryProofVoteTransactionBody,HistoryProofVoteTransactionBody.Builder>
implements HistoryProofVoteTransactionBodyOrBuilder
* A transaction body to publish a node's vote for a proof of history associated to a construction id.Protobuf type
com.hedera.hapi.services.auxiliary.history.HistoryProofVoteTransactionBody-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* The id of the proof construction this vote is for.* The submitting node's vote on the history proof.long* The id of the proof construction this vote is for.getVote()* The submitting node's vote on the history proof.booleanhasVote()* The submitting node's vote on the history proof.mergeVote(HistoryProofVote value) * The submitting node's vote on the history proof.setConstructionId(long value) * The id of the proof construction this vote is for.setVote(HistoryProofVote value) * The submitting node's vote on the history proof.setVote(HistoryProofVote.Builder builderForValue) * The submitting node's vote on the history proof.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 proof construction this vote is for.
uint64 construction_id = 1;- Specified by:
getConstructionIdin interfaceHistoryProofVoteTransactionBodyOrBuilder- Returns:
- The constructionId.
-
setConstructionId
* The id of the proof construction this vote is for.
uint64 construction_id = 1;- Parameters:
value- The constructionId to set.- Returns:
- This builder for chaining.
-
clearConstructionId
* The id of the proof construction this vote is for.
uint64 construction_id = 1;- Returns:
- This builder for chaining.
-
hasVote
public boolean hasVote()* The submitting node's vote on the history proof.
.com.hedera.hapi.node.state.history.HistoryProofVote vote = 2;- Specified by:
hasVotein interfaceHistoryProofVoteTransactionBodyOrBuilder- Returns:
- Whether the vote field is set.
-
getVote
* The submitting node's vote on the history proof.
.com.hedera.hapi.node.state.history.HistoryProofVote vote = 2;- Specified by:
getVotein interfaceHistoryProofVoteTransactionBodyOrBuilder- Returns:
- The vote.
-
setVote
* The submitting node's vote on the history proof.
.com.hedera.hapi.node.state.history.HistoryProofVote vote = 2; -
setVote
* The submitting node's vote on the history proof.
.com.hedera.hapi.node.state.history.HistoryProofVote vote = 2; -
mergeVote
* The submitting node's vote on the history proof.
.com.hedera.hapi.node.state.history.HistoryProofVote vote = 2; -
clearVote
* The submitting node's vote on the history proof.
.com.hedera.hapi.node.state.history.HistoryProofVote vote = 2;
-