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 TypeMethodDescription* 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.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.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
-
getNodeId
public long getNodeId()* A node identifier.
uint64 node_id = 1;- Specified by:
getNodeIdin interfaceNodeActivityOrBuilder- Returns:
- The nodeId.
-
setNodeId
* A node identifier.
uint64 node_id = 1;- Parameters:
value- The nodeId to set.- Returns:
- This builder for chaining.
-
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:
getNumMissedJudgeRoundsin interfaceNodeActivityOrBuilder- Returns:
- The numMissedJudgeRounds.
-
setNumMissedJudgeRounds
* 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
* 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.
-