Package net.osslabz.lnd.dto
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncustomCaveatCondition(String customCaveatCondition) booleanGet customCaveatConditiongetMsgId()The unique message ID of this middleware intercept message.byte[]The raw bytes of the complete macaroon as sent by the gRPC client in the original request.This is used to indicate to the client that the server has successfully registered the interceptor.Get requestThe unique ID of the intercepted original gRPC request.Get responseGet streamAuthinthashCode()rawMacaroon(byte[] rawMacaroon) regComplete(Boolean regComplete) request(LnrpcRPCMessage request) response(LnrpcRPCMessage response) voidsetCustomCaveatCondition(String customCaveatCondition) voidvoidsetRawMacaroon(byte[] rawMacaroon) voidsetRegComplete(Boolean regComplete) voidsetRequest(LnrpcRPCMessage request) voidsetRequestId(String requestId) voidsetResponse(LnrpcRPCMessage response) voidsetStreamAuth(LnrpcStreamAuth streamAuth) streamAuth(LnrpcStreamAuth streamAuth) toString()
-
Field Details
-
SERIALIZED_NAME_REQUEST_ID
- See Also:
-
SERIALIZED_NAME_RAW_MACAROON
- See Also:
-
SERIALIZED_NAME_CUSTOM_CAVEAT_CONDITION
- See Also:
-
SERIALIZED_NAME_STREAM_AUTH
- See Also:
-
SERIALIZED_NAME_REQUEST
- See Also:
-
SERIALIZED_NAME_RESPONSE
- See Also:
-
SERIALIZED_NAME_REG_COMPLETE
- See Also:
-
SERIALIZED_NAME_MSG_ID
- See Also:
-
-
Constructor Details
-
LnrpcRPCMiddlewareRequest
public LnrpcRPCMiddlewareRequest()
-
-
Method Details
-
requestId
-
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
-
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
-
getCustomCaveatCondition
Get customCaveatCondition- Returns:
- customCaveatCondition
-
setCustomCaveatCondition
-
streamAuth
-
getStreamAuth
Get streamAuth- Returns:
- streamAuth
-
setStreamAuth
-
request
-
getRequest
Get request- Returns:
- request
-
setRequest
-
response
-
getResponse
Get response- Returns:
- response
-
setResponse
-
regComplete
-
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
-
msgId
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-