Module com.hedera.hashgraph.sdk
Package com.hedera.hapi.node.tss.legacy
Class LedgerIdPublicationTransactionBody.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<LedgerIdPublicationTransactionBody,LedgerIdPublicationTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<LedgerIdPublicationTransactionBody,LedgerIdPublicationTransactionBody.Builder>
com.hedera.hapi.node.tss.legacy.LedgerIdPublicationTransactionBody.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,LedgerIdPublicationTransactionBodyOrBuilder,Cloneable
- Enclosing class:
LedgerIdPublicationTransactionBody
public static final class LedgerIdPublicationTransactionBody.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<LedgerIdPublicationTransactionBody,LedgerIdPublicationTransactionBody.Builder>
implements LedgerIdPublicationTransactionBodyOrBuilder
* A system initiated transaction to externalize the ledger id and verification key for recursive chain-of-trust proofs extending from the new ledger id. This transaction SHALL be issued whenever the ledger id changes.<br/> This transaction MUST NOT be sent by a client and SHALL be rejected if received by any node.<br/> This transaction SHALL be present in the record stream or block stream. ### Block Stream Effects NoneProtobuf type
com.hedera.hapi.node.tss.LedgerIdPublicationTransactionBody-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllNodeContributions(Iterable<? extends LedgerIdNodeContribution> values) * The node-specific contributions made to the new ledger id.addNodeContributions(int index, LedgerIdNodeContribution value) * The node-specific contributions made to the new ledger id.addNodeContributions(int index, LedgerIdNodeContribution.Builder builderForValue) * The node-specific contributions made to the new ledger id.* The node-specific contributions made to the new ledger id.addNodeContributions(LedgerIdNodeContribution.Builder builderForValue) * The node-specific contributions made to the new ledger id.* The key to use when verifying recursive chain-of-trust proofs that extend from this ledger id.* The new ledger id.* The node-specific contributions made to the new ledger id.com.google.protobuf.ByteString* The key to use when verifying recursive chain-of-trust proofs that extend from this ledger id.com.google.protobuf.ByteString* The new ledger id.getNodeContributions(int index) * The node-specific contributions made to the new ledger id.int* The node-specific contributions made to the new ledger id.* The node-specific contributions made to the new ledger id.removeNodeContributions(int index) * The node-specific contributions made to the new ledger id.setHistoryProofVerificationKey(com.google.protobuf.ByteString value) * The key to use when verifying recursive chain-of-trust proofs that extend from this ledger id.setLedgerId(com.google.protobuf.ByteString value) * The new ledger id.setNodeContributions(int index, LedgerIdNodeContribution value) * The node-specific contributions made to the new ledger id.setNodeContributions(int index, LedgerIdNodeContribution.Builder builderForValue) * The node-specific contributions made to the new ledger id.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
-
getLedgerId
public com.google.protobuf.ByteString getLedgerId()* The new ledger id.
bytes ledger_id = 1;- Specified by:
getLedgerIdin interfaceLedgerIdPublicationTransactionBodyOrBuilder- Returns:
- The ledgerId.
-
setLedgerId
* The new ledger id.
bytes ledger_id = 1;- Parameters:
value- The ledgerId to set.- Returns:
- This builder for chaining.
-
clearLedgerId
* The new ledger id.
bytes ledger_id = 1;- Returns:
- This builder for chaining.
-
getHistoryProofVerificationKey
public com.google.protobuf.ByteString getHistoryProofVerificationKey()* The key to use when verifying recursive chain-of-trust proofs that extend from this ledger id.
bytes history_proof_verification_key = 2;- Specified by:
getHistoryProofVerificationKeyin interfaceLedgerIdPublicationTransactionBodyOrBuilder- Returns:
- The historyProofVerificationKey.
-
setHistoryProofVerificationKey
public LedgerIdPublicationTransactionBody.Builder setHistoryProofVerificationKey(com.google.protobuf.ByteString value) * The key to use when verifying recursive chain-of-trust proofs that extend from this ledger id.
bytes history_proof_verification_key = 2;- Parameters:
value- The historyProofVerificationKey to set.- Returns:
- This builder for chaining.
-
clearHistoryProofVerificationKey
* The key to use when verifying recursive chain-of-trust proofs that extend from this ledger id.
bytes history_proof_verification_key = 2;- Returns:
- This builder for chaining.
-
getNodeContributionsList
* The node-specific contributions made to the new ledger id.
repeated .com.hedera.hapi.node.tss.LedgerIdNodeContribution node_contributions = 3;- Specified by:
getNodeContributionsListin interfaceLedgerIdPublicationTransactionBodyOrBuilder
-
getNodeContributionsCount
public int getNodeContributionsCount()* The node-specific contributions made to the new ledger id.
repeated .com.hedera.hapi.node.tss.LedgerIdNodeContribution node_contributions = 3;- Specified by:
getNodeContributionsCountin interfaceLedgerIdPublicationTransactionBodyOrBuilder
-
getNodeContributions
* The node-specific contributions made to the new ledger id.
repeated .com.hedera.hapi.node.tss.LedgerIdNodeContribution node_contributions = 3;- Specified by:
getNodeContributionsin interfaceLedgerIdPublicationTransactionBodyOrBuilder
-
setNodeContributions
public LedgerIdPublicationTransactionBody.Builder setNodeContributions(int index, LedgerIdNodeContribution value) * The node-specific contributions made to the new ledger id.
repeated .com.hedera.hapi.node.tss.LedgerIdNodeContribution node_contributions = 3; -
setNodeContributions
public LedgerIdPublicationTransactionBody.Builder setNodeContributions(int index, LedgerIdNodeContribution.Builder builderForValue) * The node-specific contributions made to the new ledger id.
repeated .com.hedera.hapi.node.tss.LedgerIdNodeContribution node_contributions = 3; -
addNodeContributions
public LedgerIdPublicationTransactionBody.Builder addNodeContributions(LedgerIdNodeContribution value) * The node-specific contributions made to the new ledger id.
repeated .com.hedera.hapi.node.tss.LedgerIdNodeContribution node_contributions = 3; -
addNodeContributions
public LedgerIdPublicationTransactionBody.Builder addNodeContributions(int index, LedgerIdNodeContribution value) * The node-specific contributions made to the new ledger id.
repeated .com.hedera.hapi.node.tss.LedgerIdNodeContribution node_contributions = 3; -
addNodeContributions
public LedgerIdPublicationTransactionBody.Builder addNodeContributions(LedgerIdNodeContribution.Builder builderForValue) * The node-specific contributions made to the new ledger id.
repeated .com.hedera.hapi.node.tss.LedgerIdNodeContribution node_contributions = 3; -
addNodeContributions
public LedgerIdPublicationTransactionBody.Builder addNodeContributions(int index, LedgerIdNodeContribution.Builder builderForValue) * The node-specific contributions made to the new ledger id.
repeated .com.hedera.hapi.node.tss.LedgerIdNodeContribution node_contributions = 3; -
addAllNodeContributions
public LedgerIdPublicationTransactionBody.Builder addAllNodeContributions(Iterable<? extends LedgerIdNodeContribution> values) * The node-specific contributions made to the new ledger id.
repeated .com.hedera.hapi.node.tss.LedgerIdNodeContribution node_contributions = 3; -
clearNodeContributions
* The node-specific contributions made to the new ledger id.
repeated .com.hedera.hapi.node.tss.LedgerIdNodeContribution node_contributions = 3; -
removeNodeContributions
* The node-specific contributions made to the new ledger id.
repeated .com.hedera.hapi.node.tss.LedgerIdNodeContribution node_contributions = 3;
-