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
  • Method Details

    • getVoteCase

      public PreprocessingVote.VoteCase getVoteCase()
      Specified by:
      getVoteCase in interface PreprocessingVoteOrBuilder
    • clearVote

      public PreprocessingVote.Builder 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:
      hasPreprocessedKeys in interface PreprocessingVoteOrBuilder
      Returns:
      Whether the preprocessedKeys field is set.
    • getPreprocessedKeys

      public PreprocessedKeys getPreprocessedKeys()
       *
       The preprocessed keys this node is voting for.
       
      .com.hedera.hapi.node.state.hints.PreprocessedKeys preprocessed_keys = 1;
      Specified by:
      getPreprocessedKeys in interface PreprocessingVoteOrBuilder
      Returns:
      The preprocessedKeys.
    • setPreprocessedKeys

      public PreprocessingVote.Builder setPreprocessedKeys(PreprocessedKeys value)
       *
       The preprocessed keys this node is voting for.
       
      .com.hedera.hapi.node.state.hints.PreprocessedKeys preprocessed_keys = 1;
    • setPreprocessedKeys

      public PreprocessingVote.Builder setPreprocessedKeys(PreprocessedKeys.Builder builderForValue)
       *
       The preprocessed keys this node is voting for.
       
      .com.hedera.hapi.node.state.hints.PreprocessedKeys preprocessed_keys = 1;
    • mergePreprocessedKeys

      public PreprocessingVote.Builder mergePreprocessedKeys(PreprocessedKeys value)
       *
       The preprocessed keys this node is voting for.
       
      .com.hedera.hapi.node.state.hints.PreprocessedKeys preprocessed_keys = 1;
    • clearPreprocessedKeys

      public PreprocessingVote.Builder 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:
      hasCongruentNodeId in interface PreprocessingVoteOrBuilder
      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:
      getCongruentNodeId in interface PreprocessingVoteOrBuilder
      Returns:
      The congruentNodeId.
    • setCongruentNodeId

      public PreprocessingVote.Builder setCongruentNodeId(long value)
       *
       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

      public PreprocessingVote.Builder 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.