Class CRSState.Builder

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

public static final class CRSState.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<CRSState,CRSState.Builder> implements CRSStateOrBuilder
 *
 The state of a CRS construction.
 
Protobuf type com.hedera.hapi.node.state.hints.CRSState
  • Method Details

    • getCrs

      public com.google.protobuf.ByteString getCrs()
       *
       The bytes of the CRS. Based on the CRSStage, this may be the initial CRS
       or the final CRS.
       
      bytes crs = 1;
      Specified by:
      getCrs in interface CRSStateOrBuilder
      Returns:
      The crs.
    • setCrs

      public CRSState.Builder setCrs(com.google.protobuf.ByteString value)
       *
       The bytes of the CRS. Based on the CRSStage, this may be the initial CRS
       or the final CRS.
       
      bytes crs = 1;
      Parameters:
      value - The crs to set.
      Returns:
      This builder for chaining.
    • clearCrs

      public CRSState.Builder clearCrs()
       *
       The bytes of the CRS. Based on the CRSStage, this may be the initial CRS
       or the final CRS.
       
      bytes crs = 1;
      Returns:
      This builder for chaining.
    • getStageValue

      public int getStageValue()
       *
       The stage of the CRS construction.
       
      .com.hedera.hapi.node.state.hints.CRSStage stage = 2;
      Specified by:
      getStageValue in interface CRSStateOrBuilder
      Returns:
      The enum numeric value on the wire for stage.
    • setStageValue

      public CRSState.Builder setStageValue(int value)
       *
       The stage of the CRS construction.
       
      .com.hedera.hapi.node.state.hints.CRSStage stage = 2;
      Parameters:
      value - The stage to set.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • getStage

      public CRSStage getStage()
       *
       The stage of the CRS construction.
       
      .com.hedera.hapi.node.state.hints.CRSStage stage = 2;
      Specified by:
      getStage in interface CRSStateOrBuilder
      Returns:
      The stage.
    • setStage

      public CRSState.Builder setStage(CRSStage value)
       *
       The stage of the CRS construction.
       
      .com.hedera.hapi.node.state.hints.CRSStage stage = 2;
      Parameters:
      value - The enum numeric value on the wire for stage to set.
      Returns:
      This builder for chaining.
    • clearStage

      public CRSState.Builder clearStage()
       *
       The stage of the CRS construction.
       
      .com.hedera.hapi.node.state.hints.CRSStage stage = 2;
      Returns:
      This builder for chaining.
    • hasNextContributingNodeId

      public boolean hasNextContributingNodeId()
       *
       The id of the next node that should contribute to the CRS. This is used
       to ensure that all nodes contribute to the CRS in a round-robin fashion.
       If this is null, then all nodes in the network have contributed to the CRS.
       
      .google.protobuf.UInt64Value next_contributing_node_id = 3;
      Specified by:
      hasNextContributingNodeId in interface CRSStateOrBuilder
      Returns:
      Whether the nextContributingNodeId field is set.
    • getNextContributingNodeId

      public com.google.protobuf.UInt64Value getNextContributingNodeId()
       *
       The id of the next node that should contribute to the CRS. This is used
       to ensure that all nodes contribute to the CRS in a round-robin fashion.
       If this is null, then all nodes in the network have contributed to the CRS.
       
      .google.protobuf.UInt64Value next_contributing_node_id = 3;
      Specified by:
      getNextContributingNodeId in interface CRSStateOrBuilder
      Returns:
      The nextContributingNodeId.
    • setNextContributingNodeId

      public CRSState.Builder setNextContributingNodeId(com.google.protobuf.UInt64Value value)
       *
       The id of the next node that should contribute to the CRS. This is used
       to ensure that all nodes contribute to the CRS in a round-robin fashion.
       If this is null, then all nodes in the network have contributed to the CRS.
       
      .google.protobuf.UInt64Value next_contributing_node_id = 3;
    • setNextContributingNodeId

      public CRSState.Builder setNextContributingNodeId(com.google.protobuf.UInt64Value.Builder builderForValue)
       *
       The id of the next node that should contribute to the CRS. This is used
       to ensure that all nodes contribute to the CRS in a round-robin fashion.
       If this is null, then all nodes in the network have contributed to the CRS.
       
      .google.protobuf.UInt64Value next_contributing_node_id = 3;
    • mergeNextContributingNodeId

      public CRSState.Builder mergeNextContributingNodeId(com.google.protobuf.UInt64Value value)
       *
       The id of the next node that should contribute to the CRS. This is used
       to ensure that all nodes contribute to the CRS in a round-robin fashion.
       If this is null, then all nodes in the network have contributed to the CRS.
       
      .google.protobuf.UInt64Value next_contributing_node_id = 3;
    • clearNextContributingNodeId

      public CRSState.Builder clearNextContributingNodeId()
       *
       The id of the next node that should contribute to the CRS. This is used
       to ensure that all nodes contribute to the CRS in a round-robin fashion.
       If this is null, then all nodes in the network have contributed to the CRS.
       
      .google.protobuf.UInt64Value next_contributing_node_id = 3;
    • hasContributionEndTime

      public boolean hasContributionEndTime()
       *
       The time at which the network should stop waiting for the node's contributions
       and move on to the next node in the round-robin fashion.
       
      .proto.Timestamp contribution_end_time = 4;
      Specified by:
      hasContributionEndTime in interface CRSStateOrBuilder
      Returns:
      Whether the contributionEndTime field is set.
    • getContributionEndTime

      public Timestamp getContributionEndTime()
       *
       The time at which the network should stop waiting for the node's contributions
       and move on to the next node in the round-robin fashion.
       
      .proto.Timestamp contribution_end_time = 4;
      Specified by:
      getContributionEndTime in interface CRSStateOrBuilder
      Returns:
      The contributionEndTime.
    • setContributionEndTime

      public CRSState.Builder setContributionEndTime(Timestamp value)
       *
       The time at which the network should stop waiting for the node's contributions
       and move on to the next node in the round-robin fashion.
       
      .proto.Timestamp contribution_end_time = 4;
    • setContributionEndTime

      public CRSState.Builder setContributionEndTime(Timestamp.Builder builderForValue)
       *
       The time at which the network should stop waiting for the node's contributions
       and move on to the next node in the round-robin fashion.
       
      .proto.Timestamp contribution_end_time = 4;
    • mergeContributionEndTime

      public CRSState.Builder mergeContributionEndTime(Timestamp value)
       *
       The time at which the network should stop waiting for the node's contributions
       and move on to the next node in the round-robin fashion.
       
      .proto.Timestamp contribution_end_time = 4;
    • clearContributionEndTime

      public CRSState.Builder clearContributionEndTime()
       *
       The time at which the network should stop waiting for the node's contributions
       and move on to the next node in the round-robin fashion.
       
      .proto.Timestamp contribution_end_time = 4;