Class GetRequest (5.0.3)
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
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 2026-06-03 UTC.
[null,null,["Last updated 2026-06-03 UTC."],[],[]]