Packages

final case class RPCMiddlewareRequest(requestId: Long = 0L, rawMacaroon: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, customCaveatCondition: String = "", interceptType: InterceptType = lnrpc.RPCMiddlewareRequest.InterceptType.Empty, msgId: Long = 0L, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[RPCMiddlewareRequest] with Product with Serializable

requestId

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.

rawMacaroon

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.

customCaveatCondition

The parsed condition of the macaroon's custom caveat for convenient access. This field only contains the value of the custom caveat that the handling middleware has registered itself for. The condition _must_ be validated for messages of intercept_type stream_auth and request!

msgId

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.

Annotations
@SerialVersionUID()
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RPCMiddlewareRequest
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RPCMiddlewareRequest(requestId: Long = 0L, rawMacaroon: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, customCaveatCondition: String = "", interceptType: InterceptType = lnrpc.RPCMiddlewareRequest.InterceptType.Empty, msgId: Long = 0L, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)

    requestId

    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.

    rawMacaroon

    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.

    customCaveatCondition

    The parsed condition of the macaroon's custom caveat for convenient access. This field only contains the value of the custom caveat that the handling middleware has registered itself for. The condition _must_ be validated for messages of intercept_type stream_auth and request!

    msgId

    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.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clearInterceptType: RPCMiddlewareRequest
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def companion: RPCMiddlewareRequest.type
    Definition Classes
    RPCMiddlewareRequest → GeneratedMessage
  8. val customCaveatCondition: String
  9. def discardUnknownFields: RPCMiddlewareRequest
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    RPCMiddlewareRequest → GeneratedMessage
  14. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    RPCMiddlewareRequest → GeneratedMessage
  15. def getRequest: RPCMessage
  16. def getResponse: RPCMessage
  17. def getStreamAuth: StreamAuth
  18. val interceptType: InterceptType
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. val msgId: Long
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def productElementNames: Iterator[String]
    Definition Classes
    Product
  25. val rawMacaroon: ByteString
  26. val requestId: Long
  27. def serializedSize: Int
    Definition Classes
    RPCMiddlewareRequest → GeneratedMessage
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  30. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  31. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  32. def toProtoString: String
    Definition Classes
    RPCMiddlewareRequest → GeneratedMessage
  33. val unknownFields: UnknownFieldSet
  34. def update(ms: (Lens[RPCMiddlewareRequest, RPCMiddlewareRequest]) => Mutation[RPCMiddlewareRequest]*): RPCMiddlewareRequest
    Definition Classes
    Updatable
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  38. def withCustomCaveatCondition(__v: String): RPCMiddlewareRequest
  39. def withInterceptType(__v: InterceptType): RPCMiddlewareRequest
  40. def withMsgId(__v: Long): RPCMiddlewareRequest
  41. def withRawMacaroon(__v: ByteString): RPCMiddlewareRequest
  42. def withRequest(__v: RPCMessage): RPCMiddlewareRequest
  43. def withRequestId(__v: Long): RPCMiddlewareRequest
  44. def withResponse(__v: RPCMessage): RPCMiddlewareRequest
  45. def withStreamAuth(__v: StreamAuth): RPCMiddlewareRequest
  46. def withUnknownFields(__v: UnknownFieldSet): RPCMiddlewareRequest
  47. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  48. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    RPCMiddlewareRequest → GeneratedMessage
  49. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped