Package net.osslabz.lnd.dto
Class LnrpcRPCMessage
java.lang.Object
net.osslabz.lnd.dto.LnrpcRPCMessage
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-07T12:03:34.958542131Z[Etc/UTC]")
public class LnrpcRPCMessage
extends Object
LnrpcRPCMessage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates that the response from lnd was an error, not a gRPC response.The full URI (in the format /<rpcpackage>.<ServiceName>/MethodName, for example /lnrpc.Lightning/GetInfo) of the RPC method the message was sent to/from.byte[]The full content of the gRPC message, serialized in the binary protobuf format.Indicates whether the message was sent over a streaming RPC method or not.The full canonical gRPC name of the message type (in the format <rpcpackage>.TypeName, for example lnrpc.GetInfoRequest).inthashCode()methodFullUri(String methodFullUri) serialized(byte[] serialized) voidsetIsError(Boolean isError) voidsetMethodFullUri(String methodFullUri) voidsetSerialized(byte[] serialized) voidsetStreamRpc(Boolean streamRpc) voidsetTypeName(String typeName) toString()
-
Field Details
-
SERIALIZED_NAME_METHOD_FULL_URI
- See Also:
-
SERIALIZED_NAME_STREAM_RPC
- See Also:
-
SERIALIZED_NAME_TYPE_NAME
- See Also:
-
SERIALIZED_NAME_SERIALIZED
- See Also:
-
SERIALIZED_NAME_IS_ERROR
- See Also:
-
-
Constructor Details
-
LnrpcRPCMessage
public LnrpcRPCMessage()
-
-
Method Details
-
methodFullUri
-
getMethodFullUri
The full URI (in the format /<rpcpackage>.<ServiceName>/MethodName, for example /lnrpc.Lightning/GetInfo) of the RPC method the message was sent to/from.- Returns:
- methodFullUri
-
setMethodFullUri
-
streamRpc
-
getStreamRpc
Indicates whether the message was sent over a streaming RPC method or not.- Returns:
- streamRpc
-
setStreamRpc
-
typeName
-
getTypeName
The full canonical gRPC name of the message type (in the format <rpcpackage>.TypeName, for example lnrpc.GetInfoRequest). In case of an error being returned from lnd, this simply contains the string \"error\".- Returns:
- typeName
-
setTypeName
-
serialized
-
getSerialized
@Nullable public byte[] getSerialized()The full content of the gRPC message, serialized in the binary protobuf format.- Returns:
- serialized
-
setSerialized
public void setSerialized(byte[] serialized) -
isError
-
getIsError
Indicates that the response from lnd was an error, not a gRPC response. If this is set to true then the type_name contains the string \"error\" and serialized contains the error string.- Returns:
- isError
-
setIsError
-
equals
-
hashCode
public int hashCode() -
toString
-