Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class HistoryProofVote.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<HistoryProofVote,HistoryProofVote.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<HistoryProofVote,HistoryProofVote.Builder>
com.hedera.hashgraph.sdk.proto.HistoryProofVote.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,HistoryProofVoteOrBuilder,Cloneable
- Enclosing class:
HistoryProofVote
public static final class HistoryProofVote.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<HistoryProofVote,HistoryProofVote.Builder>
implements HistoryProofVoteOrBuilder
* A node's vote for a particular history proof; either by explicitly giving the proof, or by identifying a node that already voted for it.Protobuf type
com.hedera.hapi.node.state.history.HistoryProofVote-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* The id of another node that already voted for the exact proof the submitting node is voting for.* The history proof the submitting node is voting for.long* The id of another node that already voted for the exact proof the submitting node is voting for.getProof()* The history proof the submitting node is voting for.boolean* The id of another node that already voted for the exact proof the submitting node is voting for.booleanhasProof()* The history proof the submitting node is voting for.mergeProof(HistoryProof value) * The history proof the submitting node is voting for.setCongruentNodeId(long value) * The id of another node that already voted for the exact proof the submitting node is voting for.setProof(HistoryProof value) * The history proof the submitting node is voting for.setProof(HistoryProof.Builder builderForValue) * The history proof the submitting node is voting for.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
-
getVoteCase
- Specified by:
getVoteCasein interfaceHistoryProofVoteOrBuilder
-
clearVote
-
hasProof
public boolean hasProof()* The history proof the submitting node is voting for.
.com.hedera.hapi.node.state.history.HistoryProof proof = 1;- Specified by:
hasProofin interfaceHistoryProofVoteOrBuilder- Returns:
- Whether the proof field is set.
-
getProof
* The history proof the submitting node is voting for.
.com.hedera.hapi.node.state.history.HistoryProof proof = 1;- Specified by:
getProofin interfaceHistoryProofVoteOrBuilder- Returns:
- The proof.
-
setProof
* The history proof the submitting node is voting for.
.com.hedera.hapi.node.state.history.HistoryProof proof = 1; -
setProof
* The history proof the submitting node is voting for.
.com.hedera.hapi.node.state.history.HistoryProof proof = 1; -
mergeProof
* The history proof the submitting node is voting for.
.com.hedera.hapi.node.state.history.HistoryProof proof = 1; -
clearProof
* The history proof the submitting node is voting for.
.com.hedera.hapi.node.state.history.HistoryProof proof = 1; -
hasCongruentNodeId
public boolean hasCongruentNodeId()* The id of another node that already voted for the exact proof the submitting node is voting for.
uint64 congruent_node_id = 2;- Specified by:
hasCongruentNodeIdin interfaceHistoryProofVoteOrBuilder- Returns:
- Whether the congruentNodeId field is set.
-
getCongruentNodeId
public long getCongruentNodeId()* The id of another node that already voted for the exact proof the submitting node is voting for.
uint64 congruent_node_id = 2;- Specified by:
getCongruentNodeIdin interfaceHistoryProofVoteOrBuilder- Returns:
- The congruentNodeId.
-
setCongruentNodeId
* The id of another node that already voted for the exact proof the submitting node is voting for.
uint64 congruent_node_id = 2;- Parameters:
value- The congruentNodeId to set.- Returns:
- This builder for chaining.
-
clearCongruentNodeId
* The id of another node that already voted for the exact proof the submitting node is voting for.
uint64 congruent_node_id = 2;- Returns:
- This builder for chaining.
-