Class RegisteredServiceEndpoint

java.lang.Object
com.google.protobuf.AbstractMessageLite<RegisteredServiceEndpoint,RegisteredServiceEndpoint.Builder>
com.google.protobuf.GeneratedMessageLite<RegisteredServiceEndpoint,RegisteredServiceEndpoint.Builder>
com.hedera.hashgraph.sdk.proto.RegisteredServiceEndpoint
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, RegisteredServiceEndpointOrBuilder

@Generated public final class RegisteredServiceEndpoint extends com.google.protobuf.GeneratedMessageLite<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 Details

    • IP_ADDRESS_FIELD_NUMBER

      public static final int IP_ADDRESS_FIELD_NUMBER
      See Also:
    • DOMAIN_NAME_FIELD_NUMBER

      public static final int DOMAIN_NAME_FIELD_NUMBER
      See Also:
    • PORT_FIELD_NUMBER

      public static final int PORT_FIELD_NUMBER
      See Also:
    • REQUIRES_TLS_FIELD_NUMBER

      public static final int REQUIRES_TLS_FIELD_NUMBER
      See Also:
    • BLOCK_NODE_FIELD_NUMBER

      public static final int BLOCK_NODE_FIELD_NUMBER
      See Also:
    • MIRROR_NODE_FIELD_NUMBER

      public static final int MIRROR_NODE_FIELD_NUMBER
      See Also:
    • RPC_RELAY_FIELD_NUMBER

      public static final int RPC_RELAY_FIELD_NUMBER
      See Also:
    • GENERAL_SERVICE_FIELD_NUMBER

      public static final int GENERAL_SERVICE_FIELD_NUMBER
      See Also:
  • Method Details

    • getAddressCase

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

      public RegisteredServiceEndpoint.EndpointTypeCase getEndpointTypeCase()
      Specified by:
      getEndpointTypeCase in interface RegisteredServiceEndpointOrBuilder
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • parseFrom

      public static RegisteredServiceEndpoint parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegisteredServiceEndpoint parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegisteredServiceEndpoint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegisteredServiceEndpoint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegisteredServiceEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegisteredServiceEndpoint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegisteredServiceEndpoint parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RegisteredServiceEndpoint parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RegisteredServiceEndpoint parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RegisteredServiceEndpoint parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RegisteredServiceEndpoint parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RegisteredServiceEndpoint parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static RegisteredServiceEndpoint.Builder newBuilder()
    • newBuilder

      public static RegisteredServiceEndpoint.Builder newBuilder(RegisteredServiceEndpoint prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<RegisteredServiceEndpoint,RegisteredServiceEndpoint.Builder>
    • getDefaultInstance

      public static RegisteredServiceEndpoint getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RegisteredServiceEndpoint> parser()