Class BlockNodeServiceEndpoint


public class BlockNodeServiceEndpoint extends RegisteredServiceEndpointBase<BlockNodeServiceEndpoint>
Represent a Registered Block Node
  • Constructor Details

    • BlockNodeServiceEndpoint

      public BlockNodeServiceEndpoint()
      Constructor.
  • Method Details

    • getEndpointApis

      public List<BlockNodeApi> getEndpointApis()
      Returns the list of APIs supported by this endpoint.
      Returns:
      the list of supported block node APIs
    • setEndpointApis

      public BlockNodeServiceEndpoint setEndpointApis(List<BlockNodeApi> endpointApis)
      Sets the list of APIs supported by this endpoint.
      Parameters:
      endpointApis - the list of APIs to support; must not be null
      Returns:
      this
    • addEndpointApi

      public BlockNodeServiceEndpoint addEndpointApi(BlockNodeApi endpointApi)
      Adds a single API to the list of supported APIs for this endpoint.
      Parameters:
      endpointApi - the API to add; must not be null
      Returns:
      this
    • fromProtobuf

      static BlockNodeServiceEndpoint fromProtobuf(RegisteredServiceEndpoint serviceEndpoint)
      Create a BlockNodeServiceEndpoint object from protobuf
      Parameters:
      serviceEndpoint - the protobuf object
      Returns:
      the new instance of BlockNodeServiceEndpoint
    • toProtobuf

      Description copied from class: RegisteredServiceEndpoint
      Build the protobuf.
      Specified by:
      toProtobuf in class RegisteredServiceEndpoint
      Returns:
      the protobuf representation
    • fromJson

      static BlockNodeServiceEndpoint fromJson(com.google.gson.JsonObject json)
      Parses BlockNodeServiceEndpoint from the type-specific JSON object the MirrorNode.
      Parameters:
      json - the json containing block node specific data
      Returns:
      this
    • toString

      public String toString()
      Overrides:
      toString in class Object