public abstract class SearchRequest extends java.lang.Object implements ErrorsHolder
Modifier and Type | Method and Description |
---|---|
static SearchRequest |
create(com.google.gson.JsonElement request,
java.util.List<Error> errors)
Method used internally to create a SearchRequest object and NOT
meant for client use.
|
static SearchRequest |
of(com.google.gson.JsonElement request)
Create a SearchRequest instance from the passed JsonElement.
|
static SearchRequest |
of(java.util.Map request)
Create a SearchRequest instance from the passed Map.
|
abstract com.google.gson.JsonElement |
request() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
errors
public abstract com.google.gson.JsonElement request()
public static SearchRequest of(com.google.gson.JsonElement request)
request
- JsonElement representing SearchRequest.public static SearchRequest of(java.util.Map request)
request
- Map representing SearchRequest.public static SearchRequest create(com.google.gson.JsonElement request, java.util.List<Error> errors)
request
- possible JsonElement representing SearchRequest.errors
- possible list of Error's.