Class NodeAddress.Builder

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

public static final class NodeAddress.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<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
  • 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.
    • setIpAddress

      @Deprecated public NodeAddress.Builder setIpAddress(com.google.protobuf.ByteString value)
      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];
      Parameters:
      value - The ipAddress to set.
      Returns:
      This builder for chaining.
    • clearIpAddress

      @Deprecated public NodeAddress.Builder clearIpAddress()
      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];
      Returns:
      This builder for chaining.
    • 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.
    • setPortno

      @Deprecated public NodeAddress.Builder setPortno(int value)
      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];
      Parameters:
      value - The portno to set.
      Returns:
      This builder for chaining.
    • clearPortno

      @Deprecated public NodeAddress.Builder clearPortno()
      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];
      Returns:
      This builder for chaining.
    • 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.
    • setMemo

      @Deprecated public NodeAddress.Builder setMemo(com.google.protobuf.ByteString value)
      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];
      Parameters:
      value - The memo to set.
      Returns:
      This builder for chaining.
    • clearMemo

      @Deprecated public NodeAddress.Builder clearMemo()
      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];
      Returns:
      This builder for chaining.
    • 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.
    • setRSAPubKey

      public NodeAddress.Builder setRSAPubKey(String value)
       *
       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;
      Parameters:
      value - The rSAPubKey to set.
      Returns:
      This builder for chaining.
    • clearRSAPubKey

      public NodeAddress.Builder clearRSAPubKey()
       *
       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;
      Returns:
      This builder for chaining.
    • setRSAPubKeyBytes

      public NodeAddress.Builder setRSAPubKeyBytes(com.google.protobuf.ByteString value)
       *
       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;
      Parameters:
      value - The bytes for rSAPubKey to set.
      Returns:
      This builder for chaining.
    • 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.
    • setNodeId

      public NodeAddress.Builder setNodeId(long value)
       *
       A numeric identifier for the node.
       <p>
       This value SHALL NOT be sequential.
       <p>
       A `0.0.101` field
       
      int64 nodeId = 5;
      Parameters:
      value - The nodeId to set.
      Returns:
      This builder for chaining.
    • clearNodeId

      public NodeAddress.Builder clearNodeId()
       *
       A numeric identifier for the node.
       <p>
       This value SHALL NOT be sequential.
       <p>
       A `0.0.101` field
       
      int64 nodeId = 5;
      Returns:
      This builder for chaining.
    • 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.
    • setNodeAccountId

      public NodeAddress.Builder setNodeAccountId(AccountID value)
       *
       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;
    • setNodeAccountId

      public NodeAddress.Builder setNodeAccountId(AccountID.Builder builderForValue)
       *
       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;
    • mergeNodeAccountId

      public NodeAddress.Builder mergeNodeAccountId(AccountID value)
       *
       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;
    • clearNodeAccountId

      public NodeAddress.Builder clearNodeAccountId()
       *
       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;
    • 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.
    • setNodeCertHash

      public NodeAddress.Builder setNodeCertHash(com.google.protobuf.ByteString value)
       *
       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;
      Parameters:
      value - The nodeCertHash to set.
      Returns:
      This builder for chaining.
    • clearNodeCertHash

      public NodeAddress.Builder clearNodeCertHash()
       *
       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;
      Returns:
      This builder for chaining.
    • 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
    • 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
    • setServiceEndpoint

      public NodeAddress.Builder setServiceEndpoint(int index, ServiceEndpoint value)
       *
       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;
    • setServiceEndpoint

      public NodeAddress.Builder setServiceEndpoint(int index, ServiceEndpoint.Builder builderForValue)
       *
       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;
    • addServiceEndpoint

      public NodeAddress.Builder addServiceEndpoint(ServiceEndpoint value)
       *
       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;
    • addServiceEndpoint

      public NodeAddress.Builder addServiceEndpoint(int index, ServiceEndpoint value)
       *
       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;
    • addServiceEndpoint

      public NodeAddress.Builder addServiceEndpoint(ServiceEndpoint.Builder builderForValue)
       *
       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;
    • addServiceEndpoint

      public NodeAddress.Builder addServiceEndpoint(int index, ServiceEndpoint.Builder builderForValue)
       *
       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;
    • addAllServiceEndpoint

      public NodeAddress.Builder addAllServiceEndpoint(Iterable<? extends ServiceEndpoint> values)
       *
       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;
    • clearServiceEndpoint

      public NodeAddress.Builder clearServiceEndpoint()
       *
       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;
    • removeServiceEndpoint

      public NodeAddress.Builder removeServiceEndpoint(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.
    • setDescription

      public NodeAddress.Builder setDescription(String value)
       *
       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;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public NodeAddress.Builder clearDescription()
       *
       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;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public NodeAddress.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       *
       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;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • 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.
    • setStake

      @Deprecated public NodeAddress.Builder setStake(long value)
      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];
      Parameters:
      value - The stake to set.
      Returns:
      This builder for chaining.
    • clearStake

      @Deprecated public NodeAddress.Builder clearStake()
      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];
      Returns:
      This builder for chaining.