Package com.google.appengine.api.search
Class GetRequest.Builder
- java.lang.Object
-
- com.google.appengine.api.search.GetRequest.Builder
-
- Enclosing class:
- GetRequest
public static class GetRequest.Builder extends Object
The builder ofGetRequests.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetRequestbuild()GetRequest.BuildersetIncludeStart(boolean includeStart)Sets whether or not to include the object whose ID is specified via thesetStartId(String)method.GetRequest.BuildersetLimit(Integer limit)Sets the maximum number of objects to return.GetRequest.BuildersetReturningIdsOnly(boolean returningIdsOnly)Sets whether just objects containing just their key are returned, or whether the complete objects are returned.GetRequest.BuildersetStartId(String startId)Sets the Id of the first object to return.
-
-
-
Method Detail
-
setStartId
public GetRequest.Builder setStartId(String startId)
Sets the Id of the first object to return. You may exclude this object by using thesetIncludeStart(boolean)method.- Parameters:
startId- the Id of the first object to return- Returns:
- this builder
- Throws:
IllegalArgumentException- if invalid object Id is given
-
setIncludeStart
public GetRequest.Builder setIncludeStart(boolean includeStart)
Sets whether or not to include the object whose ID is specified via thesetStartId(String)method.- Parameters:
includeStart- whether or not to return the start index- Returns:
- this builder
-
setLimit
public GetRequest.Builder setLimit(Integer limit)
Sets the maximum number of objects to return.- Parameters:
limit- the maximum number of objects to return- Returns:
- this builder
- Throws:
IllegalArgumentException- if negative or too large limit is given
-
setReturningIdsOnly
public GetRequest.Builder setReturningIdsOnly(boolean returningIdsOnly)
Sets whether just objects containing just their key are returned, or whether the complete objects are returned.- Parameters:
returningIdsOnly- whether to only return object keys- Returns:
- this builder
-
build
public GetRequest build()
- Returns:
- builds and returns a brand new instance of
a
GetRequestusing values set on this builder
-
-