Interface CompletionRequest

All Superinterfaces:
HasMeta, ServerFeature.Request

@Immutable public interface CompletionRequest extends ServerFeature.Request
A completion/complete request: the argument being completed and any previously-resolved sibling arguments supplied as context.
  • Method Details

    • argumentName

      String argumentName()
      The name of the argument being completed.
    • argumentValue

      String argumentValue()
      The current (partial) value typed for the argument.
    • meta

      @Nullable Map<String,Object> meta()
      Description copied from interface: HasMeta
      Returns the optional metadata map for protocol extensions.
      Specified by:
      meta in interface HasMeta
      Returns:
      the metadata map, or null if none
    • resolvedArguments

      @Default default Map<String,String> resolvedArguments()
      Previously-resolved argument name/value pairs, or empty if none.
    • check

      @Check default void check()
    • of

      static CompletionRequest of(String argumentName, String argumentValue, Map<String,String> resolvedArguments)
    • builder

      static CompletionRequest.Builder builder()