Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class RegisteredServiceEndpoint.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<RegisteredServiceEndpoint,RegisteredServiceEndpoint.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<RegisteredServiceEndpoint,RegisteredServiceEndpoint.Builder>
com.hedera.hashgraph.sdk.proto.RegisteredServiceEndpoint.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,RegisteredServiceEndpointOrBuilder,Cloneable
- Enclosing class:
RegisteredServiceEndpoint
public static final class RegisteredServiceEndpoint.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<RegisteredServiceEndpoint,RegisteredServiceEndpoint.Builder>
implements RegisteredServiceEndpointOrBuilder
* A registered network node endpoint.<br/> Each registered network node in the global address book publishes one or more endpoints which enable the nodes to communicate both with other nodes and with clients to receive requests. This message supports a TCP/UDP port and IP address (V4 or V6), or MAY include a FQDN _instead of_ an IP address.<br/>Protobuf type
com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* A Block Node.<br/> A Block Node stores the block chain, provides content proof services, and delivers the block stream to other clients.* A node domain name.* A general service.<br/> A general service endpoint represents any network accessible service that is provided by a registered node but that is not a service currently defined as part of the Hiero Ledger system.* A 32-bit IPv4 address or 128-bit IPv6 address.<br/> This is the address of the endpoint, encoded in pure "big-endian" (i.e.* A Mirror Node.<br/> A Mirror Node is an advanced indexing and query service that provides fast and flexible access to query the block chain and transaction history.* A network port to use.* A flag indicating if this endpoint requires TLS.* A RPC Relay.<br/> A RPC Relay is a proxy and translator between EVM tooling and a Hiero consensus network.* A Block Node.<br/> A Block Node stores the block chain, provides content proof services, and delivers the block stream to other clients.* A node domain name.com.google.protobuf.ByteString* A node domain name.* A general service.<br/> A general service endpoint represents any network accessible service that is provided by a registered node but that is not a service currently defined as part of the Hiero Ledger system.com.google.protobuf.ByteString* A 32-bit IPv4 address or 128-bit IPv6 address.<br/> This is the address of the endpoint, encoded in pure "big-endian" (i.e.* A Mirror Node.<br/> A Mirror Node is an advanced indexing and query service that provides fast and flexible access to query the block chain and transaction history.intgetPort()* A network port to use.boolean* A flag indicating if this endpoint requires TLS.* A RPC Relay.<br/> A RPC Relay is a proxy and translator between EVM tooling and a Hiero consensus network.boolean* A Block Node.<br/> A Block Node stores the block chain, provides content proof services, and delivers the block stream to other clients.boolean* A node domain name.boolean* A general service.<br/> A general service endpoint represents any network accessible service that is provided by a registered node but that is not a service currently defined as part of the Hiero Ledger system.boolean* A 32-bit IPv4 address or 128-bit IPv6 address.<br/> This is the address of the endpoint, encoded in pure "big-endian" (i.e.boolean* A Mirror Node.<br/> A Mirror Node is an advanced indexing and query service that provides fast and flexible access to query the block chain and transaction history.boolean* A RPC Relay.<br/> A RPC Relay is a proxy and translator between EVM tooling and a Hiero consensus network.* A Block Node.<br/> A Block Node stores the block chain, provides content proof services, and delivers the block stream to other clients.* A general service.<br/> A general service endpoint represents any network accessible service that is provided by a registered node but that is not a service currently defined as part of the Hiero Ledger system.* A Mirror Node.<br/> A Mirror Node is an advanced indexing and query service that provides fast and flexible access to query the block chain and transaction history.* A RPC Relay.<br/> A RPC Relay is a proxy and translator between EVM tooling and a Hiero consensus network.* A Block Node.<br/> A Block Node stores the block chain, provides content proof services, and delivers the block stream to other clients.setBlockNode(RegisteredServiceEndpoint.BlockNodeEndpoint.Builder builderForValue) * A Block Node.<br/> A Block Node stores the block chain, provides content proof services, and delivers the block stream to other clients.setDomainName(String value) * A node domain name.setDomainNameBytes(com.google.protobuf.ByteString value) * A node domain name.* A general service.<br/> A general service endpoint represents any network accessible service that is provided by a registered node but that is not a service currently defined as part of the Hiero Ledger system.* A general service.<br/> A general service endpoint represents any network accessible service that is provided by a registered node but that is not a service currently defined as part of the Hiero Ledger system.setIpAddress(com.google.protobuf.ByteString value) * A 32-bit IPv4 address or 128-bit IPv6 address.<br/> This is the address of the endpoint, encoded in pure "big-endian" (i.e.* A Mirror Node.<br/> A Mirror Node is an advanced indexing and query service that provides fast and flexible access to query the block chain and transaction history.setMirrorNode(RegisteredServiceEndpoint.MirrorNodeEndpoint.Builder builderForValue) * A Mirror Node.<br/> A Mirror Node is an advanced indexing and query service that provides fast and flexible access to query the block chain and transaction history.setPort(int value) * A network port to use.setRequiresTls(boolean value) * A flag indicating if this endpoint requires TLS.* A RPC Relay.<br/> A RPC Relay is a proxy and translator between EVM tooling and a Hiero consensus network.setRpcRelay(RegisteredServiceEndpoint.RpcRelayEndpoint.Builder builderForValue) * A RPC Relay.<br/> A RPC Relay is a proxy and translator between EVM tooling and a Hiero consensus network.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
-
getAddressCase
- Specified by:
getAddressCasein interfaceRegisteredServiceEndpointOrBuilder
-
clearAddress
-
getEndpointTypeCase
- Specified by:
getEndpointTypeCasein interfaceRegisteredServiceEndpointOrBuilder
-
clearEndpointType
-
hasIpAddress
public boolean hasIpAddress()* A 32-bit IPv4 address or 128-bit IPv6 address.<br/> This is the address of the endpoint, encoded in pure "big-endian" (i.e. left to right) order (e.g. IPv4 address `127.0.0.1` has hex bytes in the order `7F`, `00`, `00`, `01`.<br/> IPv6 address `::1` has hex bytes `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `01`).
bytes ip_address = 1;- Specified by:
hasIpAddressin interfaceRegisteredServiceEndpointOrBuilder- Returns:
- Whether the ipAddress field is set.
-
getIpAddress
public com.google.protobuf.ByteString getIpAddress()* A 32-bit IPv4 address or 128-bit IPv6 address.<br/> This is the address of the endpoint, encoded in pure "big-endian" (i.e. left to right) order (e.g. IPv4 address `127.0.0.1` has hex bytes in the order `7F`, `00`, `00`, `01`.<br/> IPv6 address `::1` has hex bytes `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `01`).
bytes ip_address = 1;- Specified by:
getIpAddressin interfaceRegisteredServiceEndpointOrBuilder- Returns:
- The ipAddress.
-
setIpAddress
* A 32-bit IPv4 address or 128-bit IPv6 address.<br/> This is the address of the endpoint, encoded in pure "big-endian" (i.e. left to right) order (e.g. IPv4 address `127.0.0.1` has hex bytes in the order `7F`, `00`, `00`, `01`.<br/> IPv6 address `::1` has hex bytes `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `01`).
bytes ip_address = 1;- Parameters:
value- The ipAddress to set.- Returns:
- This builder for chaining.
-
clearIpAddress
* A 32-bit IPv4 address or 128-bit IPv6 address.<br/> This is the address of the endpoint, encoded in pure "big-endian" (i.e. left to right) order (e.g. IPv4 address `127.0.0.1` has hex bytes in the order `7F`, `00`, `00`, `01`.<br/> IPv6 address `::1` has hex bytes `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `00`, `01`).
bytes ip_address = 1;- Returns:
- This builder for chaining.
-
hasDomainName
public boolean hasDomainName()* A node domain name. <p> This MUST be the fully qualified domain name of the node.<br/> This value MUST NOT exceed 250 ASCII characters.<br/> This value MUST meet all other DNS name requirements.
string domain_name = 2;- Specified by:
hasDomainNamein interfaceRegisteredServiceEndpointOrBuilder- Returns:
- Whether the domainName field is set.
-
getDomainName
* A node domain name. <p> This MUST be the fully qualified domain name of the node.<br/> This value MUST NOT exceed 250 ASCII characters.<br/> This value MUST meet all other DNS name requirements.
string domain_name = 2;- Specified by:
getDomainNamein interfaceRegisteredServiceEndpointOrBuilder- Returns:
- The domainName.
-
getDomainNameBytes
public com.google.protobuf.ByteString getDomainNameBytes()* A node domain name. <p> This MUST be the fully qualified domain name of the node.<br/> This value MUST NOT exceed 250 ASCII characters.<br/> This value MUST meet all other DNS name requirements.
string domain_name = 2;- Specified by:
getDomainNameBytesin interfaceRegisteredServiceEndpointOrBuilder- Returns:
- The bytes for domainName.
-
setDomainName
* A node domain name. <p> This MUST be the fully qualified domain name of the node.<br/> This value MUST NOT exceed 250 ASCII characters.<br/> This value MUST meet all other DNS name requirements.
string domain_name = 2;- Parameters:
value- The domainName to set.- Returns:
- This builder for chaining.
-
clearDomainName
* A node domain name. <p> This MUST be the fully qualified domain name of the node.<br/> This value MUST NOT exceed 250 ASCII characters.<br/> This value MUST meet all other DNS name requirements.
string domain_name = 2;- Returns:
- This builder for chaining.
-
setDomainNameBytes
* A node domain name. <p> This MUST be the fully qualified domain name of the node.<br/> This value MUST NOT exceed 250 ASCII characters.<br/> This value MUST meet all other DNS name requirements.
string domain_name = 2;- Parameters:
value- The bytes for domainName to set.- Returns:
- This builder for chaining.
-
getPort
public int getPort()* A network port to use. <p> This value MUST be between 0 and 65535, inclusive.<br/> This value is REQUIRED.
uint32 port = 3;- Specified by:
getPortin interfaceRegisteredServiceEndpointOrBuilder- Returns:
- The port.
-
setPort
* A network port to use. <p> This value MUST be between 0 and 65535, inclusive.<br/> This value is REQUIRED.
uint32 port = 3;- Parameters:
value- The port to set.- Returns:
- This builder for chaining.
-
clearPort
* A network port to use. <p> This value MUST be between 0 and 65535, inclusive.<br/> This value is REQUIRED.
uint32 port = 3;- Returns:
- This builder for chaining.
-
getRequiresTls
public boolean getRequiresTls()* A flag indicating if this endpoint requires TLS. <p> If this value is set true, then connections to this endpoint MUST enable TLS. <p> TLS endpoints MAY use self-signed certificates for this purpose, but use of self-signed certificates SHOULD be limited to testing and development environments to ensure production environments meet all expected characteristics for transport layer security.
bool requires_tls = 4;- Specified by:
getRequiresTlsin interfaceRegisteredServiceEndpointOrBuilder- Returns:
- The requiresTls.
-
setRequiresTls
* A flag indicating if this endpoint requires TLS. <p> If this value is set true, then connections to this endpoint MUST enable TLS. <p> TLS endpoints MAY use self-signed certificates for this purpose, but use of self-signed certificates SHOULD be limited to testing and development environments to ensure production environments meet all expected characteristics for transport layer security.
bool requires_tls = 4;- Parameters:
value- The requiresTls to set.- Returns:
- This builder for chaining.
-
clearRequiresTls
* A flag indicating if this endpoint requires TLS. <p> If this value is set true, then connections to this endpoint MUST enable TLS. <p> TLS endpoints MAY use self-signed certificates for this purpose, but use of self-signed certificates SHOULD be limited to testing and development environments to ensure production environments meet all expected characteristics for transport layer security.
bool requires_tls = 4;- Returns:
- This builder for chaining.
-
hasBlockNode
public boolean hasBlockNode()* A Block Node.<br/> A Block Node stores the block chain, provides content proof services, and delivers the block stream to other clients.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint block_node = 5;- Specified by:
hasBlockNodein interfaceRegisteredServiceEndpointOrBuilder- Returns:
- Whether the blockNode field is set.
-
getBlockNode
* A Block Node.<br/> A Block Node stores the block chain, provides content proof services, and delivers the block stream to other clients.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint block_node = 5;- Specified by:
getBlockNodein interfaceRegisteredServiceEndpointOrBuilder- Returns:
- The blockNode.
-
setBlockNode
public RegisteredServiceEndpoint.Builder setBlockNode(RegisteredServiceEndpoint.BlockNodeEndpoint value) * A Block Node.<br/> A Block Node stores the block chain, provides content proof services, and delivers the block stream to other clients.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint block_node = 5; -
setBlockNode
public RegisteredServiceEndpoint.Builder setBlockNode(RegisteredServiceEndpoint.BlockNodeEndpoint.Builder builderForValue) * A Block Node.<br/> A Block Node stores the block chain, provides content proof services, and delivers the block stream to other clients.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint block_node = 5; -
mergeBlockNode
public RegisteredServiceEndpoint.Builder mergeBlockNode(RegisteredServiceEndpoint.BlockNodeEndpoint value) * A Block Node.<br/> A Block Node stores the block chain, provides content proof services, and delivers the block stream to other clients.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint block_node = 5; -
clearBlockNode
* A Block Node.<br/> A Block Node stores the block chain, provides content proof services, and delivers the block stream to other clients.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint block_node = 5; -
hasMirrorNode
public boolean hasMirrorNode()* A Mirror Node.<br/> A Mirror Node is an advanced indexing and query service that provides fast and flexible access to query the block chain and transaction history. A Mirror Node typically stores all recent blockchain data, and some store the entire history of the network.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.MirrorNodeEndpoint mirror_node = 6;- Specified by:
hasMirrorNodein interfaceRegisteredServiceEndpointOrBuilder- Returns:
- Whether the mirrorNode field is set.
-
getMirrorNode
* A Mirror Node.<br/> A Mirror Node is an advanced indexing and query service that provides fast and flexible access to query the block chain and transaction history. A Mirror Node typically stores all recent blockchain data, and some store the entire history of the network.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.MirrorNodeEndpoint mirror_node = 6;- Specified by:
getMirrorNodein interfaceRegisteredServiceEndpointOrBuilder- Returns:
- The mirrorNode.
-
setMirrorNode
public RegisteredServiceEndpoint.Builder setMirrorNode(RegisteredServiceEndpoint.MirrorNodeEndpoint value) * A Mirror Node.<br/> A Mirror Node is an advanced indexing and query service that provides fast and flexible access to query the block chain and transaction history. A Mirror Node typically stores all recent blockchain data, and some store the entire history of the network.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.MirrorNodeEndpoint mirror_node = 6; -
setMirrorNode
public RegisteredServiceEndpoint.Builder setMirrorNode(RegisteredServiceEndpoint.MirrorNodeEndpoint.Builder builderForValue) * A Mirror Node.<br/> A Mirror Node is an advanced indexing and query service that provides fast and flexible access to query the block chain and transaction history. A Mirror Node typically stores all recent blockchain data, and some store the entire history of the network.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.MirrorNodeEndpoint mirror_node = 6; -
mergeMirrorNode
public RegisteredServiceEndpoint.Builder mergeMirrorNode(RegisteredServiceEndpoint.MirrorNodeEndpoint value) * A Mirror Node.<br/> A Mirror Node is an advanced indexing and query service that provides fast and flexible access to query the block chain and transaction history. A Mirror Node typically stores all recent blockchain data, and some store the entire history of the network.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.MirrorNodeEndpoint mirror_node = 6; -
clearMirrorNode
* A Mirror Node.<br/> A Mirror Node is an advanced indexing and query service that provides fast and flexible access to query the block chain and transaction history. A Mirror Node typically stores all recent blockchain data, and some store the entire history of the network.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.MirrorNodeEndpoint mirror_node = 6; -
hasRpcRelay
public boolean hasRpcRelay()* A RPC Relay.<br/> A RPC Relay is a proxy and translator between EVM tooling and a Hiero consensus network.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.RpcRelayEndpoint rpc_relay = 7;- Specified by:
hasRpcRelayin interfaceRegisteredServiceEndpointOrBuilder- Returns:
- Whether the rpcRelay field is set.
-
getRpcRelay
* A RPC Relay.<br/> A RPC Relay is a proxy and translator between EVM tooling and a Hiero consensus network.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.RpcRelayEndpoint rpc_relay = 7;- Specified by:
getRpcRelayin interfaceRegisteredServiceEndpointOrBuilder- Returns:
- The rpcRelay.
-
setRpcRelay
public RegisteredServiceEndpoint.Builder setRpcRelay(RegisteredServiceEndpoint.RpcRelayEndpoint value) * A RPC Relay.<br/> A RPC Relay is a proxy and translator between EVM tooling and a Hiero consensus network.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.RpcRelayEndpoint rpc_relay = 7; -
setRpcRelay
public RegisteredServiceEndpoint.Builder setRpcRelay(RegisteredServiceEndpoint.RpcRelayEndpoint.Builder builderForValue) * A RPC Relay.<br/> A RPC Relay is a proxy and translator between EVM tooling and a Hiero consensus network.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.RpcRelayEndpoint rpc_relay = 7; -
mergeRpcRelay
public RegisteredServiceEndpoint.Builder mergeRpcRelay(RegisteredServiceEndpoint.RpcRelayEndpoint value) * A RPC Relay.<br/> A RPC Relay is a proxy and translator between EVM tooling and a Hiero consensus network.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.RpcRelayEndpoint rpc_relay = 7; -
clearRpcRelay
* A RPC Relay.<br/> A RPC Relay is a proxy and translator between EVM tooling and a Hiero consensus network.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.RpcRelayEndpoint rpc_relay = 7; -
hasGeneralService
public boolean hasGeneralService()* A general service.<br/> A general service endpoint represents any network accessible service that is provided by a registered node but that is not a service currently defined as part of the Hiero Ledger system.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.GeneralServiceEndpoint general_service = 8;- Specified by:
hasGeneralServicein interfaceRegisteredServiceEndpointOrBuilder- Returns:
- Whether the generalService field is set.
-
getGeneralService
* A general service.<br/> A general service endpoint represents any network accessible service that is provided by a registered node but that is not a service currently defined as part of the Hiero Ledger system.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.GeneralServiceEndpoint general_service = 8;- Specified by:
getGeneralServicein interfaceRegisteredServiceEndpointOrBuilder- Returns:
- The generalService.
-
setGeneralService
public RegisteredServiceEndpoint.Builder setGeneralService(RegisteredServiceEndpoint.GeneralServiceEndpoint value) * A general service.<br/> A general service endpoint represents any network accessible service that is provided by a registered node but that is not a service currently defined as part of the Hiero Ledger system.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.GeneralServiceEndpoint general_service = 8; -
setGeneralService
public RegisteredServiceEndpoint.Builder setGeneralService(RegisteredServiceEndpoint.GeneralServiceEndpoint.Builder builderForValue) * A general service.<br/> A general service endpoint represents any network accessible service that is provided by a registered node but that is not a service currently defined as part of the Hiero Ledger system.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.GeneralServiceEndpoint general_service = 8; -
mergeGeneralService
public RegisteredServiceEndpoint.Builder mergeGeneralService(RegisteredServiceEndpoint.GeneralServiceEndpoint value) * A general service.<br/> A general service endpoint represents any network accessible service that is provided by a registered node but that is not a service currently defined as part of the Hiero Ledger system.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.GeneralServiceEndpoint general_service = 8; -
clearGeneralService
* A general service.<br/> A general service endpoint represents any network accessible service that is provided by a registered node but that is not a service currently defined as part of the Hiero Ledger system.
.com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.GeneralServiceEndpoint general_service = 8;
-