Class LnrpcRPCMiddlewareRequest

java.lang.Object
net.osslabz.lnd.dto.LnrpcRPCMiddlewareRequest

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-07T12:03:34.958542131Z[Etc/UTC]") public class LnrpcRPCMiddlewareRequest extends Object
LnrpcRPCMiddlewareRequest
  • Field Details

  • Constructor Details

    • LnrpcRPCMiddlewareRequest

      public LnrpcRPCMiddlewareRequest()
  • Method Details

    • requestId

      public LnrpcRPCMiddlewareRequest requestId(String requestId)
    • getRequestId

      @Nullable public String getRequestId()
      The unique ID of the intercepted original gRPC request. Useful for mapping request to response when implementing full duplex message interception. For streaming requests, this will be the same ID for all incoming and outgoing middleware intercept messages of the _same_ stream.
      Returns:
      requestId
    • setRequestId

      public void setRequestId(String requestId)
    • rawMacaroon

      public LnrpcRPCMiddlewareRequest rawMacaroon(byte[] rawMacaroon)
    • getRawMacaroon

      @Nullable public byte[] getRawMacaroon()
      The raw bytes of the complete macaroon as sent by the gRPC client in the original request. This might be empty for a request that doesn't require macaroons such as the wallet unlocker RPCs.
      Returns:
      rawMacaroon
    • setRawMacaroon

      public void setRawMacaroon(byte[] rawMacaroon)
    • customCaveatCondition

      public LnrpcRPCMiddlewareRequest customCaveatCondition(String customCaveatCondition)
    • getCustomCaveatCondition

      @Nullable public String getCustomCaveatCondition()
      Get customCaveatCondition
      Returns:
      customCaveatCondition
    • setCustomCaveatCondition

      public void setCustomCaveatCondition(String customCaveatCondition)
    • streamAuth

      public LnrpcRPCMiddlewareRequest streamAuth(LnrpcStreamAuth streamAuth)
    • getStreamAuth

      @Nullable public LnrpcStreamAuth getStreamAuth()
      Get streamAuth
      Returns:
      streamAuth
    • setStreamAuth

      public void setStreamAuth(LnrpcStreamAuth streamAuth)
    • request

      public LnrpcRPCMiddlewareRequest request(LnrpcRPCMessage request)
    • getRequest

      @Nullable public LnrpcRPCMessage getRequest()
      Get request
      Returns:
      request
    • setRequest

      public void setRequest(LnrpcRPCMessage request)
    • response

      public LnrpcRPCMiddlewareRequest response(LnrpcRPCMessage response)
    • getResponse

      @Nullable public LnrpcRPCMessage getResponse()
      Get response
      Returns:
      response
    • setResponse

      public void setResponse(LnrpcRPCMessage response)
    • regComplete

      public LnrpcRPCMiddlewareRequest regComplete(Boolean regComplete)
    • getRegComplete

      @Nullable public Boolean getRegComplete()
      This is used to indicate to the client that the server has successfully registered the interceptor. This is only used in the very first message that the server sends to the client after the client sends the server the middleware registration message.
      Returns:
      regComplete
    • setRegComplete

      public void setRegComplete(Boolean regComplete)
    • msgId

      public LnrpcRPCMiddlewareRequest msgId(String msgId)
    • getMsgId

      @Nullable public String getMsgId()
      The unique message ID of this middleware intercept message. There can be multiple middleware intercept messages per single gRPC request (one for the incoming request and one for the outgoing response) or gRPC stream (one for each incoming message and one for each outgoing response). This message ID must be referenced when responding (accepting/rejecting/modifying) to an intercept message.
      Returns:
      msgId
    • setMsgId

      public void setMsgId(String msgId)
    • 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