Send feedback
Class GetRequest (2.0.0)
Stay organized with collections
Save and categorize content based on your preferences.
A request to list objects in an index. You can specify a number of
restrictions, such as the number of objects to return, the id of the
first object to return, whether to only return keys, etc.
GetRequest request = GetRequest.newBuilder()
.setLimit(500)
.setStartId("some-id")
.setReturningIdsOnly(true)
.build();
Inheritance
Object >
GetRequest
Static Methods
newBuilder()
public static GetRequest.Builder newBuilder()
newBuilder(GetRequest request)
public static final GetRequest.Builder newBuilder(GetRequest request)
Constructors
GetRequest(GetRequest.Builder builder)
protected GetRequest(GetRequest.Builder builder)
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Name
Description
obj
Object
Overrides
getLimit()
Returns
Type
Description
int
the maximum number of objects returned by this request
getStartId()
public String getStartId()
Returns
Type
Description
String
the Id of the first object to return
hashCode()
Returns
Type
Description
int
Overrides
isIncludeStart()
public boolean isIncludeStart()
Returns
Type
Description
boolean
whether or not the object with the start Id is returned
isReturningIdsOnly()
public Boolean isReturningIdsOnly()
Returns
Type
Description
Boolean
whether or not index schema is returned with each index
toString()
Returns
Type
Description
String
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-05-17 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?