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

    • getVoteCase

      public HistoryProofVote.VoteCase getVoteCase()
      Specified by:
      getVoteCase in interface HistoryProofVoteOrBuilder
    • clearVote

      public HistoryProofVote.Builder 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:
      hasProof in interface HistoryProofVoteOrBuilder
      Returns:
      Whether the proof field is set.
    • getProof

      public HistoryProof getProof()
       *
       The history proof the submitting node is voting for.
       
      .com.hedera.hapi.node.state.history.HistoryProof proof = 1;
      Specified by:
      getProof in interface HistoryProofVoteOrBuilder
      Returns:
      The proof.
    • setProof

      public HistoryProofVote.Builder setProof(HistoryProof value)
       *
       The history proof the submitting node is voting for.
       
      .com.hedera.hapi.node.state.history.HistoryProof proof = 1;
    • setProof

      public HistoryProofVote.Builder setProof(HistoryProof.Builder builderForValue)
       *
       The history proof the submitting node is voting for.
       
      .com.hedera.hapi.node.state.history.HistoryProof proof = 1;
    • mergeProof

      public HistoryProofVote.Builder mergeProof(HistoryProof value)
       *
       The history proof the submitting node is voting for.
       
      .com.hedera.hapi.node.state.history.HistoryProof proof = 1;
    • clearProof

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

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

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