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
  • Method Details

    • getAddressCase

      public RegisteredServiceEndpoint.AddressCase getAddressCase()
      Specified by:
      getAddressCase in interface RegisteredServiceEndpointOrBuilder
    • clearAddress

      public RegisteredServiceEndpoint.Builder clearAddress()
    • getEndpointTypeCase

      public RegisteredServiceEndpoint.EndpointTypeCase getEndpointTypeCase()
      Specified by:
      getEndpointTypeCase in interface RegisteredServiceEndpointOrBuilder
    • clearEndpointType

      public RegisteredServiceEndpoint.Builder 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:
      hasIpAddress in interface RegisteredServiceEndpointOrBuilder
      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:
      getIpAddress in interface RegisteredServiceEndpointOrBuilder
      Returns:
      The ipAddress.
    • setIpAddress

      public RegisteredServiceEndpoint.Builder 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. 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

      public RegisteredServiceEndpoint.Builder 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:
      hasDomainName in interface RegisteredServiceEndpointOrBuilder
      Returns:
      Whether the domainName field is set.
    • getDomainName

      public String 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:
      getDomainName in interface RegisteredServiceEndpointOrBuilder
      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:
      getDomainNameBytes in interface RegisteredServiceEndpointOrBuilder
      Returns:
      The bytes for domainName.
    • setDomainName

      public RegisteredServiceEndpoint.Builder setDomainName(String value)
       *
       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

      public RegisteredServiceEndpoint.Builder 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

      public RegisteredServiceEndpoint.Builder setDomainNameBytes(com.google.protobuf.ByteString value)
       *
       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:
      getPort in interface RegisteredServiceEndpointOrBuilder
      Returns:
      The port.
    • setPort

      public RegisteredServiceEndpoint.Builder setPort(int value)
       *
       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:
      getRequiresTls in interface RegisteredServiceEndpointOrBuilder
      Returns:
      The requiresTls.
    • setRequiresTls

      public RegisteredServiceEndpoint.Builder setRequiresTls(boolean value)
       *
       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

      public RegisteredServiceEndpoint.Builder 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:
      hasBlockNode in interface RegisteredServiceEndpointOrBuilder
      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:
      getBlockNode in interface RegisteredServiceEndpointOrBuilder
      Returns:
      The blockNode.
    • setBlockNode

       *
       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

       *
       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

       *
       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

      public RegisteredServiceEndpoint.Builder 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:
      hasMirrorNode in interface RegisteredServiceEndpointOrBuilder
      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:
      getMirrorNode in interface RegisteredServiceEndpointOrBuilder
      Returns:
      The mirrorNode.
    • setMirrorNode

       *
       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

       *
       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

       *
       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

      public RegisteredServiceEndpoint.Builder 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:
      hasRpcRelay in interface RegisteredServiceEndpointOrBuilder
      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:
      getRpcRelay in interface RegisteredServiceEndpointOrBuilder
      Returns:
      The rpcRelay.
    • setRpcRelay

       *
       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

       *
       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

       *
       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

      public RegisteredServiceEndpoint.Builder 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:
      hasGeneralService in interface RegisteredServiceEndpointOrBuilder
      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:
      getGeneralService in interface RegisteredServiceEndpointOrBuilder
      Returns:
      The generalService.
    • setGeneralService

       *
       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

       *
       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

       *
       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

      public RegisteredServiceEndpoint.Builder 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;