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 Details

  • Constructor Details

    • LnrpcRPCMessage

      public LnrpcRPCMessage()
  • Method Details

    • methodFullUri

      public LnrpcRPCMessage methodFullUri(String methodFullUri)
    • getMethodFullUri

      @Nullable public String 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

      public void setMethodFullUri(String methodFullUri)
    • streamRpc

      public LnrpcRPCMessage streamRpc(Boolean streamRpc)
    • getStreamRpc

      @Nullable public Boolean getStreamRpc()
      Indicates whether the message was sent over a streaming RPC method or not.
      Returns:
      streamRpc
    • setStreamRpc

      public void setStreamRpc(Boolean streamRpc)
    • typeName

      public LnrpcRPCMessage typeName(String typeName)
    • getTypeName

      @Nullable public String 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

      public void setTypeName(String typeName)
    • serialized

      public LnrpcRPCMessage serialized(byte[] 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

      public LnrpcRPCMessage isError(Boolean isError)
    • getIsError

      @Nullable public Boolean 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

      public void setIsError(Boolean isError)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object