java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Node,Node.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<Node,Node.Builder>
com.hedera.hashgraph.sdk.proto.Node.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,NodeOrBuilder,Cloneable
- Enclosing class:
Node
public static final class Node.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Node,Node.Builder>
implements NodeOrBuilder
* A single address book node in the network state. Each node in the network address book SHALL represent a single actual consensus node that is eligible to participate in network consensus. Address book nodes SHALL NOT be _globally_ uniquely identified. A given node is only valid within a single realm and shard combination, so the identifier for a network node SHALL only be unique within a single realm and shard combination.Protobuf type
com.hedera.hapi.node.state.addressbook.Node-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllAssociatedRegisteredNode(Iterable<? extends Long> values) * A list of registered nodes operated by the same entity as this node.<br/> This value may contain a list of "registered nodes" (as described in HIP-1137) that are operated by the same entity that operates this consensus node.addAllGossipEndpoint(Iterable<? extends ServiceEndpoint> values) * A list of service endpoints for gossip.addAllServiceEndpoint(Iterable<? extends ServiceEndpoint> values) * A list of service endpoints for client calls.addAssociatedRegisteredNode(long value) * A list of registered nodes operated by the same entity as this node.<br/> This value may contain a list of "registered nodes" (as described in HIP-1137) that are operated by the same entity that operates this consensus node.addGossipEndpoint(int index, ServiceEndpoint value) * A list of service endpoints for gossip.addGossipEndpoint(int index, ServiceEndpoint.Builder builderForValue) * A list of service endpoints for gossip.addGossipEndpoint(ServiceEndpoint value) * A list of service endpoints for gossip.addGossipEndpoint(ServiceEndpoint.Builder builderForValue) * A list of service endpoints for gossip.addServiceEndpoint(int index, ServiceEndpoint value) * A list of service endpoints for client calls.addServiceEndpoint(int index, ServiceEndpoint.Builder builderForValue) * A list of service endpoints for client calls.* A list of service endpoints for client calls.addServiceEndpoint(ServiceEndpoint.Builder builderForValue) * A list of service endpoints for client calls.* An account identifier.* An administrative key controlled by the node operator.* A list of registered nodes operated by the same entity as this node.<br/> This value may contain a list of "registered nodes" (as described in HIP-1137) that are operated by the same entity that operates this consensus node.* A flag indicating this node declines node rewards distributed at the end of staking period.* A flag indicating this node is deleted.* A short description of the node.* A certificate used to sign gossip events.* A list of service endpoints for gossip.* A hash of the node gRPC certificate.* A web proxy for gRPC from non-gRPC clients.* A consensus node identifier.* A list of service endpoints for client calls.Deprecated.com.hedera.hapi.node.state.addressbook.Node.weight is deprecated.* An account identifier.* An administrative key controlled by the node operator.longgetAssociatedRegisteredNode(int index) * A list of registered nodes operated by the same entity as this node.<br/> This value may contain a list of "registered nodes" (as described in HIP-1137) that are operated by the same entity that operates this consensus node.int* A list of registered nodes operated by the same entity as this node.<br/> This value may contain a list of "registered nodes" (as described in HIP-1137) that are operated by the same entity that operates this consensus node.* A list of registered nodes operated by the same entity as this node.<br/> This value may contain a list of "registered nodes" (as described in HIP-1137) that are operated by the same entity that operates this consensus node.boolean* A flag indicating this node declines node rewards distributed at the end of staking period.boolean* A flag indicating this node is deleted.* A short description of the node.com.google.protobuf.ByteString* A short description of the node.com.google.protobuf.ByteString* A certificate used to sign gossip events.getGossipEndpoint(int index) * A list of service endpoints for gossip.int* A list of service endpoints for gossip.* A list of service endpoints for gossip.com.google.protobuf.ByteString* A hash of the node gRPC certificate.* A web proxy for gRPC from non-gRPC clients.long* A consensus node identifier.getServiceEndpoint(int index) * A list of service endpoints for client calls.int* A list of service endpoints for client calls.* A list of service endpoints for client calls.longDeprecated.com.hedera.hapi.node.state.addressbook.Node.weight is deprecated.boolean* An account identifier.boolean* An administrative key controlled by the node operator.boolean* A web proxy for gRPC from non-gRPC clients.mergeAccountId(AccountID value) * An account identifier.mergeAdminKey(Key value) * An administrative key controlled by the node operator.* A web proxy for gRPC from non-gRPC clients.removeGossipEndpoint(int index) * A list of service endpoints for gossip.removeServiceEndpoint(int index) * A list of service endpoints for client calls.setAccountId(AccountID value) * An account identifier.setAccountId(AccountID.Builder builderForValue) * An account identifier.setAdminKey(Key value) * An administrative key controlled by the node operator.setAdminKey(Key.Builder builderForValue) * An administrative key controlled by the node operator.setAssociatedRegisteredNode(int index, long value) * A list of registered nodes operated by the same entity as this node.<br/> This value may contain a list of "registered nodes" (as described in HIP-1137) that are operated by the same entity that operates this consensus node.setDeclineReward(boolean value) * A flag indicating this node declines node rewards distributed at the end of staking period.setDeleted(boolean value) * A flag indicating this node is deleted.setDescription(String value) * A short description of the node.setDescriptionBytes(com.google.protobuf.ByteString value) * A short description of the node.setGossipCaCertificate(com.google.protobuf.ByteString value) * A certificate used to sign gossip events.setGossipEndpoint(int index, ServiceEndpoint value) * A list of service endpoints for gossip.setGossipEndpoint(int index, ServiceEndpoint.Builder builderForValue) * A list of service endpoints for gossip.setGrpcCertificateHash(com.google.protobuf.ByteString value) * A hash of the node gRPC certificate.* A web proxy for gRPC from non-gRPC clients.setGrpcProxyEndpoint(ServiceEndpoint.Builder builderForValue) * A web proxy for gRPC from non-gRPC clients.setNodeId(long value) * A consensus node identifier.setServiceEndpoint(int index, ServiceEndpoint value) * A list of service endpoints for client calls.setServiceEndpoint(int index, ServiceEndpoint.Builder builderForValue) * A list of service endpoints for client calls.setWeight(long value) Deprecated.com.hedera.hapi.node.state.addressbook.Node.weight 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
-
getNodeId
public long getNodeId()* A consensus node identifier. <p> Node identifiers SHALL be globally unique for a given ledger.
uint64 node_id = 1;- Specified by:
getNodeIdin interfaceNodeOrBuilder- Returns:
- The nodeId.
-
setNodeId
* A consensus node identifier. <p> Node identifiers SHALL be globally unique for a given ledger.
uint64 node_id = 1;- Parameters:
value- The nodeId to set.- Returns:
- This builder for chaining.
-
clearNodeId
* A consensus node identifier. <p> Node identifiers SHALL be globally unique for a given ledger.
uint64 node_id = 1;- Returns:
- This builder for chaining.
-
hasAccountId
public boolean hasAccountId()* An account identifier. <p> This account SHALL be owned by the entity responsible for the node.<br/> This account SHALL be charged transaction fees for any transactions that are submitted to the network by this node and fail due diligence checks.<br/> This account SHALL be paid the node portion of transaction fees for transactions submitted by this node.
.proto.AccountID account_id = 2;- Specified by:
hasAccountIdin interfaceNodeOrBuilder- Returns:
- Whether the accountId field is set.
-
getAccountId
* An account identifier. <p> This account SHALL be owned by the entity responsible for the node.<br/> This account SHALL be charged transaction fees for any transactions that are submitted to the network by this node and fail due diligence checks.<br/> This account SHALL be paid the node portion of transaction fees for transactions submitted by this node.
.proto.AccountID account_id = 2;- Specified by:
getAccountIdin interfaceNodeOrBuilder- Returns:
- The accountId.
-
setAccountId
* An account identifier. <p> This account SHALL be owned by the entity responsible for the node.<br/> This account SHALL be charged transaction fees for any transactions that are submitted to the network by this node and fail due diligence checks.<br/> This account SHALL be paid the node portion of transaction fees for transactions submitted by this node.
.proto.AccountID account_id = 2; -
setAccountId
* An account identifier. <p> This account SHALL be owned by the entity responsible for the node.<br/> This account SHALL be charged transaction fees for any transactions that are submitted to the network by this node and fail due diligence checks.<br/> This account SHALL be paid the node portion of transaction fees for transactions submitted by this node.
.proto.AccountID account_id = 2; -
mergeAccountId
* An account identifier. <p> This account SHALL be owned by the entity responsible for the node.<br/> This account SHALL be charged transaction fees for any transactions that are submitted to the network by this node and fail due diligence checks.<br/> This account SHALL be paid the node portion of transaction fees for transactions submitted by this node.
.proto.AccountID account_id = 2; -
clearAccountId
* An account identifier. <p> This account SHALL be owned by the entity responsible for the node.<br/> This account SHALL be charged transaction fees for any transactions that are submitted to the network by this node and fail due diligence checks.<br/> This account SHALL be paid the node portion of transaction fees for transactions submitted by this node.
.proto.AccountID account_id = 2; -
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 = 3;- Specified by:
getDescriptionin interfaceNodeOrBuilder- 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 = 3;- Specified by:
getDescriptionBytesin interfaceNodeOrBuilder- 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 = 3;- 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 = 3;- 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 = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getGossipEndpointList
* A list of service endpoints for gossip. <p> These endpoints SHALL represent the published endpoints to which other consensus nodes may _gossip_ transactions.<br/> If the network configuration value `gossipFqdnRestricted` is set, then all endpoints in this list SHALL supply only IP address.<br/> If the network configuration value `gossipFqdnRestricted` is _not_ set, then endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `10` entries.<br/> The first two entries in this list SHALL be the endpoints published to all consensus nodes.<br/> All other entries SHALL be reserved for future use.
repeated .proto.ServiceEndpoint gossip_endpoint = 4;- Specified by:
getGossipEndpointListin interfaceNodeOrBuilder
-
getGossipEndpointCount
public int getGossipEndpointCount()* A list of service endpoints for gossip. <p> These endpoints SHALL represent the published endpoints to which other consensus nodes may _gossip_ transactions.<br/> If the network configuration value `gossipFqdnRestricted` is set, then all endpoints in this list SHALL supply only IP address.<br/> If the network configuration value `gossipFqdnRestricted` is _not_ set, then endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `10` entries.<br/> The first two entries in this list SHALL be the endpoints published to all consensus nodes.<br/> All other entries SHALL be reserved for future use.
repeated .proto.ServiceEndpoint gossip_endpoint = 4;- Specified by:
getGossipEndpointCountin interfaceNodeOrBuilder
-
getGossipEndpoint
* A list of service endpoints for gossip. <p> These endpoints SHALL represent the published endpoints to which other consensus nodes may _gossip_ transactions.<br/> If the network configuration value `gossipFqdnRestricted` is set, then all endpoints in this list SHALL supply only IP address.<br/> If the network configuration value `gossipFqdnRestricted` is _not_ set, then endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `10` entries.<br/> The first two entries in this list SHALL be the endpoints published to all consensus nodes.<br/> All other entries SHALL be reserved for future use.
repeated .proto.ServiceEndpoint gossip_endpoint = 4;- Specified by:
getGossipEndpointin interfaceNodeOrBuilder
-
setGossipEndpoint
* A list of service endpoints for gossip. <p> These endpoints SHALL represent the published endpoints to which other consensus nodes may _gossip_ transactions.<br/> If the network configuration value `gossipFqdnRestricted` is set, then all endpoints in this list SHALL supply only IP address.<br/> If the network configuration value `gossipFqdnRestricted` is _not_ set, then endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `10` entries.<br/> The first two entries in this list SHALL be the endpoints published to all consensus nodes.<br/> All other entries SHALL be reserved for future use.
repeated .proto.ServiceEndpoint gossip_endpoint = 4; -
setGossipEndpoint
* A list of service endpoints for gossip. <p> These endpoints SHALL represent the published endpoints to which other consensus nodes may _gossip_ transactions.<br/> If the network configuration value `gossipFqdnRestricted` is set, then all endpoints in this list SHALL supply only IP address.<br/> If the network configuration value `gossipFqdnRestricted` is _not_ set, then endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `10` entries.<br/> The first two entries in this list SHALL be the endpoints published to all consensus nodes.<br/> All other entries SHALL be reserved for future use.
repeated .proto.ServiceEndpoint gossip_endpoint = 4; -
addGossipEndpoint
* A list of service endpoints for gossip. <p> These endpoints SHALL represent the published endpoints to which other consensus nodes may _gossip_ transactions.<br/> If the network configuration value `gossipFqdnRestricted` is set, then all endpoints in this list SHALL supply only IP address.<br/> If the network configuration value `gossipFqdnRestricted` is _not_ set, then endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `10` entries.<br/> The first two entries in this list SHALL be the endpoints published to all consensus nodes.<br/> All other entries SHALL be reserved for future use.
repeated .proto.ServiceEndpoint gossip_endpoint = 4; -
addGossipEndpoint
* A list of service endpoints for gossip. <p> These endpoints SHALL represent the published endpoints to which other consensus nodes may _gossip_ transactions.<br/> If the network configuration value `gossipFqdnRestricted` is set, then all endpoints in this list SHALL supply only IP address.<br/> If the network configuration value `gossipFqdnRestricted` is _not_ set, then endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `10` entries.<br/> The first two entries in this list SHALL be the endpoints published to all consensus nodes.<br/> All other entries SHALL be reserved for future use.
repeated .proto.ServiceEndpoint gossip_endpoint = 4; -
addGossipEndpoint
* A list of service endpoints for gossip. <p> These endpoints SHALL represent the published endpoints to which other consensus nodes may _gossip_ transactions.<br/> If the network configuration value `gossipFqdnRestricted` is set, then all endpoints in this list SHALL supply only IP address.<br/> If the network configuration value `gossipFqdnRestricted` is _not_ set, then endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `10` entries.<br/> The first two entries in this list SHALL be the endpoints published to all consensus nodes.<br/> All other entries SHALL be reserved for future use.
repeated .proto.ServiceEndpoint gossip_endpoint = 4; -
addGossipEndpoint
* A list of service endpoints for gossip. <p> These endpoints SHALL represent the published endpoints to which other consensus nodes may _gossip_ transactions.<br/> If the network configuration value `gossipFqdnRestricted` is set, then all endpoints in this list SHALL supply only IP address.<br/> If the network configuration value `gossipFqdnRestricted` is _not_ set, then endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `10` entries.<br/> The first two entries in this list SHALL be the endpoints published to all consensus nodes.<br/> All other entries SHALL be reserved for future use.
repeated .proto.ServiceEndpoint gossip_endpoint = 4; -
addAllGossipEndpoint
* A list of service endpoints for gossip. <p> These endpoints SHALL represent the published endpoints to which other consensus nodes may _gossip_ transactions.<br/> If the network configuration value `gossipFqdnRestricted` is set, then all endpoints in this list SHALL supply only IP address.<br/> If the network configuration value `gossipFqdnRestricted` is _not_ set, then endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `10` entries.<br/> The first two entries in this list SHALL be the endpoints published to all consensus nodes.<br/> All other entries SHALL be reserved for future use.
repeated .proto.ServiceEndpoint gossip_endpoint = 4; -
clearGossipEndpoint
* A list of service endpoints for gossip. <p> These endpoints SHALL represent the published endpoints to which other consensus nodes may _gossip_ transactions.<br/> If the network configuration value `gossipFqdnRestricted` is set, then all endpoints in this list SHALL supply only IP address.<br/> If the network configuration value `gossipFqdnRestricted` is _not_ set, then endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `10` entries.<br/> The first two entries in this list SHALL be the endpoints published to all consensus nodes.<br/> All other entries SHALL be reserved for future use.
repeated .proto.ServiceEndpoint gossip_endpoint = 4; -
removeGossipEndpoint
* A list of service endpoints for gossip. <p> These endpoints SHALL represent the published endpoints to which other consensus nodes may _gossip_ transactions.<br/> If the network configuration value `gossipFqdnRestricted` is set, then all endpoints in this list SHALL supply only IP address.<br/> If the network configuration value `gossipFqdnRestricted` is _not_ set, then endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `10` entries.<br/> The first two entries in this list SHALL be the endpoints published to all consensus nodes.<br/> All other entries SHALL be reserved for future use.
repeated .proto.ServiceEndpoint gossip_endpoint = 4; -
getServiceEndpointList
* A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit transactions.<br/> These endpoints SHALL specify a port.<br/> Endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `8` entries.
repeated .proto.ServiceEndpoint service_endpoint = 5;- Specified by:
getServiceEndpointListin interfaceNodeOrBuilder
-
getServiceEndpointCount
public int getServiceEndpointCount()* A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit transactions.<br/> These endpoints SHALL specify a port.<br/> Endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `8` entries.
repeated .proto.ServiceEndpoint service_endpoint = 5;- Specified by:
getServiceEndpointCountin interfaceNodeOrBuilder
-
getServiceEndpoint
* A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit transactions.<br/> These endpoints SHALL specify a port.<br/> Endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `8` entries.
repeated .proto.ServiceEndpoint service_endpoint = 5;- Specified by:
getServiceEndpointin interfaceNodeOrBuilder
-
setServiceEndpoint
* A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit transactions.<br/> These endpoints SHALL specify a port.<br/> Endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `8` entries.
repeated .proto.ServiceEndpoint service_endpoint = 5; -
setServiceEndpoint
* A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit transactions.<br/> These endpoints SHALL specify a port.<br/> Endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `8` entries.
repeated .proto.ServiceEndpoint service_endpoint = 5; -
addServiceEndpoint
* A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit transactions.<br/> These endpoints SHALL specify a port.<br/> Endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `8` entries.
repeated .proto.ServiceEndpoint service_endpoint = 5; -
addServiceEndpoint
* A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit transactions.<br/> These endpoints SHALL specify a port.<br/> Endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `8` entries.
repeated .proto.ServiceEndpoint service_endpoint = 5; -
addServiceEndpoint
* A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit transactions.<br/> These endpoints SHALL specify a port.<br/> Endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `8` entries.
repeated .proto.ServiceEndpoint service_endpoint = 5; -
addServiceEndpoint
* A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit transactions.<br/> These endpoints SHALL specify a port.<br/> Endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `8` entries.
repeated .proto.ServiceEndpoint service_endpoint = 5; -
addAllServiceEndpoint
* A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit transactions.<br/> These endpoints SHALL specify a port.<br/> Endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `8` entries.
repeated .proto.ServiceEndpoint service_endpoint = 5; -
clearServiceEndpoint
* A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit transactions.<br/> These endpoints SHALL specify a port.<br/> Endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `8` entries.
repeated .proto.ServiceEndpoint service_endpoint = 5; -
removeServiceEndpoint
* A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit transactions.<br/> These endpoints SHALL specify a port.<br/> Endpoints in this list MAY supply either IP address or FQDN, but SHALL NOT supply both values for the same endpoint.<br/> This list SHALL NOT be empty.<br/> This list SHALL NOT contain more than `8` entries.
repeated .proto.ServiceEndpoint service_endpoint = 5; -
getGossipCaCertificate
public com.google.protobuf.ByteString getGossipCaCertificate()* A certificate used to sign gossip events. <p> This value SHALL be a certificate of a type permitted for gossip signatures.<br/> This value SHALL be the DER encoding of the certificate presented.<br/> This field is REQUIRED and MUST NOT be empty.
bytes gossip_ca_certificate = 6;- Specified by:
getGossipCaCertificatein interfaceNodeOrBuilder- Returns:
- The gossipCaCertificate.
-
setGossipCaCertificate
* A certificate used to sign gossip events. <p> This value SHALL be a certificate of a type permitted for gossip signatures.<br/> This value SHALL be the DER encoding of the certificate presented.<br/> This field is REQUIRED and MUST NOT be empty.
bytes gossip_ca_certificate = 6;- Parameters:
value- The gossipCaCertificate to set.- Returns:
- This builder for chaining.
-
clearGossipCaCertificate
* A certificate used to sign gossip events. <p> This value SHALL be a certificate of a type permitted for gossip signatures.<br/> This value SHALL be the DER encoding of the certificate presented.<br/> This field is REQUIRED and MUST NOT be empty.
bytes gossip_ca_certificate = 6;- Returns:
- This builder for chaining.
-
getGrpcCertificateHash
public com.google.protobuf.ByteString getGrpcCertificateHash()* A hash of the node gRPC certificate. <p> This value MAY be used to verify the certificate presented by the node during TLS negotiation for gRPC.<br/> This value SHALL be a SHA-384 hash.<br/> The TLS certificate to be hashed SHALL first be in PEM format and SHALL be encoded with UTF-8 NFKD encoding to a stream of bytes provided to the hash algorithm.<br/> This field is OPTIONAL.
bytes grpc_certificate_hash = 7;- Specified by:
getGrpcCertificateHashin interfaceNodeOrBuilder- Returns:
- The grpcCertificateHash.
-
setGrpcCertificateHash
* A hash of the node gRPC certificate. <p> This value MAY be used to verify the certificate presented by the node during TLS negotiation for gRPC.<br/> This value SHALL be a SHA-384 hash.<br/> The TLS certificate to be hashed SHALL first be in PEM format and SHALL be encoded with UTF-8 NFKD encoding to a stream of bytes provided to the hash algorithm.<br/> This field is OPTIONAL.
bytes grpc_certificate_hash = 7;- Parameters:
value- The grpcCertificateHash to set.- Returns:
- This builder for chaining.
-
clearGrpcCertificateHash
* A hash of the node gRPC certificate. <p> This value MAY be used to verify the certificate presented by the node during TLS negotiation for gRPC.<br/> This value SHALL be a SHA-384 hash.<br/> The TLS certificate to be hashed SHALL first be in PEM format and SHALL be encoded with UTF-8 NFKD encoding to a stream of bytes provided to the hash algorithm.<br/> This field is OPTIONAL.
bytes grpc_certificate_hash = 7;- Returns:
- This builder for chaining.
-
getWeight
Deprecated.com.hedera.hapi.node.state.addressbook.Node.weight is deprecated. See node.proto;l=116* A consensus weight. <p> Each node SHALL have a weight in consensus calculations.<br/> The consensus weight of a node SHALL be calculated based on the amount of HBAR staked to that node.<br/> Consensus SHALL be calculated based on agreement of greater than `2/3` of the total `weight` value of all nodes on the network. <p> This field is deprecated and SHALL NOT be used when RosterLifecycle is enabled.
uint64 weight = 8 [deprecated = true];- Specified by:
getWeightin interfaceNodeOrBuilder- Returns:
- The weight.
-
setWeight
Deprecated.com.hedera.hapi.node.state.addressbook.Node.weight is deprecated. See node.proto;l=116* A consensus weight. <p> Each node SHALL have a weight in consensus calculations.<br/> The consensus weight of a node SHALL be calculated based on the amount of HBAR staked to that node.<br/> Consensus SHALL be calculated based on agreement of greater than `2/3` of the total `weight` value of all nodes on the network. <p> This field is deprecated and SHALL NOT be used when RosterLifecycle is enabled.
uint64 weight = 8 [deprecated = true];- Parameters:
value- The weight to set.- Returns:
- This builder for chaining.
-
clearWeight
Deprecated.com.hedera.hapi.node.state.addressbook.Node.weight is deprecated. See node.proto;l=116* A consensus weight. <p> Each node SHALL have a weight in consensus calculations.<br/> The consensus weight of a node SHALL be calculated based on the amount of HBAR staked to that node.<br/> Consensus SHALL be calculated based on agreement of greater than `2/3` of the total `weight` value of all nodes on the network. <p> This field is deprecated and SHALL NOT be used when RosterLifecycle is enabled.
uint64 weight = 8 [deprecated = true];- Returns:
- This builder for chaining.
-
getDeleted
public boolean getDeleted()* A flag indicating this node is deleted. <p> If this field is set, then this node SHALL NOT be included in the next update of the network address book.<br/> If this field is set, then this node SHALL be immutable and SHALL NOT be modified.<br/> If this field is set, then any `nodeUpdate` transaction to modify this node SHALL fail.
bool deleted = 9;- Specified by:
getDeletedin interfaceNodeOrBuilder- Returns:
- The deleted.
-
setDeleted
* A flag indicating this node is deleted. <p> If this field is set, then this node SHALL NOT be included in the next update of the network address book.<br/> If this field is set, then this node SHALL be immutable and SHALL NOT be modified.<br/> If this field is set, then any `nodeUpdate` transaction to modify this node SHALL fail.
bool deleted = 9;- Parameters:
value- The deleted to set.- Returns:
- This builder for chaining.
-
clearDeleted
* A flag indicating this node is deleted. <p> If this field is set, then this node SHALL NOT be included in the next update of the network address book.<br/> If this field is set, then this node SHALL be immutable and SHALL NOT be modified.<br/> If this field is set, then any `nodeUpdate` transaction to modify this node SHALL fail.
bool deleted = 9;- Returns:
- This builder for chaining.
-
hasAdminKey
public boolean hasAdminKey()* An administrative key controlled by the node operator. <p> This key MUST sign each transaction to update this node.<br/> This field MUST contain a valid `Key` value.<br/> This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
.proto.Key admin_key = 10;- Specified by:
hasAdminKeyin interfaceNodeOrBuilder- Returns:
- Whether the adminKey field is set.
-
getAdminKey
* An administrative key controlled by the node operator. <p> This key MUST sign each transaction to update this node.<br/> This field MUST contain a valid `Key` value.<br/> This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
.proto.Key admin_key = 10;- Specified by:
getAdminKeyin interfaceNodeOrBuilder- Returns:
- The adminKey.
-
setAdminKey
* An administrative key controlled by the node operator. <p> This key MUST sign each transaction to update this node.<br/> This field MUST contain a valid `Key` value.<br/> This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
.proto.Key admin_key = 10; -
setAdminKey
* An administrative key controlled by the node operator. <p> This key MUST sign each transaction to update this node.<br/> This field MUST contain a valid `Key` value.<br/> This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
.proto.Key admin_key = 10; -
mergeAdminKey
* An administrative key controlled by the node operator. <p> This key MUST sign each transaction to update this node.<br/> This field MUST contain a valid `Key` value.<br/> This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
.proto.Key admin_key = 10; -
clearAdminKey
* An administrative key controlled by the node operator. <p> This key MUST sign each transaction to update this node.<br/> This field MUST contain a valid `Key` value.<br/> This field is REQUIRED and MUST NOT be set to an empty `KeyList`.
.proto.Key admin_key = 10; -
getDeclineReward
public boolean getDeclineReward()* A flag indicating this node declines node rewards distributed at the end of staking period. <p> If this field is set, then this node SHALL NOT receive any node rewards distributed at the end of the staking period.
bool decline_reward = 11;- Specified by:
getDeclineRewardin interfaceNodeOrBuilder- Returns:
- The declineReward.
-
setDeclineReward
* A flag indicating this node declines node rewards distributed at the end of staking period. <p> If this field is set, then this node SHALL NOT receive any node rewards distributed at the end of the staking period.
bool decline_reward = 11;- Parameters:
value- The declineReward to set.- Returns:
- This builder for chaining.
-
clearDeclineReward
* A flag indicating this node declines node rewards distributed at the end of staking period. <p> If this field is set, then this node SHALL NOT receive any node rewards distributed at the end of the staking period.
bool decline_reward = 11;- Returns:
- This builder for chaining.
-
hasGrpcProxyEndpoint
public boolean hasGrpcProxyEndpoint()* A web proxy for gRPC from non-gRPC clients. <p> This endpoint SHALL be a Fully Qualified Domain Name (FQDN) using the HTTPS protocol, and SHALL support gRPC-Web for use by browser-based clients.<br/> This endpoint MUST be signed by a trusted certificate authority.<br/> This endpoint MUST use a valid port and SHALL be reachable over TLS.<br/> This field MAY be omitted if the node does not support gRPC-Web access.<br/> This field MUST be updated if the gRPC-Web endpoint changes.<br/> This field SHALL enable frontend clients to avoid hard-coded proxy endpoints.
.proto.ServiceEndpoint grpc_proxy_endpoint = 12;- Specified by:
hasGrpcProxyEndpointin interfaceNodeOrBuilder- Returns:
- Whether the grpcProxyEndpoint field is set.
-
getGrpcProxyEndpoint
* A web proxy for gRPC from non-gRPC clients. <p> This endpoint SHALL be a Fully Qualified Domain Name (FQDN) using the HTTPS protocol, and SHALL support gRPC-Web for use by browser-based clients.<br/> This endpoint MUST be signed by a trusted certificate authority.<br/> This endpoint MUST use a valid port and SHALL be reachable over TLS.<br/> This field MAY be omitted if the node does not support gRPC-Web access.<br/> This field MUST be updated if the gRPC-Web endpoint changes.<br/> This field SHALL enable frontend clients to avoid hard-coded proxy endpoints.
.proto.ServiceEndpoint grpc_proxy_endpoint = 12;- Specified by:
getGrpcProxyEndpointin interfaceNodeOrBuilder- Returns:
- The grpcProxyEndpoint.
-
setGrpcProxyEndpoint
* A web proxy for gRPC from non-gRPC clients. <p> This endpoint SHALL be a Fully Qualified Domain Name (FQDN) using the HTTPS protocol, and SHALL support gRPC-Web for use by browser-based clients.<br/> This endpoint MUST be signed by a trusted certificate authority.<br/> This endpoint MUST use a valid port and SHALL be reachable over TLS.<br/> This field MAY be omitted if the node does not support gRPC-Web access.<br/> This field MUST be updated if the gRPC-Web endpoint changes.<br/> This field SHALL enable frontend clients to avoid hard-coded proxy endpoints.
.proto.ServiceEndpoint grpc_proxy_endpoint = 12; -
setGrpcProxyEndpoint
* A web proxy for gRPC from non-gRPC clients. <p> This endpoint SHALL be a Fully Qualified Domain Name (FQDN) using the HTTPS protocol, and SHALL support gRPC-Web for use by browser-based clients.<br/> This endpoint MUST be signed by a trusted certificate authority.<br/> This endpoint MUST use a valid port and SHALL be reachable over TLS.<br/> This field MAY be omitted if the node does not support gRPC-Web access.<br/> This field MUST be updated if the gRPC-Web endpoint changes.<br/> This field SHALL enable frontend clients to avoid hard-coded proxy endpoints.
.proto.ServiceEndpoint grpc_proxy_endpoint = 12; -
mergeGrpcProxyEndpoint
* A web proxy for gRPC from non-gRPC clients. <p> This endpoint SHALL be a Fully Qualified Domain Name (FQDN) using the HTTPS protocol, and SHALL support gRPC-Web for use by browser-based clients.<br/> This endpoint MUST be signed by a trusted certificate authority.<br/> This endpoint MUST use a valid port and SHALL be reachable over TLS.<br/> This field MAY be omitted if the node does not support gRPC-Web access.<br/> This field MUST be updated if the gRPC-Web endpoint changes.<br/> This field SHALL enable frontend clients to avoid hard-coded proxy endpoints.
.proto.ServiceEndpoint grpc_proxy_endpoint = 12; -
clearGrpcProxyEndpoint
* A web proxy for gRPC from non-gRPC clients. <p> This endpoint SHALL be a Fully Qualified Domain Name (FQDN) using the HTTPS protocol, and SHALL support gRPC-Web for use by browser-based clients.<br/> This endpoint MUST be signed by a trusted certificate authority.<br/> This endpoint MUST use a valid port and SHALL be reachable over TLS.<br/> This field MAY be omitted if the node does not support gRPC-Web access.<br/> This field MUST be updated if the gRPC-Web endpoint changes.<br/> This field SHALL enable frontend clients to avoid hard-coded proxy endpoints.
.proto.ServiceEndpoint grpc_proxy_endpoint = 12; -
getAssociatedRegisteredNodeList
* A list of registered nodes operated by the same entity as this node.<br/> This value may contain a list of "registered nodes" (as described in HIP-1137) that are operated by the same entity that operates this consensus node. <p> This field is OPTIONAL and MAY be empty.<br/> This field MUST NOT contain more than twenty(20) entries.<br/> Every entry in this list MUST be a valid `registered_node_id` for a current registered node.
repeated uint64 associated_registered_node = 13;- Specified by:
getAssociatedRegisteredNodeListin interfaceNodeOrBuilder- Returns:
- A list containing the associatedRegisteredNode.
-
getAssociatedRegisteredNodeCount
public int getAssociatedRegisteredNodeCount()* A list of registered nodes operated by the same entity as this node.<br/> This value may contain a list of "registered nodes" (as described in HIP-1137) that are operated by the same entity that operates this consensus node. <p> This field is OPTIONAL and MAY be empty.<br/> This field MUST NOT contain more than twenty(20) entries.<br/> Every entry in this list MUST be a valid `registered_node_id` for a current registered node.
repeated uint64 associated_registered_node = 13;- Specified by:
getAssociatedRegisteredNodeCountin interfaceNodeOrBuilder- Returns:
- The count of associatedRegisteredNode.
-
getAssociatedRegisteredNode
public long getAssociatedRegisteredNode(int index) * A list of registered nodes operated by the same entity as this node.<br/> This value may contain a list of "registered nodes" (as described in HIP-1137) that are operated by the same entity that operates this consensus node. <p> This field is OPTIONAL and MAY be empty.<br/> This field MUST NOT contain more than twenty(20) entries.<br/> Every entry in this list MUST be a valid `registered_node_id` for a current registered node.
repeated uint64 associated_registered_node = 13;- Specified by:
getAssociatedRegisteredNodein interfaceNodeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The associatedRegisteredNode at the given index.
-
setAssociatedRegisteredNode
* A list of registered nodes operated by the same entity as this node.<br/> This value may contain a list of "registered nodes" (as described in HIP-1137) that are operated by the same entity that operates this consensus node. <p> This field is OPTIONAL and MAY be empty.<br/> This field MUST NOT contain more than twenty(20) entries.<br/> Every entry in this list MUST be a valid `registered_node_id` for a current registered node.
repeated uint64 associated_registered_node = 13;- Parameters:
value- The associatedRegisteredNode to set.- Returns:
- This builder for chaining.
-
addAssociatedRegisteredNode
* A list of registered nodes operated by the same entity as this node.<br/> This value may contain a list of "registered nodes" (as described in HIP-1137) that are operated by the same entity that operates this consensus node. <p> This field is OPTIONAL and MAY be empty.<br/> This field MUST NOT contain more than twenty(20) entries.<br/> Every entry in this list MUST be a valid `registered_node_id` for a current registered node.
repeated uint64 associated_registered_node = 13;- Parameters:
value- The associatedRegisteredNode to add.- Returns:
- This builder for chaining.
-
addAllAssociatedRegisteredNode
* A list of registered nodes operated by the same entity as this node.<br/> This value may contain a list of "registered nodes" (as described in HIP-1137) that are operated by the same entity that operates this consensus node. <p> This field is OPTIONAL and MAY be empty.<br/> This field MUST NOT contain more than twenty(20) entries.<br/> Every entry in this list MUST be a valid `registered_node_id` for a current registered node.
repeated uint64 associated_registered_node = 13;- Parameters:
values- The associatedRegisteredNode to add.- Returns:
- This builder for chaining.
-
clearAssociatedRegisteredNode
* A list of registered nodes operated by the same entity as this node.<br/> This value may contain a list of "registered nodes" (as described in HIP-1137) that are operated by the same entity that operates this consensus node. <p> This field is OPTIONAL and MAY be empty.<br/> This field MUST NOT contain more than twenty(20) entries.<br/> Every entry in this list MUST be a valid `registered_node_id` for a current registered node.
repeated uint64 associated_registered_node = 13;- Returns:
- This builder for chaining.
-