public final class QueryResultBatch extends GeneratedMessageV3 implements QueryResultBatchOrBuilder
A batch of results produced by a query.
Protobuf type google.datastore.v1.QueryResultBatch
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > QueryResultBatchImplements
QueryResultBatchOrBuilderStatic Fields
END_CURSOR_FIELD_NUMBER
public static final int END_CURSOR_FIELD_NUMBER
Type | Description |
int |
ENTITY_RESULTS_FIELD_NUMBER
public static final int ENTITY_RESULTS_FIELD_NUMBER
Type | Description |
int |
ENTITY_RESULT_TYPE_FIELD_NUMBER
public static final int ENTITY_RESULT_TYPE_FIELD_NUMBER
Type | Description |
int |
MORE_RESULTS_FIELD_NUMBER
public static final int MORE_RESULTS_FIELD_NUMBER
Type | Description |
int |
SKIPPED_CURSOR_FIELD_NUMBER
public static final int SKIPPED_CURSOR_FIELD_NUMBER
Type | Description |
int |
SKIPPED_RESULTS_FIELD_NUMBER
public static final int SKIPPED_RESULTS_FIELD_NUMBER
Type | Description |
int |
SNAPSHOT_VERSION_FIELD_NUMBER
public static final int SNAPSHOT_VERSION_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static QueryResultBatch getDefaultInstance()
Type | Description |
QueryResultBatch |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static QueryResultBatch.Builder newBuilder()
Type | Description |
QueryResultBatch.Builder |
newBuilder(QueryResultBatch prototype)
public static QueryResultBatch.Builder newBuilder(QueryResultBatch prototype)
Name | Description |
prototype | QueryResultBatch |
Type | Description |
QueryResultBatch.Builder |
parseDelimitedFrom(InputStream input)
public static QueryResultBatch parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
QueryResultBatch |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static QueryResultBatch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
QueryResultBatch |
Type | Description |
IOException |
parseFrom(byte[] data)
public static QueryResultBatch parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
QueryResultBatch |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static QueryResultBatch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
QueryResultBatch |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static QueryResultBatch parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
QueryResultBatch |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static QueryResultBatch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
QueryResultBatch |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static QueryResultBatch parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
QueryResultBatch |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static QueryResultBatch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
QueryResultBatch |
Type | Description |
IOException |
parseFrom(InputStream input)
public static QueryResultBatch parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
QueryResultBatch |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static QueryResultBatch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
QueryResultBatch |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static QueryResultBatch parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
QueryResultBatch |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static QueryResultBatch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
QueryResultBatch |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<QueryResultBatch> parser()
Type | Description |
Parser<QueryResultBatch> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public QueryResultBatch getDefaultInstanceForType()
Type | Description |
QueryResultBatch |
getEndCursor()
public ByteString getEndCursor()
A cursor that points to the position after the last result in the batch.
bytes end_cursor = 4;
Type | Description |
ByteString | The endCursor. |
getEntityResultType()
public EntityResult.ResultType getEntityResultType()
The result type for every entity in entity_results
.
.google.datastore.v1.EntityResult.ResultType entity_result_type = 1;
Type | Description |
EntityResult.ResultType | The entityResultType. |
getEntityResultTypeValue()
public int getEntityResultTypeValue()
The result type for every entity in entity_results
.
.google.datastore.v1.EntityResult.ResultType entity_result_type = 1;
Type | Description |
int | The enum numeric value on the wire for entityResultType. |
getEntityResults(int index)
public EntityResult getEntityResults(int index)
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;
Name | Description |
index | int |
Type | Description |
EntityResult |
getEntityResultsCount()
public int getEntityResultsCount()
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;
Type | Description |
int |
getEntityResultsList()
public List<EntityResult> getEntityResultsList()
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;
Type | Description |
List<EntityResult> |
getEntityResultsOrBuilder(int index)
public EntityResultOrBuilder getEntityResultsOrBuilder(int index)
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;
Name | Description |
index | int |
Type | Description |
EntityResultOrBuilder |
getEntityResultsOrBuilderList()
public List<? extends EntityResultOrBuilder> getEntityResultsOrBuilderList()
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;
Type | Description |
List<? extends com.google.datastore.v1.EntityResultOrBuilder> |
getMoreResults()
public QueryResultBatch.MoreResultsType getMoreResults()
The state of the query after the current batch.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5;
Type | Description |
QueryResultBatch.MoreResultsType | The moreResults. |
getMoreResultsValue()
public int getMoreResultsValue()
The state of the query after the current batch.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5;
Type | Description |
int | The enum numeric value on the wire for moreResults. |
getParserForType()
public Parser<QueryResultBatch> getParserForType()
Type | Description |
Parser<QueryResultBatch> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getSkippedCursor()
public ByteString getSkippedCursor()
A cursor that points to the position after the last skipped result.
Will be set when skipped_results
!= 0.
bytes skipped_cursor = 3;
Type | Description |
ByteString | The skippedCursor. |
getSkippedResults()
public int getSkippedResults()
The number of results skipped, typically because of an offset.
int32 skipped_results = 6;
Type | Description |
int | The skippedResults. |
getSnapshotVersion()
public long getSnapshotVersion()
The version number of the snapshot this batch was returned from.
This applies to the range of results from the query's start_cursor
(or
the beginning of the query if no cursor was given) to this batch's
end_cursor
(not the query's end_cursor
).
In a single transaction, subsequent query result batches for the same query
can have a greater snapshot version number. Each batch's snapshot version
is valid for all preceding batches.
The value will be zero for eventually consistent queries.
int64 snapshot_version = 7;
Type | Description |
long | The snapshotVersion. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public QueryResultBatch.Builder newBuilderForType()
Type | Description |
QueryResultBatch.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected QueryResultBatch.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
QueryResultBatch.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public QueryResultBatch.Builder toBuilder()
Type | Description |
QueryResultBatch.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |