Class NodeActivity.Builder

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

public static final class NodeActivity.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<NodeActivity,NodeActivity.Builder> implements NodeActivityOrBuilder
 *
 A record of judge rounds missed by a single node.<br/>
 This records, for a single node, the number of rounds so far, during this staking
 period that missed creating judges. This is used to determine if the node is
 "active" or not.

 This message SHALL NOT record the total number of rounds in a staking
 period.<br/>
 This message SHALL record a count of rounds for a single node that missed creating judges.
 
Protobuf type proto.NodeActivity
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    * A node identifier.
    * A count of rounds.<br/> This is the count of rounds so far, in this staking period in which the node identified by `node_id` did not create judges.
    long
    * A node identifier.
    long
    * A count of rounds.<br/> This is the count of rounds so far, in this staking period in which the node identified by `node_id` did not create judges.
    setNodeId(long value)
    * A node identifier.
    * A count of rounds.<br/> This is the count of rounds so far, in this staking period in which the node identified by `node_id` did not create judges.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getNodeId

      public long getNodeId()
       *
       A node identifier.
       
      uint64 node_id = 1;
      Specified by:
      getNodeId in interface NodeActivityOrBuilder
      Returns:
      The nodeId.
    • setNodeId

      public NodeActivity.Builder setNodeId(long value)
       *
       A node identifier.
       
      uint64 node_id = 1;
      Parameters:
      value - The nodeId to set.
      Returns:
      This builder for chaining.
    • clearNodeId

      public NodeActivity.Builder clearNodeId()
       *
       A node identifier.
       
      uint64 node_id = 1;
      Returns:
      This builder for chaining.
    • getNumMissedJudgeRounds

      public long getNumMissedJudgeRounds()
       *
       A count of rounds.<br/>
       This is the count of rounds so far, in this staking period in which the node identified
       by `node_id` did not create judges.
       
      uint64 num_missed_judge_rounds = 2;
      Specified by:
      getNumMissedJudgeRounds in interface NodeActivityOrBuilder
      Returns:
      The numMissedJudgeRounds.
    • setNumMissedJudgeRounds

      public NodeActivity.Builder setNumMissedJudgeRounds(long value)
       *
       A count of rounds.<br/>
       This is the count of rounds so far, in this staking period in which the node identified
       by `node_id` did not create judges.
       
      uint64 num_missed_judge_rounds = 2;
      Parameters:
      value - The numMissedJudgeRounds to set.
      Returns:
      This builder for chaining.
    • clearNumMissedJudgeRounds

      public NodeActivity.Builder clearNumMissedJudgeRounds()
       *
       A count of rounds.<br/>
       This is the count of rounds so far, in this staking period in which the node identified
       by `node_id` did not create judges.
       
      uint64 num_missed_judge_rounds = 2;
      Returns:
      This builder for chaining.