Class HistoryProofConstruction.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<HistoryProofConstruction,HistoryProofConstruction.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<HistoryProofConstruction,HistoryProofConstruction.Builder>
com.hedera.hashgraph.sdk.proto.HistoryProofConstruction.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, HistoryProofConstructionOrBuilder, Cloneable
Enclosing class:
HistoryProofConstruction

public static final class HistoryProofConstruction.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<HistoryProofConstruction,HistoryProofConstruction.Builder> implements HistoryProofConstructionOrBuilder
 *
 Summary of the status of constructing a metadata proof, necessary to
 ensure deterministic construction ending in a roster with sufficient
 weight to enact its own constructions.
 
Protobuf type com.hedera.hapi.node.state.history.HistoryProofConstruction
  • Method Details

    • getProofStateCase

      public HistoryProofConstruction.ProofStateCase getProofStateCase()
      Specified by:
      getProofStateCase in interface HistoryProofConstructionOrBuilder
    • clearProofState

      public HistoryProofConstruction.Builder clearProofState()
    • getConstructionId

      public long getConstructionId()
       *
       The construction id.
       
      uint64 construction_id = 1;
      Specified by:
      getConstructionId in interface HistoryProofConstructionOrBuilder
      Returns:
      The constructionId.
    • setConstructionId

      public HistoryProofConstruction.Builder setConstructionId(long value)
       *
       The construction id.
       
      uint64 construction_id = 1;
      Parameters:
      value - The constructionId to set.
      Returns:
      This builder for chaining.
    • clearConstructionId

      public HistoryProofConstruction.Builder clearConstructionId()
       *
       The construction id.
       
      uint64 construction_id = 1;
      Returns:
      This builder for chaining.
    • getSourceRosterHash

      public com.google.protobuf.ByteString getSourceRosterHash()
       *
       The hash of the roster whose weights are used to determine when
       certain thresholds are during construction.
       
      bytes source_roster_hash = 2;
      Specified by:
      getSourceRosterHash in interface HistoryProofConstructionOrBuilder
      Returns:
      The sourceRosterHash.
    • setSourceRosterHash

      public HistoryProofConstruction.Builder setSourceRosterHash(com.google.protobuf.ByteString value)
       *
       The hash of the roster whose weights are used to determine when
       certain thresholds are during construction.
       
      bytes source_roster_hash = 2;
      Parameters:
      value - The sourceRosterHash to set.
      Returns:
      This builder for chaining.
    • clearSourceRosterHash

      public HistoryProofConstruction.Builder clearSourceRosterHash()
       *
       The hash of the roster whose weights are used to determine when
       certain thresholds are during construction.
       
      bytes source_roster_hash = 2;
      Returns:
      This builder for chaining.
    • getTargetRosterHash

      public com.google.protobuf.ByteString getTargetRosterHash()
       *
       The hash of the roster whose weights are used to assess progress
       toward obtaining proof keys for parties that hold at least a
       strong minority of the stake in that roster.
       
      bytes target_roster_hash = 4;
      Specified by:
      getTargetRosterHash in interface HistoryProofConstructionOrBuilder
      Returns:
      The targetRosterHash.
    • setTargetRosterHash

      public HistoryProofConstruction.Builder setTargetRosterHash(com.google.protobuf.ByteString value)
       *
       The hash of the roster whose weights are used to assess progress
       toward obtaining proof keys for parties that hold at least a
       strong minority of the stake in that roster.
       
      bytes target_roster_hash = 4;
      Parameters:
      value - The targetRosterHash to set.
      Returns:
      This builder for chaining.
    • clearTargetRosterHash

      public HistoryProofConstruction.Builder clearTargetRosterHash()
       *
       The hash of the roster whose weights are used to assess progress
       toward obtaining proof keys for parties that hold at least a
       strong minority of the stake in that roster.
       
      bytes target_roster_hash = 4;
      Returns:
      This builder for chaining.
    • hasGracePeriodEndTime

      public boolean hasGracePeriodEndTime()
       *
       If the network is still gathering proof keys for this
       construction, the next time at which nodes should stop waiting
       for tardy proof keys and assemble the history to be proven as
       soon as it has the associated metadata and proof keys for nodes
       with >2/3 weight in the target roster.
       
      .proto.Timestamp grace_period_end_time = 5;
      Specified by:
      hasGracePeriodEndTime in interface HistoryProofConstructionOrBuilder
      Returns:
      Whether the gracePeriodEndTime field is set.
    • getGracePeriodEndTime

      public Timestamp getGracePeriodEndTime()
       *
       If the network is still gathering proof keys for this
       construction, the next time at which nodes should stop waiting
       for tardy proof keys and assemble the history to be proven as
       soon as it has the associated metadata and proof keys for nodes
       with >2/3 weight in the target roster.
       
      .proto.Timestamp grace_period_end_time = 5;
      Specified by:
      getGracePeriodEndTime in interface HistoryProofConstructionOrBuilder
      Returns:
      The gracePeriodEndTime.
    • setGracePeriodEndTime

      public HistoryProofConstruction.Builder setGracePeriodEndTime(Timestamp value)
       *
       If the network is still gathering proof keys for this
       construction, the next time at which nodes should stop waiting
       for tardy proof keys and assemble the history to be proven as
       soon as it has the associated metadata and proof keys for nodes
       with >2/3 weight in the target roster.
       
      .proto.Timestamp grace_period_end_time = 5;
    • setGracePeriodEndTime

      public HistoryProofConstruction.Builder setGracePeriodEndTime(Timestamp.Builder builderForValue)
       *
       If the network is still gathering proof keys for this
       construction, the next time at which nodes should stop waiting
       for tardy proof keys and assemble the history to be proven as
       soon as it has the associated metadata and proof keys for nodes
       with >2/3 weight in the target roster.
       
      .proto.Timestamp grace_period_end_time = 5;
    • mergeGracePeriodEndTime

      public HistoryProofConstruction.Builder mergeGracePeriodEndTime(Timestamp value)
       *
       If the network is still gathering proof keys for this
       construction, the next time at which nodes should stop waiting
       for tardy proof keys and assemble the history to be proven as
       soon as it has the associated metadata and proof keys for nodes
       with >2/3 weight in the target roster.
       
      .proto.Timestamp grace_period_end_time = 5;
    • clearGracePeriodEndTime

      public HistoryProofConstruction.Builder clearGracePeriodEndTime()
       *
       If the network is still gathering proof keys for this
       construction, the next time at which nodes should stop waiting
       for tardy proof keys and assemble the history to be proven as
       soon as it has the associated metadata and proof keys for nodes
       with >2/3 weight in the target roster.
       
      .proto.Timestamp grace_period_end_time = 5;
    • hasAssemblyStartTime

      public boolean hasAssemblyStartTime()
       *
       If the network has gathered enough proof keys to assemble the
       history for this construction, the cutoff time at which those
       keys must have been adopted to be included in the final history.
       
      .proto.Timestamp assembly_start_time = 6;
      Specified by:
      hasAssemblyStartTime in interface HistoryProofConstructionOrBuilder
      Returns:
      Whether the assemblyStartTime field is set.
    • getAssemblyStartTime

      public Timestamp getAssemblyStartTime()
       *
       If the network has gathered enough proof keys to assemble the
       history for this construction, the cutoff time at which those
       keys must have been adopted to be included in the final history.
       
      .proto.Timestamp assembly_start_time = 6;
      Specified by:
      getAssemblyStartTime in interface HistoryProofConstructionOrBuilder
      Returns:
      The assemblyStartTime.
    • setAssemblyStartTime

      public HistoryProofConstruction.Builder setAssemblyStartTime(Timestamp value)
       *
       If the network has gathered enough proof keys to assemble the
       history for this construction, the cutoff time at which those
       keys must have been adopted to be included in the final history.
       
      .proto.Timestamp assembly_start_time = 6;
    • setAssemblyStartTime

      public HistoryProofConstruction.Builder setAssemblyStartTime(Timestamp.Builder builderForValue)
       *
       If the network has gathered enough proof keys to assemble the
       history for this construction, the cutoff time at which those
       keys must have been adopted to be included in the final history.
       
      .proto.Timestamp assembly_start_time = 6;
    • mergeAssemblyStartTime

      public HistoryProofConstruction.Builder mergeAssemblyStartTime(Timestamp value)
       *
       If the network has gathered enough proof keys to assemble the
       history for this construction, the cutoff time at which those
       keys must have been adopted to be included in the final history.
       
      .proto.Timestamp assembly_start_time = 6;
    • clearAssemblyStartTime

      public HistoryProofConstruction.Builder clearAssemblyStartTime()
       *
       If the network has gathered enough proof keys to assemble the
       history for this construction, the cutoff time at which those
       keys must have been adopted to be included in the final history.
       
      .proto.Timestamp assembly_start_time = 6;
    • hasTargetProof

      public boolean hasTargetProof()
       *
       When this construction is complete, the proof that the target
       roster's address book and associated metadata belong to the
       ledger id's chain of trust.
       
      .com.hedera.hapi.node.state.history.HistoryProof target_proof = 7;
      Specified by:
      hasTargetProof in interface HistoryProofConstructionOrBuilder
      Returns:
      Whether the targetProof field is set.
    • getTargetProof

      public HistoryProof getTargetProof()
       *
       When this construction is complete, the proof that the target
       roster's address book and associated metadata belong to the
       ledger id's chain of trust.
       
      .com.hedera.hapi.node.state.history.HistoryProof target_proof = 7;
      Specified by:
      getTargetProof in interface HistoryProofConstructionOrBuilder
      Returns:
      The targetProof.
    • setTargetProof

      public HistoryProofConstruction.Builder setTargetProof(HistoryProof value)
       *
       When this construction is complete, the proof that the target
       roster's address book and associated metadata belong to the
       ledger id's chain of trust.
       
      .com.hedera.hapi.node.state.history.HistoryProof target_proof = 7;
    • setTargetProof

      public HistoryProofConstruction.Builder setTargetProof(HistoryProof.Builder builderForValue)
       *
       When this construction is complete, the proof that the target
       roster's address book and associated metadata belong to the
       ledger id's chain of trust.
       
      .com.hedera.hapi.node.state.history.HistoryProof target_proof = 7;
    • mergeTargetProof

      public HistoryProofConstruction.Builder mergeTargetProof(HistoryProof value)
       *
       When this construction is complete, the proof that the target
       roster's address book and associated metadata belong to the
       ledger id's chain of trust.
       
      .com.hedera.hapi.node.state.history.HistoryProof target_proof = 7;
    • clearTargetProof

      public HistoryProofConstruction.Builder clearTargetProof()
       *
       When this construction is complete, the proof that the target
       roster's address book and associated metadata belong to the
       ledger id's chain of trust.
       
      .com.hedera.hapi.node.state.history.HistoryProof target_proof = 7;
    • hasFailureReason

      public boolean hasFailureReason()
       *
       If set, the reason the construction failed.
       
      string failure_reason = 8;
      Specified by:
      hasFailureReason in interface HistoryProofConstructionOrBuilder
      Returns:
      Whether the failureReason field is set.
    • getFailureReason

      public String getFailureReason()
       *
       If set, the reason the construction failed.
       
      string failure_reason = 8;
      Specified by:
      getFailureReason in interface HistoryProofConstructionOrBuilder
      Returns:
      The failureReason.
    • getFailureReasonBytes

      public com.google.protobuf.ByteString getFailureReasonBytes()
       *
       If set, the reason the construction failed.
       
      string failure_reason = 8;
      Specified by:
      getFailureReasonBytes in interface HistoryProofConstructionOrBuilder
      Returns:
      The bytes for failureReason.
    • setFailureReason

      public HistoryProofConstruction.Builder setFailureReason(String value)
       *
       If set, the reason the construction failed.
       
      string failure_reason = 8;
      Parameters:
      value - The failureReason to set.
      Returns:
      This builder for chaining.
    • clearFailureReason

      public HistoryProofConstruction.Builder clearFailureReason()
       *
       If set, the reason the construction failed.
       
      string failure_reason = 8;
      Returns:
      This builder for chaining.
    • setFailureReasonBytes

      public HistoryProofConstruction.Builder setFailureReasonBytes(com.google.protobuf.ByteString value)
       *
       If set, the reason the construction failed.
       
      string failure_reason = 8;
      Parameters:
      value - The bytes for failureReason to set.
      Returns:
      This builder for chaining.
    • hasWrapsSigningState

      public boolean hasWrapsSigningState()
       *
       If set, the state of the WRAPS signing protocol for this construction.
       
      .com.hedera.hapi.node.state.history.WrapsSigningState wraps_signing_state = 9;
      Specified by:
      hasWrapsSigningState in interface HistoryProofConstructionOrBuilder
      Returns:
      Whether the wrapsSigningState field is set.
    • getWrapsSigningState

      public WrapsSigningState getWrapsSigningState()
       *
       If set, the state of the WRAPS signing protocol for this construction.
       
      .com.hedera.hapi.node.state.history.WrapsSigningState wraps_signing_state = 9;
      Specified by:
      getWrapsSigningState in interface HistoryProofConstructionOrBuilder
      Returns:
      The wrapsSigningState.
    • setWrapsSigningState

      public HistoryProofConstruction.Builder setWrapsSigningState(WrapsSigningState value)
       *
       If set, the state of the WRAPS signing protocol for this construction.
       
      .com.hedera.hapi.node.state.history.WrapsSigningState wraps_signing_state = 9;
    • setWrapsSigningState

      public HistoryProofConstruction.Builder setWrapsSigningState(WrapsSigningState.Builder builderForValue)
       *
       If set, the state of the WRAPS signing protocol for this construction.
       
      .com.hedera.hapi.node.state.history.WrapsSigningState wraps_signing_state = 9;
    • mergeWrapsSigningState

      public HistoryProofConstruction.Builder mergeWrapsSigningState(WrapsSigningState value)
       *
       If set, the state of the WRAPS signing protocol for this construction.
       
      .com.hedera.hapi.node.state.history.WrapsSigningState wraps_signing_state = 9;
    • clearWrapsSigningState

      public HistoryProofConstruction.Builder clearWrapsSigningState()
       *
       If set, the state of the WRAPS signing protocol for this construction.
       
      .com.hedera.hapi.node.state.history.WrapsSigningState wraps_signing_state = 9;
    • getWrapsRetryCount

      public int getWrapsRetryCount()
       *
       The number of times the network has had to restart this construction.
       
      uint32 wraps_retry_count = 10;
      Specified by:
      getWrapsRetryCount in interface HistoryProofConstructionOrBuilder
      Returns:
      The wrapsRetryCount.
    • setWrapsRetryCount

      public HistoryProofConstruction.Builder setWrapsRetryCount(int value)
       *
       The number of times the network has had to restart this construction.
       
      uint32 wraps_retry_count = 10;
      Parameters:
      value - The wrapsRetryCount to set.
      Returns:
      This builder for chaining.
    • clearWrapsRetryCount

      public HistoryProofConstruction.Builder clearWrapsRetryCount()
       *
       The number of times the network has had to restart this construction.
       
      uint32 wraps_retry_count = 10;
      Returns:
      This builder for chaining.