Class GeneralServiceEndpoint


public class GeneralServiceEndpoint extends RegisteredServiceEndpointBase<GeneralServiceEndpoint>
Represents a general-purpose service endpoint.
  • Constructor Details

    • GeneralServiceEndpoint

      public GeneralServiceEndpoint()
      Constructor.
  • Method Details

    • getDescription

      @Nullable public String getDescription()
      Returns the description of the service provided by this endpoint.
      Returns:
      the service description, or null if not set
    • setDescription

      public GeneralServiceEndpoint setDescription(String description)
      Sets a short description of the service provided. This value MUST NOT exceed 100 bytes when encoded as UTF-8.
      Parameters:
      description - a short description of the service
      Returns:
      this
    • fromProtobuf

      static GeneralServiceEndpoint fromProtobuf(RegisteredServiceEndpoint serviceEndpoint)
    • fromJson

      static GeneralServiceEndpoint fromJson(com.google.gson.JsonObject json)
      Parses GeneralServiceEndpoint from the type-specific JSON object the MirrorNode.
      Parameters:
      json - the json containing general service specific data
      Returns:
      this
    • toProtobuf

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

      public String toString()
      Overrides:
      toString in class Object