public static final class LightningApi.RPCMiddlewareRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.RPCMiddlewareRequest.Builder> implements LightningApi.RPCMiddlewareRequestOrBuilder
lnrpc.RPCMiddlewareRequest
Modifier and Type | Method and Description |
---|---|
LightningApi.RPCMiddlewareRequest |
build() |
LightningApi.RPCMiddlewareRequest |
buildPartial() |
LightningApi.RPCMiddlewareRequest.Builder |
clear() |
LightningApi.RPCMiddlewareRequest.Builder |
clearCustomCaveatCondition()
The parsed condition of the macaroon's custom caveat for convenient access.
|
LightningApi.RPCMiddlewareRequest.Builder |
clearInterceptType() |
LightningApi.RPCMiddlewareRequest.Builder |
clearMsgId()
The unique message ID of this middleware intercept message.
|
LightningApi.RPCMiddlewareRequest.Builder |
clearRawMacaroon()
The raw bytes of the complete macaroon as sent by the gRPC client in the
original request.
|
LightningApi.RPCMiddlewareRequest.Builder |
clearRegComplete()
This is used to indicate to the client that the server has successfully
registered the interceptor.
|
LightningApi.RPCMiddlewareRequest.Builder |
clearRequest()
Intercept incoming gRPC client request message: all incoming messages,
both on streaming and unary RPCs, are forwarded to the middleware for
inspection.
|
LightningApi.RPCMiddlewareRequest.Builder |
clearRequestId()
The unique ID of the intercepted original gRPC request.
|
LightningApi.RPCMiddlewareRequest.Builder |
clearResponse()
Intercept outgoing gRPC response message: all outgoing messages, both on
streaming and unary RPCs, are forwarded to the middleware for inspection
and amendment.
|
LightningApi.RPCMiddlewareRequest.Builder |
clearStreamAuth()
Intercept stream authentication: each new streaming RPC call that is
initiated against lnd and contains the middleware's custom macaroon
caveat can be approved or denied based upon the macaroon in the stream
header.
|
java.lang.String |
getCustomCaveatCondition()
The parsed condition of the macaroon's custom caveat for convenient access.
|
com.google.protobuf.ByteString |
getCustomCaveatConditionBytes()
The parsed condition of the macaroon's custom caveat for convenient access.
|
LightningApi.RPCMiddlewareRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
LightningApi.RPCMiddlewareRequest.InterceptTypeCase |
getInterceptTypeCase() |
long |
getMsgId()
The unique message ID of this middleware intercept message.
|
com.google.protobuf.ByteString |
getRawMacaroon()
The raw bytes of the complete macaroon as sent by the gRPC client in the
original request.
|
boolean |
getRegComplete()
This is used to indicate to the client that the server has successfully
registered the interceptor.
|
LightningApi.RPCMessage |
getRequest()
Intercept incoming gRPC client request message: all incoming messages,
both on streaming and unary RPCs, are forwarded to the middleware for
inspection.
|
LightningApi.RPCMessage.Builder |
getRequestBuilder()
Intercept incoming gRPC client request message: all incoming messages,
both on streaming and unary RPCs, are forwarded to the middleware for
inspection.
|
long |
getRequestId()
The unique ID of the intercepted original gRPC request.
|
LightningApi.RPCMessageOrBuilder |
getRequestOrBuilder()
Intercept incoming gRPC client request message: all incoming messages,
both on streaming and unary RPCs, are forwarded to the middleware for
inspection.
|
LightningApi.RPCMessage |
getResponse()
Intercept outgoing gRPC response message: all outgoing messages, both on
streaming and unary RPCs, are forwarded to the middleware for inspection
and amendment.
|
LightningApi.RPCMessage.Builder |
getResponseBuilder()
Intercept outgoing gRPC response message: all outgoing messages, both on
streaming and unary RPCs, are forwarded to the middleware for inspection
and amendment.
|
LightningApi.RPCMessageOrBuilder |
getResponseOrBuilder()
Intercept outgoing gRPC response message: all outgoing messages, both on
streaming and unary RPCs, are forwarded to the middleware for inspection
and amendment.
|
LightningApi.StreamAuth |
getStreamAuth()
Intercept stream authentication: each new streaming RPC call that is
initiated against lnd and contains the middleware's custom macaroon
caveat can be approved or denied based upon the macaroon in the stream
header.
|
LightningApi.StreamAuth.Builder |
getStreamAuthBuilder()
Intercept stream authentication: each new streaming RPC call that is
initiated against lnd and contains the middleware's custom macaroon
caveat can be approved or denied based upon the macaroon in the stream
header.
|
LightningApi.StreamAuthOrBuilder |
getStreamAuthOrBuilder()
Intercept stream authentication: each new streaming RPC call that is
initiated against lnd and contains the middleware's custom macaroon
caveat can be approved or denied based upon the macaroon in the stream
header.
|
boolean |
hasRegComplete()
This is used to indicate to the client that the server has successfully
registered the interceptor.
|
boolean |
hasRequest()
Intercept incoming gRPC client request message: all incoming messages,
both on streaming and unary RPCs, are forwarded to the middleware for
inspection.
|
boolean |
hasResponse()
Intercept outgoing gRPC response message: all outgoing messages, both on
streaming and unary RPCs, are forwarded to the middleware for inspection
and amendment.
|
boolean |
hasStreamAuth()
Intercept stream authentication: each new streaming RPC call that is
initiated against lnd and contains the middleware's custom macaroon
caveat can be approved or denied based upon the macaroon in the stream
header.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LightningApi.RPCMiddlewareRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.RPCMiddlewareRequest.Builder |
mergeFrom(LightningApi.RPCMiddlewareRequest other) |
LightningApi.RPCMiddlewareRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.RPCMiddlewareRequest.Builder |
mergeRequest(LightningApi.RPCMessage value)
Intercept incoming gRPC client request message: all incoming messages,
both on streaming and unary RPCs, are forwarded to the middleware for
inspection.
|
LightningApi.RPCMiddlewareRequest.Builder |
mergeResponse(LightningApi.RPCMessage value)
Intercept outgoing gRPC response message: all outgoing messages, both on
streaming and unary RPCs, are forwarded to the middleware for inspection
and amendment.
|
LightningApi.RPCMiddlewareRequest.Builder |
mergeStreamAuth(LightningApi.StreamAuth value)
Intercept stream authentication: each new streaming RPC call that is
initiated against lnd and contains the middleware's custom macaroon
caveat can be approved or denied based upon the macaroon in the stream
header.
|
LightningApi.RPCMiddlewareRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.RPCMiddlewareRequest.Builder |
setCustomCaveatCondition(java.lang.String value)
The parsed condition of the macaroon's custom caveat for convenient access.
|
LightningApi.RPCMiddlewareRequest.Builder |
setCustomCaveatConditionBytes(com.google.protobuf.ByteString value)
The parsed condition of the macaroon's custom caveat for convenient access.
|
LightningApi.RPCMiddlewareRequest.Builder |
setMsgId(long value)
The unique message ID of this middleware intercept message.
|
LightningApi.RPCMiddlewareRequest.Builder |
setRawMacaroon(com.google.protobuf.ByteString value)
The raw bytes of the complete macaroon as sent by the gRPC client in the
original request.
|
LightningApi.RPCMiddlewareRequest.Builder |
setRegComplete(boolean value)
This is used to indicate to the client that the server has successfully
registered the interceptor.
|
LightningApi.RPCMiddlewareRequest.Builder |
setRequest(LightningApi.RPCMessage.Builder builderForValue)
Intercept incoming gRPC client request message: all incoming messages,
both on streaming and unary RPCs, are forwarded to the middleware for
inspection.
|
LightningApi.RPCMiddlewareRequest.Builder |
setRequest(LightningApi.RPCMessage value)
Intercept incoming gRPC client request message: all incoming messages,
both on streaming and unary RPCs, are forwarded to the middleware for
inspection.
|
LightningApi.RPCMiddlewareRequest.Builder |
setRequestId(long value)
The unique ID of the intercepted original gRPC request.
|
LightningApi.RPCMiddlewareRequest.Builder |
setResponse(LightningApi.RPCMessage.Builder builderForValue)
Intercept outgoing gRPC response message: all outgoing messages, both on
streaming and unary RPCs, are forwarded to the middleware for inspection
and amendment.
|
LightningApi.RPCMiddlewareRequest.Builder |
setResponse(LightningApi.RPCMessage value)
Intercept outgoing gRPC response message: all outgoing messages, both on
streaming and unary RPCs, are forwarded to the middleware for inspection
and amendment.
|
LightningApi.RPCMiddlewareRequest.Builder |
setStreamAuth(LightningApi.StreamAuth.Builder builderForValue)
Intercept stream authentication: each new streaming RPC call that is
initiated against lnd and contains the middleware's custom macaroon
caveat can be approved or denied based upon the macaroon in the stream
header.
|
LightningApi.RPCMiddlewareRequest.Builder |
setStreamAuth(LightningApi.StreamAuth value)
Intercept stream authentication: each new streaming RPC call that is
initiated against lnd and contains the middleware's custom macaroon
caveat can be approved or denied based upon the macaroon in the stream
header.
|
LightningApi.RPCMiddlewareRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.RPCMiddlewareRequest.Builder>
public LightningApi.RPCMiddlewareRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.RPCMiddlewareRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.RPCMiddlewareRequest.Builder>
public LightningApi.RPCMiddlewareRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public LightningApi.RPCMiddlewareRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.RPCMiddlewareRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.RPCMiddlewareRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.RPCMiddlewareRequest.Builder>
public LightningApi.RPCMiddlewareRequest.Builder mergeFrom(LightningApi.RPCMiddlewareRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.RPCMiddlewareRequest.Builder>
public LightningApi.RPCMiddlewareRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.RPCMiddlewareRequest.Builder>
java.io.IOException
public LightningApi.RPCMiddlewareRequest.InterceptTypeCase getInterceptTypeCase()
getInterceptTypeCase
in interface LightningApi.RPCMiddlewareRequestOrBuilder
public LightningApi.RPCMiddlewareRequest.Builder clearInterceptType()
public long 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.
uint64 request_id = 1;
getRequestId
in interface LightningApi.RPCMiddlewareRequestOrBuilder
public LightningApi.RPCMiddlewareRequest.Builder setRequestId(long value)
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.
uint64 request_id = 1;
value
- The requestId to set.public LightningApi.RPCMiddlewareRequest.Builder clearRequestId()
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.
uint64 request_id = 1;
public com.google.protobuf.ByteString 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.
bytes raw_macaroon = 2;
getRawMacaroon
in interface LightningApi.RPCMiddlewareRequestOrBuilder
public LightningApi.RPCMiddlewareRequest.Builder setRawMacaroon(com.google.protobuf.ByteString value)
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.
bytes raw_macaroon = 2;
value
- The rawMacaroon to set.public LightningApi.RPCMiddlewareRequest.Builder clearRawMacaroon()
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.
bytes raw_macaroon = 2;
public java.lang.String getCustomCaveatCondition()
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!
string custom_caveat_condition = 3;
getCustomCaveatCondition
in interface LightningApi.RPCMiddlewareRequestOrBuilder
public com.google.protobuf.ByteString getCustomCaveatConditionBytes()
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!
string custom_caveat_condition = 3;
getCustomCaveatConditionBytes
in interface LightningApi.RPCMiddlewareRequestOrBuilder
public LightningApi.RPCMiddlewareRequest.Builder setCustomCaveatCondition(java.lang.String value)
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!
string custom_caveat_condition = 3;
value
- The customCaveatCondition to set.public LightningApi.RPCMiddlewareRequest.Builder clearCustomCaveatCondition()
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!
string custom_caveat_condition = 3;
public LightningApi.RPCMiddlewareRequest.Builder setCustomCaveatConditionBytes(com.google.protobuf.ByteString value)
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!
string custom_caveat_condition = 3;
value
- The bytes for customCaveatCondition to set.public boolean hasStreamAuth()
Intercept stream authentication: each new streaming RPC call that is initiated against lnd and contains the middleware's custom macaroon caveat can be approved or denied based upon the macaroon in the stream header. This message will only be sent for streaming RPCs, unary RPCs must handle the macaroon authentication in the request interception to avoid an additional message round trip between lnd and the middleware.
.lnrpc.StreamAuth stream_auth = 4;
hasStreamAuth
in interface LightningApi.RPCMiddlewareRequestOrBuilder
public LightningApi.StreamAuth getStreamAuth()
Intercept stream authentication: each new streaming RPC call that is initiated against lnd and contains the middleware's custom macaroon caveat can be approved or denied based upon the macaroon in the stream header. This message will only be sent for streaming RPCs, unary RPCs must handle the macaroon authentication in the request interception to avoid an additional message round trip between lnd and the middleware.
.lnrpc.StreamAuth stream_auth = 4;
getStreamAuth
in interface LightningApi.RPCMiddlewareRequestOrBuilder
public LightningApi.RPCMiddlewareRequest.Builder setStreamAuth(LightningApi.StreamAuth value)
Intercept stream authentication: each new streaming RPC call that is initiated against lnd and contains the middleware's custom macaroon caveat can be approved or denied based upon the macaroon in the stream header. This message will only be sent for streaming RPCs, unary RPCs must handle the macaroon authentication in the request interception to avoid an additional message round trip between lnd and the middleware.
.lnrpc.StreamAuth stream_auth = 4;
public LightningApi.RPCMiddlewareRequest.Builder setStreamAuth(LightningApi.StreamAuth.Builder builderForValue)
Intercept stream authentication: each new streaming RPC call that is initiated against lnd and contains the middleware's custom macaroon caveat can be approved or denied based upon the macaroon in the stream header. This message will only be sent for streaming RPCs, unary RPCs must handle the macaroon authentication in the request interception to avoid an additional message round trip between lnd and the middleware.
.lnrpc.StreamAuth stream_auth = 4;
public LightningApi.RPCMiddlewareRequest.Builder mergeStreamAuth(LightningApi.StreamAuth value)
Intercept stream authentication: each new streaming RPC call that is initiated against lnd and contains the middleware's custom macaroon caveat can be approved or denied based upon the macaroon in the stream header. This message will only be sent for streaming RPCs, unary RPCs must handle the macaroon authentication in the request interception to avoid an additional message round trip between lnd and the middleware.
.lnrpc.StreamAuth stream_auth = 4;
public LightningApi.RPCMiddlewareRequest.Builder clearStreamAuth()
Intercept stream authentication: each new streaming RPC call that is initiated against lnd and contains the middleware's custom macaroon caveat can be approved or denied based upon the macaroon in the stream header. This message will only be sent for streaming RPCs, unary RPCs must handle the macaroon authentication in the request interception to avoid an additional message round trip between lnd and the middleware.
.lnrpc.StreamAuth stream_auth = 4;
public LightningApi.StreamAuth.Builder getStreamAuthBuilder()
Intercept stream authentication: each new streaming RPC call that is initiated against lnd and contains the middleware's custom macaroon caveat can be approved or denied based upon the macaroon in the stream header. This message will only be sent for streaming RPCs, unary RPCs must handle the macaroon authentication in the request interception to avoid an additional message round trip between lnd and the middleware.
.lnrpc.StreamAuth stream_auth = 4;
public LightningApi.StreamAuthOrBuilder getStreamAuthOrBuilder()
Intercept stream authentication: each new streaming RPC call that is initiated against lnd and contains the middleware's custom macaroon caveat can be approved or denied based upon the macaroon in the stream header. This message will only be sent for streaming RPCs, unary RPCs must handle the macaroon authentication in the request interception to avoid an additional message round trip between lnd and the middleware.
.lnrpc.StreamAuth stream_auth = 4;
getStreamAuthOrBuilder
in interface LightningApi.RPCMiddlewareRequestOrBuilder
public boolean hasRequest()
Intercept incoming gRPC client request message: all incoming messages, both on streaming and unary RPCs, are forwarded to the middleware for inspection. For unary RPC messages the middleware is also expected to validate the custom macaroon caveat of the request.
.lnrpc.RPCMessage request = 5;
hasRequest
in interface LightningApi.RPCMiddlewareRequestOrBuilder
public LightningApi.RPCMessage getRequest()
Intercept incoming gRPC client request message: all incoming messages, both on streaming and unary RPCs, are forwarded to the middleware for inspection. For unary RPC messages the middleware is also expected to validate the custom macaroon caveat of the request.
.lnrpc.RPCMessage request = 5;
getRequest
in interface LightningApi.RPCMiddlewareRequestOrBuilder
public LightningApi.RPCMiddlewareRequest.Builder setRequest(LightningApi.RPCMessage value)
Intercept incoming gRPC client request message: all incoming messages, both on streaming and unary RPCs, are forwarded to the middleware for inspection. For unary RPC messages the middleware is also expected to validate the custom macaroon caveat of the request.
.lnrpc.RPCMessage request = 5;
public LightningApi.RPCMiddlewareRequest.Builder setRequest(LightningApi.RPCMessage.Builder builderForValue)
Intercept incoming gRPC client request message: all incoming messages, both on streaming and unary RPCs, are forwarded to the middleware for inspection. For unary RPC messages the middleware is also expected to validate the custom macaroon caveat of the request.
.lnrpc.RPCMessage request = 5;
public LightningApi.RPCMiddlewareRequest.Builder mergeRequest(LightningApi.RPCMessage value)
Intercept incoming gRPC client request message: all incoming messages, both on streaming and unary RPCs, are forwarded to the middleware for inspection. For unary RPC messages the middleware is also expected to validate the custom macaroon caveat of the request.
.lnrpc.RPCMessage request = 5;
public LightningApi.RPCMiddlewareRequest.Builder clearRequest()
Intercept incoming gRPC client request message: all incoming messages, both on streaming and unary RPCs, are forwarded to the middleware for inspection. For unary RPC messages the middleware is also expected to validate the custom macaroon caveat of the request.
.lnrpc.RPCMessage request = 5;
public LightningApi.RPCMessage.Builder getRequestBuilder()
Intercept incoming gRPC client request message: all incoming messages, both on streaming and unary RPCs, are forwarded to the middleware for inspection. For unary RPC messages the middleware is also expected to validate the custom macaroon caveat of the request.
.lnrpc.RPCMessage request = 5;
public LightningApi.RPCMessageOrBuilder getRequestOrBuilder()
Intercept incoming gRPC client request message: all incoming messages, both on streaming and unary RPCs, are forwarded to the middleware for inspection. For unary RPC messages the middleware is also expected to validate the custom macaroon caveat of the request.
.lnrpc.RPCMessage request = 5;
getRequestOrBuilder
in interface LightningApi.RPCMiddlewareRequestOrBuilder
public boolean hasResponse()
Intercept outgoing gRPC response message: all outgoing messages, both on streaming and unary RPCs, are forwarded to the middleware for inspection and amendment. The response in this message is the original response as it was generated by the main RPC server. It can either be accepted (=forwarded to the client), replaced/overwritten with a new message of the same type, or replaced by an error message.
.lnrpc.RPCMessage response = 6;
hasResponse
in interface LightningApi.RPCMiddlewareRequestOrBuilder
public LightningApi.RPCMessage getResponse()
Intercept outgoing gRPC response message: all outgoing messages, both on streaming and unary RPCs, are forwarded to the middleware for inspection and amendment. The response in this message is the original response as it was generated by the main RPC server. It can either be accepted (=forwarded to the client), replaced/overwritten with a new message of the same type, or replaced by an error message.
.lnrpc.RPCMessage response = 6;
getResponse
in interface LightningApi.RPCMiddlewareRequestOrBuilder
public LightningApi.RPCMiddlewareRequest.Builder setResponse(LightningApi.RPCMessage value)
Intercept outgoing gRPC response message: all outgoing messages, both on streaming and unary RPCs, are forwarded to the middleware for inspection and amendment. The response in this message is the original response as it was generated by the main RPC server. It can either be accepted (=forwarded to the client), replaced/overwritten with a new message of the same type, or replaced by an error message.
.lnrpc.RPCMessage response = 6;
public LightningApi.RPCMiddlewareRequest.Builder setResponse(LightningApi.RPCMessage.Builder builderForValue)
Intercept outgoing gRPC response message: all outgoing messages, both on streaming and unary RPCs, are forwarded to the middleware for inspection and amendment. The response in this message is the original response as it was generated by the main RPC server. It can either be accepted (=forwarded to the client), replaced/overwritten with a new message of the same type, or replaced by an error message.
.lnrpc.RPCMessage response = 6;
public LightningApi.RPCMiddlewareRequest.Builder mergeResponse(LightningApi.RPCMessage value)
Intercept outgoing gRPC response message: all outgoing messages, both on streaming and unary RPCs, are forwarded to the middleware for inspection and amendment. The response in this message is the original response as it was generated by the main RPC server. It can either be accepted (=forwarded to the client), replaced/overwritten with a new message of the same type, or replaced by an error message.
.lnrpc.RPCMessage response = 6;
public LightningApi.RPCMiddlewareRequest.Builder clearResponse()
Intercept outgoing gRPC response message: all outgoing messages, both on streaming and unary RPCs, are forwarded to the middleware for inspection and amendment. The response in this message is the original response as it was generated by the main RPC server. It can either be accepted (=forwarded to the client), replaced/overwritten with a new message of the same type, or replaced by an error message.
.lnrpc.RPCMessage response = 6;
public LightningApi.RPCMessage.Builder getResponseBuilder()
Intercept outgoing gRPC response message: all outgoing messages, both on streaming and unary RPCs, are forwarded to the middleware for inspection and amendment. The response in this message is the original response as it was generated by the main RPC server. It can either be accepted (=forwarded to the client), replaced/overwritten with a new message of the same type, or replaced by an error message.
.lnrpc.RPCMessage response = 6;
public LightningApi.RPCMessageOrBuilder getResponseOrBuilder()
Intercept outgoing gRPC response message: all outgoing messages, both on streaming and unary RPCs, are forwarded to the middleware for inspection and amendment. The response in this message is the original response as it was generated by the main RPC server. It can either be accepted (=forwarded to the client), replaced/overwritten with a new message of the same type, or replaced by an error message.
.lnrpc.RPCMessage response = 6;
getResponseOrBuilder
in interface LightningApi.RPCMiddlewareRequestOrBuilder
public boolean hasRegComplete()
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.
bool reg_complete = 8;
hasRegComplete
in interface LightningApi.RPCMiddlewareRequestOrBuilder
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.
bool reg_complete = 8;
getRegComplete
in interface LightningApi.RPCMiddlewareRequestOrBuilder
public LightningApi.RPCMiddlewareRequest.Builder setRegComplete(boolean value)
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.
bool reg_complete = 8;
value
- The regComplete to set.public LightningApi.RPCMiddlewareRequest.Builder clearRegComplete()
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.
bool reg_complete = 8;
public long 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.
uint64 msg_id = 7;
getMsgId
in interface LightningApi.RPCMiddlewareRequestOrBuilder
public LightningApi.RPCMiddlewareRequest.Builder setMsgId(long value)
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.
uint64 msg_id = 7;
value
- The msgId to set.public LightningApi.RPCMiddlewareRequest.Builder clearMsgId()
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.
uint64 msg_id = 7;
public final LightningApi.RPCMiddlewareRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.RPCMiddlewareRequest.Builder>
public final LightningApi.RPCMiddlewareRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.RPCMiddlewareRequest.Builder>