Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class PreprocessingVote.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<PreprocessingVote,PreprocessingVote.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<PreprocessingVote,PreprocessingVote.Builder>
com.hedera.hashgraph.sdk.proto.PreprocessingVote.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,PreprocessingVoteOrBuilder,Cloneable
- Enclosing class:
PreprocessingVote
public static final class PreprocessingVote.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<PreprocessingVote,PreprocessingVote.Builder>
implements PreprocessingVoteOrBuilder
* A node's vote for the consensus output of a hinTS preprocessing algorithm.Protobuf type
com.hedera.hapi.node.state.hints.PreprocessingVote-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* The id of any node that already voted for the exact keys that this node wanted to vote for.* The preprocessed keys this node is voting for.long* The id of any node that already voted for the exact keys that this node wanted to vote for.* The preprocessed keys this node is voting for.boolean* The id of any node that already voted for the exact keys that this node wanted to vote for.boolean* The preprocessed keys this node is voting for.* The preprocessed keys this node is voting for.setCongruentNodeId(long value) * The id of any node that already voted for the exact keys that this node wanted to vote for.* The preprocessed keys this node is voting for.setPreprocessedKeys(PreprocessedKeys.Builder builderForValue) * The preprocessed keys this 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 interfacePreprocessingVoteOrBuilder
-
clearVote
-
hasPreprocessedKeys
public boolean hasPreprocessedKeys()* The preprocessed keys this node is voting for.
.com.hedera.hapi.node.state.hints.PreprocessedKeys preprocessed_keys = 1;- Specified by:
hasPreprocessedKeysin interfacePreprocessingVoteOrBuilder- Returns:
- Whether the preprocessedKeys field is set.
-
getPreprocessedKeys
* The preprocessed keys this node is voting for.
.com.hedera.hapi.node.state.hints.PreprocessedKeys preprocessed_keys = 1;- Specified by:
getPreprocessedKeysin interfacePreprocessingVoteOrBuilder- Returns:
- The preprocessedKeys.
-
setPreprocessedKeys
* The preprocessed keys this node is voting for.
.com.hedera.hapi.node.state.hints.PreprocessedKeys preprocessed_keys = 1; -
setPreprocessedKeys
* The preprocessed keys this node is voting for.
.com.hedera.hapi.node.state.hints.PreprocessedKeys preprocessed_keys = 1; -
mergePreprocessedKeys
* The preprocessed keys this node is voting for.
.com.hedera.hapi.node.state.hints.PreprocessedKeys preprocessed_keys = 1; -
clearPreprocessedKeys
* The preprocessed keys this node is voting for.
.com.hedera.hapi.node.state.hints.PreprocessedKeys preprocessed_keys = 1; -
hasCongruentNodeId
public boolean hasCongruentNodeId()* The id of any node that already voted for the exact keys that this node wanted to vote for.
uint64 congruent_node_id = 2;- Specified by:
hasCongruentNodeIdin interfacePreprocessingVoteOrBuilder- Returns:
- Whether the congruentNodeId field is set.
-
getCongruentNodeId
public long getCongruentNodeId()* The id of any node that already voted for the exact keys that this node wanted to vote for.
uint64 congruent_node_id = 2;- Specified by:
getCongruentNodeIdin interfacePreprocessingVoteOrBuilder- Returns:
- The congruentNodeId.
-
setCongruentNodeId
* The id of any node that already voted for the exact keys that this node wanted to vote for.
uint64 congruent_node_id = 2;- Parameters:
value- The congruentNodeId to set.- Returns:
- This builder for chaining.
-
clearCongruentNodeId
* The id of any node that already voted for the exact keys that this node wanted to vote for.
uint64 congruent_node_id = 2;- Returns:
- This builder for chaining.
-