java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<NodePartyId,NodePartyId.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<NodePartyId,NodePartyId.Builder>
com.hedera.hashgraph.sdk.proto.NodePartyId.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,NodePartyIdOrBuilder,Cloneable
- Enclosing class:
NodePartyId
public static final class NodePartyId.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<NodePartyId,NodePartyId.Builder>
implements NodePartyIdOrBuilder
* A node's weighted hinTS party id.Protobuf type
com.hedera.hapi.node.state.hints.NodePartyId-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* The node id.* The party id.* The party's weight in the construction.long* The node id.int* The party id.long* The party's weight in the construction.setNodeId(long value) * The node id.setPartyId(int value) * The party id.setPartyWeight(long value) * The party's weight in the 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
-
getNodeId
public long getNodeId()* The node id.
uint64 node_id = 1;- Specified by:
getNodeIdin interfaceNodePartyIdOrBuilder- Returns:
- The nodeId.
-
setNodeId
* The node id.
uint64 node_id = 1;- Parameters:
value- The nodeId to set.- Returns:
- This builder for chaining.
-
clearNodeId
* The node id.
uint64 node_id = 1;- Returns:
- This builder for chaining.
-
getPartyId
public int getPartyId()* The party id.
uint32 party_id = 2;- Specified by:
getPartyIdin interfaceNodePartyIdOrBuilder- Returns:
- The partyId.
-
setPartyId
* The party id.
uint32 party_id = 2;- Parameters:
value- The partyId to set.- Returns:
- This builder for chaining.
-
clearPartyId
* The party id.
uint32 party_id = 2;- Returns:
- This builder for chaining.
-
getPartyWeight
public long getPartyWeight()* The party's weight in the construction.
uint64 party_weight = 3;- Specified by:
getPartyWeightin interfaceNodePartyIdOrBuilder- Returns:
- The partyWeight.
-
setPartyWeight
* The party's weight in the construction.
uint64 party_weight = 3;- Parameters:
value- The partyWeight to set.- Returns:
- This builder for chaining.
-
clearPartyWeight
* The party's weight in the construction.
uint64 party_weight = 3;- Returns:
- This builder for chaining.
-