Class Completion
java.lang.Object
org.apache.juneau.bean.mcp.v20260728.Completion
Completion values for a "completion/complete" request.
This is a lossless wire carrier. It does not itself enforce the protocol's 100-value cap or any other server policy; dispatch is responsible for capping, ordering, and validating values before construction.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAppends to the candidate completion values.addValues(Collection<String> value) Appends to the candidate completion values.Optional flag indicating additional values exist beyondgetValues().getTotal()Optional total number of matches, which may exceedgetValues()when truncated.Candidate completion values.setHasMore(Boolean value) Sets the has-more flag.Sets the total number of matches.Sets the candidate completion values.Sets the candidate completion values.
-
Constructor Details
-
Completion
public Completion()
-
-
Method Details
-
getValues
Candidate completion values.- Returns:
- The values list, or
nullif not set.
-
setValues
Sets the candidate completion values.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
setValues
Sets the candidate completion values.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
addValues
Appends to the candidate completion values.- Parameters:
value- The values to append.- Returns:
- This object (for method chaining).
-
addValues
Appends to the candidate completion values.- Parameters:
value- The values to append.- Returns:
- This object (for method chaining).
-
getTotal
Optional total number of matches, which may exceedgetValues()when truncated.- Returns:
- The total, or
nullif not set.
-
setTotal
Sets the total number of matches.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getHasMore
Optional flag indicating additional values exist beyondgetValues().- Returns:
- The flag, or
nullif not set.
-
setHasMore
Sets the has-more flag.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-