Class NodePartyId.Builder

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 Type
    Method
    Description
    * 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, 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()
       *
       The node id.
       
      uint64 node_id = 1;
      Specified by:
      getNodeId in interface NodePartyIdOrBuilder
      Returns:
      The nodeId.
    • setNodeId

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

      public NodePartyId.Builder 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:
      getPartyId in interface NodePartyIdOrBuilder
      Returns:
      The partyId.
    • setPartyId

      public NodePartyId.Builder setPartyId(int value)
       *
       The party id.
       
      uint32 party_id = 2;
      Parameters:
      value - The partyId to set.
      Returns:
      This builder for chaining.
    • clearPartyId

      public NodePartyId.Builder 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:
      getPartyWeight in interface NodePartyIdOrBuilder
      Returns:
      The partyWeight.
    • setPartyWeight

      public NodePartyId.Builder setPartyWeight(long value)
       *
       The party's weight in the construction.
       
      uint64 party_weight = 3;
      Parameters:
      value - The partyWeight to set.
      Returns:
      This builder for chaining.
    • clearPartyWeight

      public NodePartyId.Builder clearPartyWeight()
       *
       The party's weight in the construction.
       
      uint64 party_weight = 3;
      Returns:
      This builder for chaining.