Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* 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.* The construction id.* If set, the reason the construction failed.* 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.* The hash of the roster whose weights are used to determine when certain thresholds are during construction.* 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.* 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.* The number of times the network has had to restart this construction.* If set, the state of the WRAPS signing protocol for this construction.* 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.long* The construction id.* If set, the reason the construction failed.com.google.protobuf.ByteString* If set, the reason the construction failed.* 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.com.google.protobuf.ByteString* The hash of the roster whose weights are used to determine when certain thresholds are during construction.* 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.google.protobuf.ByteString* 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.int* The number of times the network has had to restart this construction.* If set, the state of the WRAPS signing protocol for this construction.boolean* 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.boolean* If set, the reason the construction failed.boolean* 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.boolean* 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.boolean* If set, the state of the WRAPS signing protocol for this construction.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.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.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.* If set, the state of the WRAPS signing protocol for this construction.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.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.setConstructionId(long value) * The construction id.setFailureReason(String value) * If set, the reason the construction failed.setFailureReasonBytes(com.google.protobuf.ByteString value) * If set, the reason the construction failed.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.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.setSourceRosterHash(com.google.protobuf.ByteString value) * The hash of the roster whose weights are used to determine when certain thresholds are during construction.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.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.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.setWrapsRetryCount(int value) * The number of times the network has had to restart this construction.* If set, the state of the WRAPS signing protocol for this construction.setWrapsSigningState(WrapsSigningState.Builder builderForValue) * If set, the state of the WRAPS signing protocol for this construction.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
-
getProofStateCase
- Specified by:
getProofStateCasein interfaceHistoryProofConstructionOrBuilder
-
clearProofState
-
getConstructionId
public long getConstructionId()* The construction id.
uint64 construction_id = 1;- Specified by:
getConstructionIdin interfaceHistoryProofConstructionOrBuilder- Returns:
- The constructionId.
-
setConstructionId
* The construction id.
uint64 construction_id = 1;- Parameters:
value- The constructionId to set.- Returns:
- This builder for chaining.
-
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:
getSourceRosterHashin interfaceHistoryProofConstructionOrBuilder- Returns:
- The sourceRosterHash.
-
setSourceRosterHash
* 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
* 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:
getTargetRosterHashin interfaceHistoryProofConstructionOrBuilder- Returns:
- The targetRosterHash.
-
setTargetRosterHash
* 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
* 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:
hasGracePeriodEndTimein interfaceHistoryProofConstructionOrBuilder- Returns:
- Whether the gracePeriodEndTime field is set.
-
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:
getGracePeriodEndTimein interfaceHistoryProofConstructionOrBuilder- Returns:
- The gracePeriodEndTime.
-
setGracePeriodEndTime
* 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
* 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
* 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
* 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:
hasAssemblyStartTimein interfaceHistoryProofConstructionOrBuilder- Returns:
- Whether the assemblyStartTime field is set.
-
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:
getAssemblyStartTimein interfaceHistoryProofConstructionOrBuilder- Returns:
- The assemblyStartTime.
-
setAssemblyStartTime
* 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
* 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
* 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
* 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:
hasTargetProofin interfaceHistoryProofConstructionOrBuilder- Returns:
- Whether the targetProof field is set.
-
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:
getTargetProofin interfaceHistoryProofConstructionOrBuilder- Returns:
- The targetProof.
-
setTargetProof
* 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
* 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
* 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
* 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:
hasFailureReasonin interfaceHistoryProofConstructionOrBuilder- Returns:
- Whether the failureReason field is set.
-
getFailureReason
* If set, the reason the construction failed.
string failure_reason = 8;- Specified by:
getFailureReasonin interfaceHistoryProofConstructionOrBuilder- Returns:
- The failureReason.
-
getFailureReasonBytes
public com.google.protobuf.ByteString getFailureReasonBytes()* If set, the reason the construction failed.
string failure_reason = 8;- Specified by:
getFailureReasonBytesin interfaceHistoryProofConstructionOrBuilder- Returns:
- The bytes for failureReason.
-
setFailureReason
* If set, the reason the construction failed.
string failure_reason = 8;- Parameters:
value- The failureReason to set.- Returns:
- This builder for chaining.
-
clearFailureReason
* If set, the reason the construction failed.
string failure_reason = 8;- Returns:
- This builder for chaining.
-
setFailureReasonBytes
* 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:
hasWrapsSigningStatein interfaceHistoryProofConstructionOrBuilder- Returns:
- Whether the wrapsSigningState field is set.
-
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:
getWrapsSigningStatein interfaceHistoryProofConstructionOrBuilder- Returns:
- The wrapsSigningState.
-
setWrapsSigningState
* 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
* If set, the state of the WRAPS signing protocol for this construction.
.com.hedera.hapi.node.state.history.WrapsSigningState wraps_signing_state = 9; -
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:
getWrapsRetryCountin interfaceHistoryProofConstructionOrBuilder- Returns:
- The wrapsRetryCount.
-
setWrapsRetryCount
* 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
* The number of times the network has had to restart this construction.
uint32 wraps_retry_count = 10;- Returns:
- This builder for chaining.
-