public static final class QueryResultBatch.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<QueryResultBatch.Builder> implements QueryResultBatchOrBuilder
A batch of results produced by a query.Protobuf type
google.datastore.v1.QueryResultBatch| Modifier and Type | Method and Description |
|---|---|
QueryResultBatch.Builder |
addAllEntityResults(java.lang.Iterable<? extends EntityResult> values)
The results for this batch.
|
QueryResultBatch.Builder |
addEntityResults(EntityResult.Builder builderForValue)
The results for this batch.
|
QueryResultBatch.Builder |
addEntityResults(EntityResult value)
The results for this batch.
|
QueryResultBatch.Builder |
addEntityResults(int index,
EntityResult.Builder builderForValue)
The results for this batch.
|
QueryResultBatch.Builder |
addEntityResults(int index,
EntityResult value)
The results for this batch.
|
EntityResult.Builder |
addEntityResultsBuilder()
The results for this batch.
|
EntityResult.Builder |
addEntityResultsBuilder(int index)
The results for this batch.
|
QueryResultBatch.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
QueryResultBatch |
build() |
QueryResultBatch |
buildPartial() |
QueryResultBatch.Builder |
clear() |
QueryResultBatch.Builder |
clearEndCursor()
A cursor that points to the position after the last result in the batch.
|
QueryResultBatch.Builder |
clearEntityResults()
The results for this batch.
|
QueryResultBatch.Builder |
clearEntityResultType()
The result type for every entity in `entity_results`.
|
QueryResultBatch.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
QueryResultBatch.Builder |
clearMoreResults()
The state of the query after the current batch.
|
QueryResultBatch.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
QueryResultBatch.Builder |
clearSkippedCursor()
A cursor that points to the position after the last skipped result.
|
QueryResultBatch.Builder |
clearSkippedResults()
The number of results skipped, typically because of an offset.
|
QueryResultBatch.Builder |
clearSnapshotVersion()
The version number of the snapshot this batch was returned from.
|
QueryResultBatch.Builder |
clone() |
QueryResultBatch |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getEndCursor()
A cursor that points to the position after the last result in the batch.
|
EntityResult |
getEntityResults(int index)
The results for this batch.
|
EntityResult.Builder |
getEntityResultsBuilder(int index)
The results for this batch.
|
java.util.List<EntityResult.Builder> |
getEntityResultsBuilderList()
The results for this batch.
|
int |
getEntityResultsCount()
The results for this batch.
|
java.util.List<EntityResult> |
getEntityResultsList()
The results for this batch.
|
EntityResultOrBuilder |
getEntityResultsOrBuilder(int index)
The results for this batch.
|
java.util.List<? extends EntityResultOrBuilder> |
getEntityResultsOrBuilderList()
The results for this batch.
|
EntityResult.ResultType |
getEntityResultType()
The result type for every entity in `entity_results`.
|
int |
getEntityResultTypeValue()
The result type for every entity in `entity_results`.
|
QueryResultBatch.MoreResultsType |
getMoreResults()
The state of the query after the current batch.
|
int |
getMoreResultsValue()
The state of the query after the current batch.
|
com.google.protobuf.ByteString |
getSkippedCursor()
A cursor that points to the position after the last skipped result.
|
int |
getSkippedResults()
The number of results skipped, typically because of an offset.
|
long |
getSnapshotVersion()
The version number of the snapshot this batch was returned from.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
QueryResultBatch.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
QueryResultBatch.Builder |
mergeFrom(com.google.protobuf.Message other) |
QueryResultBatch.Builder |
mergeFrom(QueryResultBatch other) |
QueryResultBatch.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
QueryResultBatch.Builder |
removeEntityResults(int index)
The results for this batch.
|
QueryResultBatch.Builder |
setEndCursor(com.google.protobuf.ByteString value)
A cursor that points to the position after the last result in the batch.
|
QueryResultBatch.Builder |
setEntityResults(int index,
EntityResult.Builder builderForValue)
The results for this batch.
|
QueryResultBatch.Builder |
setEntityResults(int index,
EntityResult value)
The results for this batch.
|
QueryResultBatch.Builder |
setEntityResultType(EntityResult.ResultType value)
The result type for every entity in `entity_results`.
|
QueryResultBatch.Builder |
setEntityResultTypeValue(int value)
The result type for every entity in `entity_results`.
|
QueryResultBatch.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
QueryResultBatch.Builder |
setMoreResults(QueryResultBatch.MoreResultsType value)
The state of the query after the current batch.
|
QueryResultBatch.Builder |
setMoreResultsValue(int value)
The state of the query after the current batch.
|
QueryResultBatch.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
QueryResultBatch.Builder |
setSkippedCursor(com.google.protobuf.ByteString value)
A cursor that points to the position after the last skipped result.
|
QueryResultBatch.Builder |
setSkippedResults(int value)
The number of results skipped, typically because of an offset.
|
QueryResultBatch.Builder |
setSnapshotVersion(long value)
The version number of the snapshot this batch was returned from.
|
QueryResultBatch.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResultBatch.Builder>public QueryResultBatch.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResultBatch.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResultBatch.Builder>public QueryResultBatch getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic QueryResultBatch build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic QueryResultBatch buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic QueryResultBatch.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResultBatch.Builder>public QueryResultBatch.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResultBatch.Builder>public QueryResultBatch.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResultBatch.Builder>public QueryResultBatch.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResultBatch.Builder>public QueryResultBatch.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResultBatch.Builder>public QueryResultBatch.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResultBatch.Builder>public QueryResultBatch.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<QueryResultBatch.Builder>public QueryResultBatch.Builder mergeFrom(QueryResultBatch other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResultBatch.Builder>public QueryResultBatch.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<QueryResultBatch.Builder>java.io.IOExceptionpublic int getSkippedResults()
The number of results skipped, typically because of an offset.
int32 skipped_results = 6;getSkippedResults in interface QueryResultBatchOrBuilderpublic QueryResultBatch.Builder setSkippedResults(int value)
The number of results skipped, typically because of an offset.
int32 skipped_results = 6;public QueryResultBatch.Builder clearSkippedResults()
The number of results skipped, typically because of an offset.
int32 skipped_results = 6;public com.google.protobuf.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;getSkippedCursor in interface QueryResultBatchOrBuilderpublic QueryResultBatch.Builder setSkippedCursor(com.google.protobuf.ByteString value)
A cursor that points to the position after the last skipped result. Will be set when `skipped_results` != 0.
bytes skipped_cursor = 3;public QueryResultBatch.Builder clearSkippedCursor()
A cursor that points to the position after the last skipped result. Will be set when `skipped_results` != 0.
bytes skipped_cursor = 3;public int getEntityResultTypeValue()
The result type for every entity in `entity_results`.
.google.datastore.v1.EntityResult.ResultType entity_result_type = 1;getEntityResultTypeValue in interface QueryResultBatchOrBuilderpublic QueryResultBatch.Builder setEntityResultTypeValue(int value)
The result type for every entity in `entity_results`.
.google.datastore.v1.EntityResult.ResultType entity_result_type = 1;public EntityResult.ResultType getEntityResultType()
The result type for every entity in `entity_results`.
.google.datastore.v1.EntityResult.ResultType entity_result_type = 1;getEntityResultType in interface QueryResultBatchOrBuilderpublic QueryResultBatch.Builder setEntityResultType(EntityResult.ResultType value)
The result type for every entity in `entity_results`.
.google.datastore.v1.EntityResult.ResultType entity_result_type = 1;public QueryResultBatch.Builder clearEntityResultType()
The result type for every entity in `entity_results`.
.google.datastore.v1.EntityResult.ResultType entity_result_type = 1;public java.util.List<EntityResult> getEntityResultsList()
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;getEntityResultsList in interface QueryResultBatchOrBuilderpublic int getEntityResultsCount()
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;getEntityResultsCount in interface QueryResultBatchOrBuilderpublic EntityResult getEntityResults(int index)
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;getEntityResults in interface QueryResultBatchOrBuilderpublic QueryResultBatch.Builder setEntityResults(int index, EntityResult value)
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;public QueryResultBatch.Builder setEntityResults(int index, EntityResult.Builder builderForValue)
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;public QueryResultBatch.Builder addEntityResults(EntityResult value)
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;public QueryResultBatch.Builder addEntityResults(int index, EntityResult value)
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;public QueryResultBatch.Builder addEntityResults(EntityResult.Builder builderForValue)
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;public QueryResultBatch.Builder addEntityResults(int index, EntityResult.Builder builderForValue)
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;public QueryResultBatch.Builder addAllEntityResults(java.lang.Iterable<? extends EntityResult> values)
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;public QueryResultBatch.Builder clearEntityResults()
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;public QueryResultBatch.Builder removeEntityResults(int index)
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;public EntityResult.Builder getEntityResultsBuilder(int index)
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;public EntityResultOrBuilder getEntityResultsOrBuilder(int index)
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;getEntityResultsOrBuilder in interface QueryResultBatchOrBuilderpublic java.util.List<? extends EntityResultOrBuilder> getEntityResultsOrBuilderList()
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;getEntityResultsOrBuilderList in interface QueryResultBatchOrBuilderpublic EntityResult.Builder addEntityResultsBuilder()
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;public EntityResult.Builder addEntityResultsBuilder(int index)
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;public java.util.List<EntityResult.Builder> getEntityResultsBuilderList()
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;public com.google.protobuf.ByteString getEndCursor()
A cursor that points to the position after the last result in the batch.
bytes end_cursor = 4;getEndCursor in interface QueryResultBatchOrBuilderpublic QueryResultBatch.Builder setEndCursor(com.google.protobuf.ByteString value)
A cursor that points to the position after the last result in the batch.
bytes end_cursor = 4;public QueryResultBatch.Builder clearEndCursor()
A cursor that points to the position after the last result in the batch.
bytes end_cursor = 4;public int getMoreResultsValue()
The state of the query after the current batch.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5;getMoreResultsValue in interface QueryResultBatchOrBuilderpublic QueryResultBatch.Builder setMoreResultsValue(int value)
The state of the query after the current batch.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5;public QueryResultBatch.MoreResultsType getMoreResults()
The state of the query after the current batch.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5;getMoreResults in interface QueryResultBatchOrBuilderpublic QueryResultBatch.Builder setMoreResults(QueryResultBatch.MoreResultsType value)
The state of the query after the current batch.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5;public QueryResultBatch.Builder clearMoreResults()
The state of the query after the current batch.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5;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;getSnapshotVersion in interface QueryResultBatchOrBuilderpublic QueryResultBatch.Builder setSnapshotVersion(long value)
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;public QueryResultBatch.Builder clearSnapshotVersion()
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;public final QueryResultBatch.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResultBatch.Builder>public final QueryResultBatch.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResultBatch.Builder>