Class HistoryProof.Builder

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

    • getTargetProofKeysList

      public List<ProofKey> 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:
      getTargetProofKeysList in interface HistoryProofOrBuilder
    • 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:
      getTargetProofKeysCount in interface HistoryProofOrBuilder
    • getTargetProofKeys

      public ProofKey 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.
       
      repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1;
      Specified by:
      getTargetProofKeys in interface HistoryProofOrBuilder
    • setTargetProofKeys

      public HistoryProof.Builder 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.
       
      repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1;
    • setTargetProofKeys

      public HistoryProof.Builder 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.
       
      repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1;
    • addTargetProofKeys

      public HistoryProof.Builder 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.
       
      repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1;
    • addTargetProofKeys

      public HistoryProof.Builder 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.
       
      repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1;
    • addTargetProofKeys

      public HistoryProof.Builder 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.
       
      repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1;
    • addTargetProofKeys

      public HistoryProof.Builder 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.
       
      repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1;
    • addAllTargetProofKeys

      public HistoryProof.Builder addAllTargetProofKeys(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.
       
      repeated .com.hedera.hapi.node.state.history.ProofKey target_proof_keys = 1;
    • clearTargetProofKeys

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

      public HistoryProof.Builder 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.
       
      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:
      hasTargetHistory in interface HistoryProofOrBuilder
      Returns:
      Whether the targetHistory field is set.
    • getTargetHistory

      public History getTargetHistory()
       *
       The target history of the proof.
       
      .com.hedera.hapi.node.state.history.History target_history = 2;
      Specified by:
      getTargetHistory in interface HistoryProofOrBuilder
      Returns:
      The targetHistory.
    • setTargetHistory

      public HistoryProof.Builder setTargetHistory(History value)
       *
       The target history of the proof.
       
      .com.hedera.hapi.node.state.history.History target_history = 2;
    • setTargetHistory

      public HistoryProof.Builder setTargetHistory(History.Builder builderForValue)
       *
       The target history of the proof.
       
      .com.hedera.hapi.node.state.history.History target_history = 2;
    • mergeTargetHistory

      public HistoryProof.Builder mergeTargetHistory(History value)
       *
       The target history of the proof.
       
      .com.hedera.hapi.node.state.history.History target_history = 2;
    • clearTargetHistory

      public HistoryProof.Builder 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:
      hasChainOfTrustProof in interface HistoryProofOrBuilder
      Returns:
      Whether the chainOfTrustProof field is set.
    • getChainOfTrustProof

      public ChainOfTrustProof 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:
      getChainOfTrustProof in interface HistoryProofOrBuilder
      Returns:
      The chainOfTrustProof.
    • setChainOfTrustProof

      public HistoryProof.Builder setChainOfTrustProof(ChainOfTrustProof value)
       *
       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

      public HistoryProof.Builder setChainOfTrustProof(ChainOfTrustProof.Builder builderForValue)
       *
       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

      public HistoryProof.Builder mergeChainOfTrustProof(ChainOfTrustProof value)
       *
       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

      public HistoryProof.Builder 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:
      getUncompressedWrapsProof in interface HistoryProofOrBuilder
      Returns:
      The uncompressedWrapsProof.
    • setUncompressedWrapsProof

      public HistoryProof.Builder 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.
       
      bytes uncompressed_wraps_proof = 4;
      Parameters:
      value - The uncompressedWrapsProof to set.
      Returns:
      This builder for chaining.
    • clearUncompressedWrapsProof

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