java.lang.Object
com.hedera.hashgraph.sdk.RegisteredServiceEndpoint
com.hedera.hashgraph.sdk.RegisteredServiceEndpointBase<BlockNodeServiceEndpoint>
com.hedera.hashgraph.sdk.BlockNodeServiceEndpoint
public class BlockNodeServiceEndpoint
extends RegisteredServiceEndpointBase<BlockNodeServiceEndpoint>
Represent a Registered Block Node
-
Field Summary
Fields inherited from class com.hedera.hashgraph.sdk.RegisteredServiceEndpoint
domainName, ipAddress, port, requiresTls -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEndpointApi(BlockNodeApi endpointApi) Adds a single API to the list of supported APIs for this endpoint.(package private) static BlockNodeServiceEndpointfromJson(com.google.gson.JsonObject json) Parses BlockNodeServiceEndpoint from the type-specific JSON object the MirrorNode.(package private) static BlockNodeServiceEndpointfromProtobuf(RegisteredServiceEndpoint serviceEndpoint) Create a BlockNodeServiceEndpoint object from protobufReturns the list of APIs supported by this endpoint.setEndpointApis(List<BlockNodeApi> endpointApis) Sets the list of APIs supported by this endpoint.(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
-
BlockNodeServiceEndpoint
public BlockNodeServiceEndpoint()Constructor.
-
-
Method Details
-
getEndpointApis
Returns the list of APIs supported by this endpoint.- Returns:
- the list of supported block node APIs
-
setEndpointApis
Sets the list of APIs supported by this endpoint.- Parameters:
endpointApis- the list of APIs to support; must not be null- Returns:
this
-
addEndpointApi
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
Create a BlockNodeServiceEndpoint object from protobuf- Parameters:
serviceEndpoint- the protobuf object- Returns:
- the new instance of BlockNodeServiceEndpoint
-
toProtobuf
RegisteredServiceEndpoint toProtobuf()Description copied from class:RegisteredServiceEndpointBuild the protobuf.- Specified by:
toProtobufin classRegisteredServiceEndpoint- Returns:
- the protobuf representation
-
fromJson
Parses BlockNodeServiceEndpoint from the type-specific JSON object the MirrorNode.- Parameters:
json- the json containing block node specific data- Returns:
this
-
toString
-