Module com.hedera.hashgraph.sdk
Package com.hedera.hapi.node.tss.legacy
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 TypeMethodDescription* 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, 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
-
getNodeId
public long getNodeId()* The node id.
uint64 node_id = 1;- Specified by:
getNodeIdin interfaceLedgerIdNodeContributionOrBuilder- Returns:
- The nodeId.
-
setNodeId
* The node id.
uint64 node_id = 1;- Parameters:
value- The nodeId to set.- Returns:
- This builder for chaining.
-
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:
getWeightin interfaceLedgerIdNodeContributionOrBuilder- Returns:
- The weight.
-
setWeight
* 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
* 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:
getHistoryProofKeyin interfaceLedgerIdNodeContributionOrBuilder- Returns:
- The historyProofKey.
-
setHistoryProofKey
* 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
* 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.
-