java.lang.Object
com.hedera.hashgraph.sdk.RegisteredServiceEndpoint
com.hedera.hashgraph.sdk.RegisteredServiceEndpointBase<RpcRelayServiceEndpoint>
com.hedera.hashgraph.sdk.RpcRelayServiceEndpoint
Represent a Registered Rpc Relay
-
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 RpcRelayServiceEndpointfromJson(com.google.gson.JsonObject json) Parses RpcRelayEndpoint from the type-specific JSON object the MirrorNode.(package private) static RpcRelayServiceEndpointfromProtobuf(RegisteredServiceEndpoint serviceEndpoint) Create a RpcRelayServiceEndpoint object from protobuf(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
-
RpcRelayServiceEndpoint
public RpcRelayServiceEndpoint()Constructor.
-
-
Method Details
-
fromProtobuf
Create a RpcRelayServiceEndpoint object from protobuf- Parameters:
serviceEndpoint- the protobuf object- Returns:
- the new instance of RpcRelayServiceEndpoint
-
toProtobuf
RegisteredServiceEndpoint toProtobuf()Description copied from class:RegisteredServiceEndpointBuild the protobuf.- Specified by:
toProtobufin classRegisteredServiceEndpoint- Returns:
- the protobuf representation
-
fromJson
Parses RpcRelayEndpoint from the type-specific JSON object the MirrorNode.- Parameters:
json- the json containing rpc relay specific data- Returns:
this
-
toString
-