java.lang.Object
com.hedera.hashgraph.sdk.RegisteredServiceEndpoint
com.hedera.hashgraph.sdk.RegisteredServiceEndpointBase<GeneralServiceEndpoint>
com.hedera.hashgraph.sdk.GeneralServiceEndpoint
Represents a general-purpose service endpoint.
-
Field Summary
Fields inherited from class com.hedera.hashgraph.sdk.RegisteredServiceEndpoint
domainName, ipAddress, port, requiresTls -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static GeneralServiceEndpointfromJson(com.google.gson.JsonObject json) Parses GeneralServiceEndpoint from the type-specific JSON object the MirrorNode.(package private) static GeneralServiceEndpointfromProtobuf(RegisteredServiceEndpoint serviceEndpoint) Returns the description of the service provided by this endpoint.setDescription(String description) Sets a short description of the service provided.(package private) RegisteredServiceEndpointBuild the protobuf.toString()Methods inherited from class com.hedera.hashgraph.sdk.RegisteredServiceEndpointBase
setDomainName, setIpAddress, setPort, setRequiresTlsMethods inherited from class com.hedera.hashgraph.sdk.RegisteredServiceEndpoint
getDomainName, getIpAddress, getPort, isRequiresTls, toStringHelper, validateNoIpAndDomain
-
Constructor Details
-
GeneralServiceEndpoint
public GeneralServiceEndpoint()Constructor.
-
-
Method Details
-
getDescription
Returns the description of the service provided by this endpoint.- Returns:
- the service description, or null if not set
-
setDescription
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
-
fromJson
Parses GeneralServiceEndpoint from the type-specific JSON object the MirrorNode.- Parameters:
json- the json containing general service specific data- Returns:
this
-
toProtobuf
RegisteredServiceEndpoint toProtobuf()Description copied from class:RegisteredServiceEndpointBuild the protobuf.- Specified by:
toProtobufin classRegisteredServiceEndpoint- Returns:
- the protobuf representation
-
toString
-