Class NodeAddress

java.lang.Object
com.google.protobuf.AbstractMessageLite<NodeAddress,NodeAddress.Builder>
com.google.protobuf.GeneratedMessageLite<NodeAddress,NodeAddress.Builder>
com.hedera.hashgraph.sdk.proto.NodeAddress
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, NodeAddressOrBuilder

@Generated public final class NodeAddress extends com.google.protobuf.GeneratedMessageLite<NodeAddress,NodeAddress.Builder> implements NodeAddressOrBuilder
 *
 The data about a node, including its service endpoints and the Hedera account
 to be paid for services provided by the node (that is, queries answered and
 transactions submitted).

 All active fields are populated in the `0.0.102` address book file.<br/>
 Only fields documented with "`0.0.101` field" are populated in the 0.0.101
 address book file.

 This message MAY be superseded by messages in state/addressbook/node.proto
 and node_get_info.proto.
 
Protobuf type proto.NodeAddress
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    * The data about a node, including its service endpoints and the Hedera account to be paid for services provided by the node (that is, queries answered and transactions submitted).

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
     
    * A short description of the node.
    com.google.protobuf.ByteString
    * A short description of the node.
    com.google.protobuf.ByteString
    Deprecated.
    proto.NodeAddress.ipAddress is deprecated.
    com.google.protobuf.ByteString
    Deprecated.
    proto.NodeAddress.memo is deprecated.
    * An account to be paid the "node" portion of transaction fees.<br/> The "node" fees are paid to the node that submitted the transaction.
    com.google.protobuf.ByteString
    * A hash of the node's TLS certificate.
    long
    * A numeric identifier for the node.
    int
    Deprecated.
    proto.NodeAddress.portno is deprecated.
    * A hexadecimal String encoding of an X509 public key.
    com.google.protobuf.ByteString
    * A hexadecimal String encoding of an X509 public key.
    getServiceEndpoint(int index)
    * A node's service IP addresses and TCP ports.<br/> Nodes require multiple endpoints to ensure that inter-node communication (e.g.
    int
    * A node's service IP addresses and TCP ports.<br/> Nodes require multiple endpoints to ensure that inter-node communication (e.g.
    * A node's service IP addresses and TCP ports.<br/> Nodes require multiple endpoints to ensure that inter-node communication (e.g.
    * A node's service IP addresses and TCP ports.<br/> Nodes require multiple endpoints to ensure that inter-node communication (e.g.
    * A node's service IP addresses and TCP ports.<br/> Nodes require multiple endpoints to ensure that inter-node communication (e.g.
    long
    Deprecated.
    proto.NodeAddress.stake is deprecated.
    boolean
    * An account to be paid the "node" portion of transaction fees.<br/> The "node" fees are paid to the node that submitted the transaction.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<NodeAddress>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

  • Method Details

    • getIpAddress

      @Deprecated public com.google.protobuf.ByteString getIpAddress()
      Deprecated.
      proto.NodeAddress.ipAddress is deprecated. See basic_types.proto;l=2152
       *
       ServiceEndpoint is now used to retrieve a node's list of IP
       addresses and ports.<br/>
       The IP address of the Node, as a string, encoded in UTF-8.<br/>
       This value SHALL NOT be populated.
       
      bytes ipAddress = 1 [deprecated = true];
      Specified by:
      getIpAddress in interface NodeAddressOrBuilder
      Returns:
      The ipAddress.
    • getPortno

      @Deprecated public int getPortno()
      Deprecated.
      proto.NodeAddress.portno is deprecated. See basic_types.proto;l=2160
       *
       ServiceEndpoint is now used to retrieve a node's list of IP
       addresses and ports.<br/>
       The port number of the grpc server for the node.<br/>
       This value SHALL NOT be populated.
       
      int32 portno = 2 [deprecated = true];
      Specified by:
      getPortno in interface NodeAddressOrBuilder
      Returns:
      The portno.
    • getMemo

      @Deprecated public com.google.protobuf.ByteString getMemo()
      Deprecated.
      proto.NodeAddress.memo is deprecated. See basic_types.proto;l=2168
       *
       Description provides short text functionality.<br/>
       A short description of the node.
       <p>
       This field SHALL NOT be populated.
       
      bytes memo = 3 [deprecated = true];
      Specified by:
      getMemo in interface NodeAddressOrBuilder
      Returns:
      The memo.
    • getRSAPubKey

      public String getRSAPubKey()
       *
       A hexadecimal String encoding of an X509 public key.
       <p>
       This X509 RSA _public_ key SHALL be used to verify record stream files
       (e.g., record stream files).<br/>
       This field SHALL be a string of hexadecimal characters, encoded UTF-8,
       which, translated to binary, form the public key DER encoding.
       
      string RSA_PubKey = 4;
      Specified by:
      getRSAPubKey in interface NodeAddressOrBuilder
      Returns:
      The rSAPubKey.
    • getRSAPubKeyBytes

      public com.google.protobuf.ByteString getRSAPubKeyBytes()
       *
       A hexadecimal String encoding of an X509 public key.
       <p>
       This X509 RSA _public_ key SHALL be used to verify record stream files
       (e.g., record stream files).<br/>
       This field SHALL be a string of hexadecimal characters, encoded UTF-8,
       which, translated to binary, form the public key DER encoding.
       
      string RSA_PubKey = 4;
      Specified by:
      getRSAPubKeyBytes in interface NodeAddressOrBuilder
      Returns:
      The bytes for rSAPubKey.
    • getNodeId

      public long getNodeId()
       *
       A numeric identifier for the node.
       <p>
       This value SHALL NOT be sequential.
       <p>
       A `0.0.101` field
       
      int64 nodeId = 5;
      Specified by:
      getNodeId in interface NodeAddressOrBuilder
      Returns:
      The nodeId.
    • hasNodeAccountId

      public boolean hasNodeAccountId()
       *
       An account to be paid the "node" portion of transaction fees.<br/>
       The "node" fees are paid to the node that submitted the transaction.
       <p>
       A `0.0.101` field
       
      .proto.AccountID nodeAccountId = 6;
      Specified by:
      hasNodeAccountId in interface NodeAddressOrBuilder
      Returns:
      Whether the nodeAccountId field is set.
    • getNodeAccountId

      public AccountID getNodeAccountId()
       *
       An account to be paid the "node" portion of transaction fees.<br/>
       The "node" fees are paid to the node that submitted the transaction.
       <p>
       A `0.0.101` field
       
      .proto.AccountID nodeAccountId = 6;
      Specified by:
      getNodeAccountId in interface NodeAddressOrBuilder
      Returns:
      The nodeAccountId.
    • getNodeCertHash

      public com.google.protobuf.ByteString getNodeCertHash()
       *
       A hash of the node's TLS certificate.
       <p>
       This field SHALL be a string of hexadecimal characters, encoded UTF-8,
       which, translated to binary, form a SHA-384 hash of the node's TLS
       certificate in PEM format.
       This TLS certificate MUST be encoded UTF-8 and normalized according to
       the NFKD form prior to computing the hash value.<br/>
       The value of this field SHALL be used to verify the node TLS
       certificate when presented during protocol negotiation.
       <p>
       A `0.0.101` field
       
      bytes nodeCertHash = 7;
      Specified by:
      getNodeCertHash in interface NodeAddressOrBuilder
      Returns:
      The nodeCertHash.
    • getServiceEndpointList

      public List<ServiceEndpoint> getServiceEndpointList()
       *
       A node's service IP addresses and TCP ports.<br/>
       Nodes require multiple endpoints to ensure that inter-node communication
       (e.g. gossip) is properly separated from client communication to
       API endpoints.
       <p>
       A `0.0.101` field
       
      repeated .proto.ServiceEndpoint serviceEndpoint = 8;
      Specified by:
      getServiceEndpointList in interface NodeAddressOrBuilder
    • getServiceEndpointOrBuilderList

      public List<? extends ServiceEndpointOrBuilder> getServiceEndpointOrBuilderList()
       *
       A node's service IP addresses and TCP ports.<br/>
       Nodes require multiple endpoints to ensure that inter-node communication
       (e.g. gossip) is properly separated from client communication to
       API endpoints.
       <p>
       A `0.0.101` field
       
      repeated .proto.ServiceEndpoint serviceEndpoint = 8;
    • getServiceEndpointCount

      public int getServiceEndpointCount()
       *
       A node's service IP addresses and TCP ports.<br/>
       Nodes require multiple endpoints to ensure that inter-node communication
       (e.g. gossip) is properly separated from client communication to
       API endpoints.
       <p>
       A `0.0.101` field
       
      repeated .proto.ServiceEndpoint serviceEndpoint = 8;
      Specified by:
      getServiceEndpointCount in interface NodeAddressOrBuilder
    • getServiceEndpoint

      public ServiceEndpoint getServiceEndpoint(int index)
       *
       A node's service IP addresses and TCP ports.<br/>
       Nodes require multiple endpoints to ensure that inter-node communication
       (e.g. gossip) is properly separated from client communication to
       API endpoints.
       <p>
       A `0.0.101` field
       
      repeated .proto.ServiceEndpoint serviceEndpoint = 8;
      Specified by:
      getServiceEndpoint in interface NodeAddressOrBuilder
    • getServiceEndpointOrBuilder

      public ServiceEndpointOrBuilder getServiceEndpointOrBuilder(int index)
       *
       A node's service IP addresses and TCP ports.<br/>
       Nodes require multiple endpoints to ensure that inter-node communication
       (e.g. gossip) is properly separated from client communication to
       API endpoints.
       <p>
       A `0.0.101` field
       
      repeated .proto.ServiceEndpoint serviceEndpoint = 8;
    • getDescription

      public String getDescription()
       *
       A short description of the node.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string description = 9;
      Specified by:
      getDescription in interface NodeAddressOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       *
       A short description of the node.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string description = 9;
      Specified by:
      getDescriptionBytes in interface NodeAddressOrBuilder
      Returns:
      The bytes for description.
    • getStake

      @Deprecated public long getStake()
      Deprecated.
      proto.NodeAddress.stake is deprecated. See basic_types.proto;l=2236
       *
       This is replaced by per-account stake tracking and dynamic
       calculation.<br/>
       The amount of tinybar staked to the node.<br/>
       This value SHOULD NOT be populated, and SHALL be ignored.
       
      int64 stake = 10 [deprecated = true];
      Specified by:
      getStake in interface NodeAddressOrBuilder
      Returns:
      The stake.
    • parseFrom

      public static NodeAddress parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NodeAddress parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NodeAddress parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NodeAddress parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NodeAddress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NodeAddress parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NodeAddress parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NodeAddress parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NodeAddress parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NodeAddress parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NodeAddress parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NodeAddress parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static NodeAddress.Builder newBuilder()
    • newBuilder

      public static NodeAddress.Builder newBuilder(NodeAddress prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<NodeAddress,NodeAddress.Builder>
    • getDefaultInstance

      public static NodeAddress getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<NodeAddress> parser()