Class GetAutocompletionOptions
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v1.model.GetAutocompletionOptions
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class GetAutocompletionOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The getAutocompletion options.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetAutocompletionOptions.BuilderBuilder. -
Method Summary
Modifier and Type Method Description StringcollectionId()Gets the collectionId.Longcount()Gets the count.StringenvironmentId()Gets the environmentId.Stringfield()Gets the field.GetAutocompletionOptions.BuildernewBuilder()New builder.Stringprefix()Gets the prefix.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a GetAutocompletionOptions builder
-
environmentId
Gets the environmentId.The ID of the environment.
- Returns:
- the environmentId
-
collectionId
Gets the collectionId.The ID of the collection.
- Returns:
- the collectionId
-
prefix
Gets the prefix.The prefix to use for autocompletion. For example, the prefix `Ho` could autocomplete to `Hot`, `Housing`, or `How do I upgrade`. Possible completions are.
- Returns:
- the prefix
-
field
Gets the field.The field in the result documents that autocompletion suggestions are identified from.
- Returns:
- the field
-
count
Gets the count.The number of autocompletion suggestions to return.
- Returns:
- the count
-