java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<HistoryProof,HistoryProof.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<HistoryProof,HistoryProof.Builder>
com.hedera.hashgraph.sdk.proto.HistoryProof.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,HistoryProofOrBuilder,Cloneable
- Enclosing class:
HistoryProof
public static final class HistoryProof.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<HistoryProof,HistoryProof.Builder>
implements HistoryProofOrBuilder
* A proof that some address book history belongs to the ledger id's chain of trust.Protobuf type
com.hedera.hapi.node.state.history.HistoryProof-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllTargetProofKeys(Iterable<? extends ProofKey> values) * The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.addTargetProofKeys(int index, ProofKey value) * The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.addTargetProofKeys(int index, ProofKey.Builder builderForValue) * The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.addTargetProofKeys(ProofKey value) * The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.addTargetProofKeys(ProofKey.Builder builderForValue) * The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.* The proof of chain of trust from the ledger id to the target history's metadata.* The target history of the proof.* The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.* If set, the uncompressed proof of chain of trust from the ledger id to the target address book; the uncompressed version of the WRAPS proof is required to keep extending the chain of trust.* The proof of chain of trust from the ledger id to the target history's metadata.* The target history of the proof.getTargetProofKeys(int index) * The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.int* The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.* The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.com.google.protobuf.ByteString* If set, the uncompressed proof of chain of trust from the ledger id to the target address book; the uncompressed version of the WRAPS proof is required to keep extending the chain of trust.boolean* The proof of chain of trust from the ledger id to the target history's metadata.boolean* The target history of the proof.* The proof of chain of trust from the ledger id to the target history's metadata.mergeTargetHistory(History value) * The target history of the proof.removeTargetProofKeys(int index) * The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.* The proof of chain of trust from the ledger id to the target history's metadata.setChainOfTrustProof(ChainOfTrustProof.Builder builderForValue) * The proof of chain of trust from the ledger id to the target history's metadata.setTargetHistory(History value) * The target history of the proof.setTargetHistory(History.Builder builderForValue) * The target history of the proof.setTargetProofKeys(int index, ProofKey value) * The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.setTargetProofKeys(int index, ProofKey.Builder builderForValue) * The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.setUncompressedWrapsProof(com.google.protobuf.ByteString value) * If set, the uncompressed proof of chain of trust from the ledger id to the target address book; the uncompressed version of the WRAPS proof is required to keep extending the chain of trust.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
-
getTargetProofKeysList
* The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.
repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1;- Specified by:
getTargetProofKeysListin interfaceHistoryProofOrBuilder
-
getTargetProofKeysCount
public int getTargetProofKeysCount()* The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.
repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1;- Specified by:
getTargetProofKeysCountin interfaceHistoryProofOrBuilder
-
getTargetProofKeys
* The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.
repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1;- Specified by:
getTargetProofKeysin interfaceHistoryProofOrBuilder
-
setTargetProofKeys
* The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.
repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1; -
setTargetProofKeys
* The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.
repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1; -
addTargetProofKeys
* The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.
repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1; -
addTargetProofKeys
* The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.
repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1; -
addTargetProofKeys
* The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.
repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1; -
addTargetProofKeys
* The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.
repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1; -
addAllTargetProofKeys
* The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.
repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1; -
clearTargetProofKeys
* The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.
repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1; -
removeTargetProofKeys
* The proof keys for the target address book, needed to keep constructing proofs after adopting the target address book's roster at a handoff.
repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1; -
hasTargetHistory
public boolean hasTargetHistory()* The target history of the proof.
.com.hedera.hapi.node.state.history.History target_history = 2;- Specified by:
hasTargetHistoryin interfaceHistoryProofOrBuilder- Returns:
- Whether the targetHistory field is set.
-
getTargetHistory
* The target history of the proof.
.com.hedera.hapi.node.state.history.History target_history = 2;- Specified by:
getTargetHistoryin interfaceHistoryProofOrBuilder- Returns:
- The targetHistory.
-
setTargetHistory
* The target history of the proof.
.com.hedera.hapi.node.state.history.History target_history = 2; -
setTargetHistory
* The target history of the proof.
.com.hedera.hapi.node.state.history.History target_history = 2; -
mergeTargetHistory
* The target history of the proof.
.com.hedera.hapi.node.state.history.History target_history = 2; -
clearTargetHistory
* The target history of the proof.
.com.hedera.hapi.node.state.history.History target_history = 2; -
hasChainOfTrustProof
public boolean hasChainOfTrustProof()* The proof of chain of trust from the ledger id to the target history's metadata. May be switched from AggregatedNodeSignatures to a recursive proof when one becomes available.
.com.hedera.hapi.node.state.history.ChainOfTrustProof chain_of_trust_proof = 3;- Specified by:
hasChainOfTrustProofin interfaceHistoryProofOrBuilder- Returns:
- Whether the chainOfTrustProof field is set.
-
getChainOfTrustProof
* The proof of chain of trust from the ledger id to the target history's metadata. May be switched from AggregatedNodeSignatures to a recursive proof when one becomes available.
.com.hedera.hapi.node.state.history.ChainOfTrustProof chain_of_trust_proof = 3;- Specified by:
getChainOfTrustProofin interfaceHistoryProofOrBuilder- Returns:
- The chainOfTrustProof.
-
setChainOfTrustProof
* The proof of chain of trust from the ledger id to the target history's metadata. May be switched from AggregatedNodeSignatures to a recursive proof when one becomes available.
.com.hedera.hapi.node.state.history.ChainOfTrustProof chain_of_trust_proof = 3; -
setChainOfTrustProof
* The proof of chain of trust from the ledger id to the target history's metadata. May be switched from AggregatedNodeSignatures to a recursive proof when one becomes available.
.com.hedera.hapi.node.state.history.ChainOfTrustProof chain_of_trust_proof = 3; -
mergeChainOfTrustProof
* The proof of chain of trust from the ledger id to the target history's metadata. May be switched from AggregatedNodeSignatures to a recursive proof when one becomes available.
.com.hedera.hapi.node.state.history.ChainOfTrustProof chain_of_trust_proof = 3; -
clearChainOfTrustProof
* The proof of chain of trust from the ledger id to the target history's metadata. May be switched from AggregatedNodeSignatures to a recursive proof when one becomes available.
.com.hedera.hapi.node.state.history.ChainOfTrustProof chain_of_trust_proof = 3; -
getUncompressedWrapsProof
public com.google.protobuf.ByteString getUncompressedWrapsProof()* If set, the uncompressed proof of chain of trust from the ledger id to the target address book; the uncompressed version of the WRAPS proof is required to keep extending the chain of trust.
bytes uncompressed_wraps_proof = 4;- Specified by:
getUncompressedWrapsProofin interfaceHistoryProofOrBuilder- Returns:
- The uncompressedWrapsProof.
-
setUncompressedWrapsProof
* If set, the uncompressed proof of chain of trust from the ledger id to the target address book; the uncompressed version of the WRAPS proof is required to keep extending the chain of trust.
bytes uncompressed_wraps_proof = 4;- Parameters:
value- The uncompressedWrapsProof to set.- Returns:
- This builder for chaining.
-
clearUncompressedWrapsProof
* If set, the uncompressed proof of chain of trust from the ledger id to the target address book; the uncompressed version of the WRAPS proof is required to keep extending the chain of trust.
bytes uncompressed_wraps_proof = 4;- Returns:
- This builder for chaining.
-