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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllServiceEndpoint(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.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.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.* A node's service IP addresses and TCP ports.<br/> Nodes require multiple endpoints to ensure that inter-node communication (e.g.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.* A short description of the node.Deprecated.proto.NodeAddress.ipAddress is deprecated.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.* A hash of the node's TLS certificate.* A numeric identifier for the node.Deprecated.proto.NodeAddress.portno is deprecated.* A hexadecimal String encoding of an X509 public key.* A node's service IP addresses and TCP ports.<br/> Nodes require multiple endpoints to ensure that inter-node communication (e.g.Deprecated.proto.NodeAddress.stake is deprecated.* A short description of the node.com.google.protobuf.ByteString* A short description of the node.com.google.protobuf.ByteStringDeprecated.proto.NodeAddress.ipAddress is deprecated.com.google.protobuf.ByteStringgetMemo()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.intDeprecated.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.longgetStake()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.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.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.setDescription(String value) * A short description of the node.setDescriptionBytes(com.google.protobuf.ByteString value) * A short description of the node.setIpAddress(com.google.protobuf.ByteString value) Deprecated.proto.NodeAddress.ipAddress is deprecated.setMemo(com.google.protobuf.ByteString value) Deprecated.proto.NodeAddress.memo is deprecated.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.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.setNodeCertHash(com.google.protobuf.ByteString value) * A hash of the node's TLS certificate.setNodeId(long value) * A numeric identifier for the node.setPortno(int value) Deprecated.proto.NodeAddress.portno is deprecated.setRSAPubKey(String value) * A hexadecimal String encoding of an X509 public key.setRSAPubKeyBytes(com.google.protobuf.ByteString value) * A hexadecimal String encoding of an X509 public key.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.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.setStake(long value) Deprecated.proto.NodeAddress.stake is deprecated.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
-
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:
getIpAddressin interfaceNodeAddressOrBuilder- Returns:
- The ipAddress.
-
setIpAddress
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.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.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:
getPortnoin interfaceNodeAddressOrBuilder- Returns:
- The portno.
-
setPortno
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.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.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:
getMemoin interfaceNodeAddressOrBuilder- Returns:
- The memo.
-
setMemo
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.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
* 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:
getRSAPubKeyin interfaceNodeAddressOrBuilder- 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:
getRSAPubKeyBytesin interfaceNodeAddressOrBuilder- Returns:
- The bytes for rSAPubKey.
-
setRSAPubKey
* 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
* 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
* 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:
getNodeIdin interfaceNodeAddressOrBuilder- Returns:
- The nodeId.
-
setNodeId
* 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
* 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:
hasNodeAccountIdin interfaceNodeAddressOrBuilder- Returns:
- Whether the nodeAccountId field is set.
-
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:
getNodeAccountIdin interfaceNodeAddressOrBuilder- Returns:
- The nodeAccountId.
-
setNodeAccountId
* 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
* 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
* 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
* 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:
getNodeCertHashin interfaceNodeAddressOrBuilder- Returns:
- The nodeCertHash.
-
setNodeCertHash
* 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
* 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
* 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:
getServiceEndpointListin interfaceNodeAddressOrBuilder
-
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:
getServiceEndpointCountin interfaceNodeAddressOrBuilder
-
getServiceEndpoint
* 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:
getServiceEndpointin interfaceNodeAddressOrBuilder
-
setServiceEndpoint
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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:
getDescriptionin interfaceNodeAddressOrBuilder- 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:
getDescriptionBytesin interfaceNodeAddressOrBuilder- Returns:
- The bytes for description.
-
setDescription
* 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
* 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
* 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.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:
getStakein interfaceNodeAddressOrBuilder- Returns:
- The stake.
-
setStake
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.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.
-