Class LedgerIdNodeContribution.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<LedgerIdNodeContribution,LedgerIdNodeContribution.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<LedgerIdNodeContribution,LedgerIdNodeContribution.Builder>
com.hedera.hapi.node.tss.legacy.LedgerIdNodeContribution.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, LedgerIdNodeContributionOrBuilder, Cloneable
Enclosing class:
LedgerIdNodeContribution

public static final class LedgerIdNodeContribution.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<LedgerIdNodeContribution,LedgerIdNodeContribution.Builder> implements LedgerIdNodeContributionOrBuilder
 *
 A record of the proof key a node had in a particular address
 book. Necessary to keep at each point history so that nodes
 can verify the correct key was used to sign in transitions
 starting from the current address book; no matter how keys
 have been rotated from the time the address book was created.
 
Protobuf type com.hedera.hapi.node.tss.LedgerIdNodeContribution
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    * The public key the node used to contribute to history proofs when the ledger id was published.
    * The node id.
    * The node's consensus weight when the ledger id was published.
    com.google.protobuf.ByteString
    * The public key the node used to contribute to history proofs when the ledger id was published.
    long
    * The node id.
    long
    * The node's consensus weight when the ledger id was published.
    setHistoryProofKey(com.google.protobuf.ByteString value)
    * The public key the node used to contribute to history proofs when the ledger id was published.
    setNodeId(long value)
    * The node id.
    setWeight(long value)
    * The node's consensus weight when the ledger id was published.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getNodeId

      public long getNodeId()
       *
       The node id.
       
      uint64 node_id = 1;
      Specified by:
      getNodeId in interface LedgerIdNodeContributionOrBuilder
      Returns:
      The nodeId.
    • setNodeId

      public LedgerIdNodeContribution.Builder setNodeId(long value)
       *
       The node id.
       
      uint64 node_id = 1;
      Parameters:
      value - The nodeId to set.
      Returns:
      This builder for chaining.
    • clearNodeId

      public LedgerIdNodeContribution.Builder clearNodeId()
       *
       The node id.
       
      uint64 node_id = 1;
      Returns:
      This builder for chaining.
    • getWeight

      public long getWeight()
       *
       The node's consensus weight when the ledger id was published.
       
      uint64 weight = 2;
      Specified by:
      getWeight in interface LedgerIdNodeContributionOrBuilder
      Returns:
      The weight.
    • setWeight

      public LedgerIdNodeContribution.Builder setWeight(long value)
       *
       The node's consensus weight when the ledger id was published.
       
      uint64 weight = 2;
      Parameters:
      value - The weight to set.
      Returns:
      This builder for chaining.
    • clearWeight

      public LedgerIdNodeContribution.Builder clearWeight()
       *
       The node's consensus weight when the ledger id was published.
       
      uint64 weight = 2;
      Returns:
      This builder for chaining.
    • getHistoryProofKey

      public com.google.protobuf.ByteString getHistoryProofKey()
       *
       The public key the node used to contribute to history proofs when the
       ledger id was published.
       
      bytes history_proof_key = 3;
      Specified by:
      getHistoryProofKey in interface LedgerIdNodeContributionOrBuilder
      Returns:
      The historyProofKey.
    • setHistoryProofKey

      public LedgerIdNodeContribution.Builder setHistoryProofKey(com.google.protobuf.ByteString value)
       *
       The public key the node used to contribute to history proofs when the
       ledger id was published.
       
      bytes history_proof_key = 3;
      Parameters:
      value - The historyProofKey to set.
      Returns:
      This builder for chaining.
    • clearHistoryProofKey

      public LedgerIdNodeContribution.Builder clearHistoryProofKey()
       *
       The public key the node used to contribute to history proofs when the
       ledger id was published.
       
      bytes history_proof_key = 3;
      Returns:
      This builder for chaining.