Package net.osslabz.lnd.dto
Class LnrpcInterceptFeedback
java.lang.Object
net.osslabz.lnd.dto.LnrpcInterceptFeedback
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-07T12:03:34.958542131Z[Etc/UTC]")
public class LnrpcInterceptFeedback
extends Object
LnrpcInterceptFeedback
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetError()The error to return to the user.byte[]If the replace_response field is set to true, this field must contain the binary serialized gRPC message in the protobuf format.A boolean indicating that the gRPC message should be replaced/overwritten.inthashCode()replacementSerialized(byte[] replacementSerialized) replaceResponse(Boolean replaceResponse) voidvoidsetReplacementSerialized(byte[] replacementSerialized) voidsetReplaceResponse(Boolean replaceResponse) toString()
-
Field Details
-
SERIALIZED_NAME_ERROR
- See Also:
-
SERIALIZED_NAME_REPLACE_RESPONSE
- See Also:
-
SERIALIZED_NAME_REPLACEMENT_SERIALIZED
- See Also:
-
-
Constructor Details
-
LnrpcInterceptFeedback
public LnrpcInterceptFeedback()
-
-
Method Details
-
error
-
getError
The error to return to the user. If this is non-empty, the incoming gRPC stream/request is aborted and the error is returned to the gRPC client. If this value is empty, it means the middleware accepts the stream/request/ response and the processing of it can continue.- Returns:
- error
-
setError
-
replaceResponse
-
getReplaceResponse
A boolean indicating that the gRPC message should be replaced/overwritten. This boolean is needed because in protobuf an empty message is serialized as a 0-length or nil byte slice and we wouldn't be able to distinguish between an empty replacement message and the \"don't replace anything\" case.- Returns:
- replaceResponse
-
setReplaceResponse
-
replacementSerialized
-
getReplacementSerialized
@Nullable public byte[] getReplacementSerialized()If the replace_response field is set to true, this field must contain the binary serialized gRPC message in the protobuf format.- Returns:
- replacementSerialized
-
setReplacementSerialized
public void setReplacementSerialized(byte[] replacementSerialized) -
equals
-
hashCode
public int hashCode() -
toString
-