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 ClassesModifier and TypeClassDescriptionstatic 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static NodeAddress* 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.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.List<? extends ServiceEndpointOrBuilder> * 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.static NodeAddress.Builderstatic NodeAddress.BuildernewBuilder(NodeAddress prototype) static NodeAddressparseDelimitedFrom(InputStream input) static NodeAddressparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NodeAddressparseFrom(byte[] data) static NodeAddressparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NodeAddressparseFrom(com.google.protobuf.ByteString data) static NodeAddressparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NodeAddressparseFrom(com.google.protobuf.CodedInputStream input) static NodeAddressparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NodeAddressparseFrom(InputStream input) static NodeAddressparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NodeAddressparseFrom(ByteBuffer data) static NodeAddressparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<NodeAddress> parser()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, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
IPADDRESS_FIELD_NUMBER
public static final int IPADDRESS_FIELD_NUMBER- See Also:
-
PORTNO_FIELD_NUMBER
public static final int PORTNO_FIELD_NUMBER- See Also:
-
MEMO_FIELD_NUMBER
public static final int MEMO_FIELD_NUMBER- See Also:
-
RSA_PUBKEY_FIELD_NUMBER
public static final int RSA_PUBKEY_FIELD_NUMBER- See Also:
-
NODEID_FIELD_NUMBER
public static final int NODEID_FIELD_NUMBER- See Also:
-
NODEACCOUNTID_FIELD_NUMBER
public static final int NODEACCOUNTID_FIELD_NUMBER- See Also:
-
NODECERTHASH_FIELD_NUMBER
public static final int NODECERTHASH_FIELD_NUMBER- See Also:
-
SERVICEENDPOINT_FIELD_NUMBER
public static final int SERVICEENDPOINT_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
STAKE_FIELD_NUMBER
public static final int STAKE_FIELD_NUMBER- See Also:
-
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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:
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
-
getServiceEndpointOrBuilder
* 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.
-
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.
-
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
- Throws:
IOException
-
parseFrom
public static NodeAddress parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static NodeAddress parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static NodeAddress parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<NodeAddress,NodeAddress.Builder>
-
getDefaultInstance
-
parser
-