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
  • 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:
      getConstructionId in interface HintsPreprocessingVoteTransactionBodyOrBuilder
      Returns:
      The constructionId.
    • setConstructionId

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

      public HintsPreprocessingVoteTransactionBody.Builder 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:
      hasVote in interface HintsPreprocessingVoteTransactionBodyOrBuilder
      Returns:
      Whether the vote field is set.
    • getVote

      public PreprocessingVote 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:
      getVote in interface HintsPreprocessingVoteTransactionBodyOrBuilder
      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

       *
       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;