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 Details

  • Constructor Details

    • LnrpcInterceptFeedback

      public LnrpcInterceptFeedback()
  • Method Details

    • error

      public LnrpcInterceptFeedback error(String error)
    • getError

      @Nullable public String 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

      public void setError(String error)
    • replaceResponse

      public LnrpcInterceptFeedback replaceResponse(Boolean replaceResponse)
    • getReplaceResponse

      @Nullable public Boolean 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

      public void setReplaceResponse(Boolean replaceResponse)
    • replacementSerialized

      public LnrpcInterceptFeedback replacementSerialized(byte[] 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

      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