public static final class QueryResultBatch.Builder extends 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(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(Descriptors.FieldDescriptor field) |
QueryResultBatch.Builder |
clearMoreResults()
The state of the query after the current batch.
|
QueryResultBatch.Builder |
clearOneof(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 Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
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.
|
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
QueryResultBatch.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
QueryResultBatch.Builder |
mergeFrom(Message other) |
QueryResultBatch.Builder |
mergeFrom(QueryResultBatch other) |
QueryResultBatch.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
QueryResultBatch.Builder |
removeEntityResults(int index)
The results for this batch.
|
QueryResultBatch.Builder |
setEndCursor(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(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(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
QueryResultBatch.Builder |
setSkippedCursor(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(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<QueryResultBatch.Builder>
public QueryResultBatch.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<QueryResultBatch.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<QueryResultBatch.Builder>
public QueryResultBatch getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public QueryResultBatch build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public QueryResultBatch buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public QueryResultBatch.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<QueryResultBatch.Builder>
public QueryResultBatch.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<QueryResultBatch.Builder>
public QueryResultBatch.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<QueryResultBatch.Builder>
public QueryResultBatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<QueryResultBatch.Builder>
public QueryResultBatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<QueryResultBatch.Builder>
public QueryResultBatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<QueryResultBatch.Builder>
public QueryResultBatch.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<QueryResultBatch.Builder>
public QueryResultBatch.Builder mergeFrom(QueryResultBatch other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<QueryResultBatch.Builder>
public QueryResultBatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<QueryResultBatch.Builder>
java.io.IOException
public int getSkippedResults()
The number of results skipped, typically because of an offset.
int32 skipped_results = 6;
getSkippedResults
in interface QueryResultBatchOrBuilder
public 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 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 QueryResultBatchOrBuilder
public QueryResultBatch.Builder setSkippedCursor(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 QueryResultBatchOrBuilder
public 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 QueryResultBatchOrBuilder
public 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 QueryResultBatchOrBuilder
public int getEntityResultsCount()
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;
getEntityResultsCount
in interface QueryResultBatchOrBuilder
public EntityResult getEntityResults(int index)
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;
getEntityResults
in interface QueryResultBatchOrBuilder
public 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 QueryResultBatchOrBuilder
public java.util.List<? extends EntityResultOrBuilder> getEntityResultsOrBuilderList()
The results for this batch.
repeated .google.datastore.v1.EntityResult entity_results = 2;
getEntityResultsOrBuilderList
in interface QueryResultBatchOrBuilder
public 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 ByteString getEndCursor()
A cursor that points to the position after the last result in the batch.
bytes end_cursor = 4;
getEndCursor
in interface QueryResultBatchOrBuilder
public QueryResultBatch.Builder setEndCursor(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 QueryResultBatchOrBuilder
public 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 QueryResultBatchOrBuilder
public 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 QueryResultBatchOrBuilder
public 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(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<QueryResultBatch.Builder>
public final QueryResultBatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<QueryResultBatch.Builder>