Class HintsConstruction.Builder

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

public static final class HintsConstruction.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<HintsConstruction,HintsConstruction.Builder> implements HintsConstructionOrBuilder
 *
 A summary of progress in constructing a hinTS scheme.
 
Protobuf type com.hedera.hapi.node.state.hints.HintsConstruction
  • Method Details

    • getPreprocessingStateCase

      public HintsConstruction.PreprocessingStateCase getPreprocessingStateCase()
      Specified by:
      getPreprocessingStateCase in interface HintsConstructionOrBuilder
    • clearPreprocessingState

      public HintsConstruction.Builder clearPreprocessingState()
    • getConstructionId

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

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

      public HintsConstruction.Builder clearConstructionId()
       *
       The id of the construction.
       
      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
       the >=1/3 weight signing threshold is reached.
       
      bytes source_roster_hash = 2;
      Specified by:
      getSourceRosterHash in interface HintsConstructionOrBuilder
      Returns:
      The sourceRosterHash.
    • setSourceRosterHash

      public HintsConstruction.Builder setSourceRosterHash(com.google.protobuf.ByteString value)
       *
       The hash of the roster whose weights are used to determine when
       the >=1/3 weight signing threshold is reached.
       
      bytes source_roster_hash = 2;
      Parameters:
      value - The sourceRosterHash to set.
      Returns:
      This builder for chaining.
    • clearSourceRosterHash

      public HintsConstruction.Builder clearSourceRosterHash()
       *
       The hash of the roster whose weights are used to determine when
       the >=1/3 weight signing threshold is reached.
       
      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 determine when
       the >2/3 weight availability threshold is reached.
       
      bytes target_roster_hash = 3;
      Specified by:
      getTargetRosterHash in interface HintsConstructionOrBuilder
      Returns:
      The targetRosterHash.
    • setTargetRosterHash

      public HintsConstruction.Builder setTargetRosterHash(com.google.protobuf.ByteString value)
       *
       The hash of the roster whose weights are used to determine when
       the >2/3 weight availability threshold is reached.
       
      bytes target_roster_hash = 3;
      Parameters:
      value - The targetRosterHash to set.
      Returns:
      This builder for chaining.
    • clearTargetRosterHash

      public HintsConstruction.Builder clearTargetRosterHash()
       *
       The hash of the roster whose weights are used to determine when
       the >2/3 weight availability threshold is reached.
       
      bytes target_roster_hash = 3;
      Returns:
      This builder for chaining.
    • hasGracePeriodEndTime

      public boolean hasGracePeriodEndTime()
       *
       If the network is still gathering hinTS keys for this construction,
       the time at which honest nodes should stop waiting for tardy
       publications and begin preprocessing as soon as there are valid
       hinTS keys for nodes with >2/3 weight in the target roster.
       
      .proto.Timestamp grace_period_end_time = 4;
      Specified by:
      hasGracePeriodEndTime in interface HintsConstructionOrBuilder
      Returns:
      Whether the gracePeriodEndTime field is set.
    • getGracePeriodEndTime

      public Timestamp getGracePeriodEndTime()
       *
       If the network is still gathering hinTS keys for this construction,
       the time at which honest nodes should stop waiting for tardy
       publications and begin preprocessing as soon as there are valid
       hinTS keys for nodes with >2/3 weight in the target roster.
       
      .proto.Timestamp grace_period_end_time = 4;
      Specified by:
      getGracePeriodEndTime in interface HintsConstructionOrBuilder
      Returns:
      The gracePeriodEndTime.
    • setGracePeriodEndTime

      public HintsConstruction.Builder setGracePeriodEndTime(Timestamp value)
       *
       If the network is still gathering hinTS keys for this construction,
       the time at which honest nodes should stop waiting for tardy
       publications and begin preprocessing as soon as there are valid
       hinTS keys for nodes with >2/3 weight in the target roster.
       
      .proto.Timestamp grace_period_end_time = 4;
    • setGracePeriodEndTime

      public HintsConstruction.Builder setGracePeriodEndTime(Timestamp.Builder builderForValue)
       *
       If the network is still gathering hinTS keys for this construction,
       the time at which honest nodes should stop waiting for tardy
       publications and begin preprocessing as soon as there are valid
       hinTS keys for nodes with >2/3 weight in the target roster.
       
      .proto.Timestamp grace_period_end_time = 4;
    • mergeGracePeriodEndTime

      public HintsConstruction.Builder mergeGracePeriodEndTime(Timestamp value)
       *
       If the network is still gathering hinTS keys for this construction,
       the time at which honest nodes should stop waiting for tardy
       publications and begin preprocessing as soon as there are valid
       hinTS keys for nodes with >2/3 weight in the target roster.
       
      .proto.Timestamp grace_period_end_time = 4;
    • clearGracePeriodEndTime

      public HintsConstruction.Builder clearGracePeriodEndTime()
       *
       If the network is still gathering hinTS keys for this construction,
       the time at which honest nodes should stop waiting for tardy
       publications and begin preprocessing as soon as there are valid
       hinTS keys for nodes with >2/3 weight in the target roster.
       
      .proto.Timestamp grace_period_end_time = 4;
    • hasPreprocessingStartTime

      public boolean hasPreprocessingStartTime()
       *
       If the network has gathered enough hinTS keys for this construction
       to begin preprocessing, the cutoff time by which keys must have been
       adopted to be included as input to the preprocessing algorithm.
       
      .proto.Timestamp preprocessing_start_time = 5;
      Specified by:
      hasPreprocessingStartTime in interface HintsConstructionOrBuilder
      Returns:
      Whether the preprocessingStartTime field is set.
    • getPreprocessingStartTime

      public Timestamp getPreprocessingStartTime()
       *
       If the network has gathered enough hinTS keys for this construction
       to begin preprocessing, the cutoff time by which keys must have been
       adopted to be included as input to the preprocessing algorithm.
       
      .proto.Timestamp preprocessing_start_time = 5;
      Specified by:
      getPreprocessingStartTime in interface HintsConstructionOrBuilder
      Returns:
      The preprocessingStartTime.
    • setPreprocessingStartTime

      public HintsConstruction.Builder setPreprocessingStartTime(Timestamp value)
       *
       If the network has gathered enough hinTS keys for this construction
       to begin preprocessing, the cutoff time by which keys must have been
       adopted to be included as input to the preprocessing algorithm.
       
      .proto.Timestamp preprocessing_start_time = 5;
    • setPreprocessingStartTime

      public HintsConstruction.Builder setPreprocessingStartTime(Timestamp.Builder builderForValue)
       *
       If the network has gathered enough hinTS keys for this construction
       to begin preprocessing, the cutoff time by which keys must have been
       adopted to be included as input to the preprocessing algorithm.
       
      .proto.Timestamp preprocessing_start_time = 5;
    • mergePreprocessingStartTime

      public HintsConstruction.Builder mergePreprocessingStartTime(Timestamp value)
       *
       If the network has gathered enough hinTS keys for this construction
       to begin preprocessing, the cutoff time by which keys must have been
       adopted to be included as input to the preprocessing algorithm.
       
      .proto.Timestamp preprocessing_start_time = 5;
    • clearPreprocessingStartTime

      public HintsConstruction.Builder clearPreprocessingStartTime()
       *
       If the network has gathered enough hinTS keys for this construction
       to begin preprocessing, the cutoff time by which keys must have been
       adopted to be included as input to the preprocessing algorithm.
       
      .proto.Timestamp preprocessing_start_time = 5;
    • hasHintsScheme

      public boolean hasHintsScheme()
       *
       If set, the completed hinTS scheme.
       
      .com.hedera.hapi.node.state.hints.HintsScheme hints_scheme = 6;
      Specified by:
      hasHintsScheme in interface HintsConstructionOrBuilder
      Returns:
      Whether the hintsScheme field is set.
    • getHintsScheme

      public HintsScheme getHintsScheme()
       *
       If set, the completed hinTS scheme.
       
      .com.hedera.hapi.node.state.hints.HintsScheme hints_scheme = 6;
      Specified by:
      getHintsScheme in interface HintsConstructionOrBuilder
      Returns:
      The hintsScheme.
    • setHintsScheme

      public HintsConstruction.Builder setHintsScheme(HintsScheme value)
       *
       If set, the completed hinTS scheme.
       
      .com.hedera.hapi.node.state.hints.HintsScheme hints_scheme = 6;
    • setHintsScheme

      public HintsConstruction.Builder setHintsScheme(HintsScheme.Builder builderForValue)
       *
       If set, the completed hinTS scheme.
       
      .com.hedera.hapi.node.state.hints.HintsScheme hints_scheme = 6;
    • mergeHintsScheme

      public HintsConstruction.Builder mergeHintsScheme(HintsScheme value)
       *
       If set, the completed hinTS scheme.
       
      .com.hedera.hapi.node.state.hints.HintsScheme hints_scheme = 6;
    • clearHintsScheme

      public HintsConstruction.Builder clearHintsScheme()
       *
       If set, the completed hinTS scheme.
       
      .com.hedera.hapi.node.state.hints.HintsScheme hints_scheme = 6;