public static final class AggregationResultBatch.Builder extends GeneratedMessageV3.Builder<AggregationResultBatch.Builder> implements AggregationResultBatchOrBuilder
A batch of aggregation results produced by an aggregation query.
Protobuf type google.datastore.v1.AggregationResultBatch
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAggregationResults(AggregationResult value)
public AggregationResultBatch.Builder addAggregationResults(AggregationResult value)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Parameter
Returns
addAggregationResults(AggregationResult.Builder builderForValue)
public AggregationResultBatch.Builder addAggregationResults(AggregationResult.Builder builderForValue)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Parameter
Returns
addAggregationResults(int index, AggregationResult value)
public AggregationResultBatch.Builder addAggregationResults(int index, AggregationResult value)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Parameters
Returns
addAggregationResults(int index, AggregationResult.Builder builderForValue)
public AggregationResultBatch.Builder addAggregationResults(int index, AggregationResult.Builder builderForValue)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Parameters
Returns
addAggregationResultsBuilder()
public AggregationResult.Builder addAggregationResultsBuilder()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Returns
addAggregationResultsBuilder(int index)
public AggregationResult.Builder addAggregationResultsBuilder(int index)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Parameter
Returns
addAllAggregationResults(Iterable<? extends AggregationResult> values)
public AggregationResultBatch.Builder addAllAggregationResults(Iterable<? extends AggregationResult> values)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.datastore.v1.AggregationResult>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AggregationResultBatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AggregationResultBatch build()
Returns
buildPartial()
public AggregationResultBatch buildPartial()
Returns
clear()
public AggregationResultBatch.Builder clear()
Returns
Overrides
clearAggregationResults()
public AggregationResultBatch.Builder clearAggregationResults()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public AggregationResultBatch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMoreResults()
public AggregationResultBatch.Builder clearMoreResults()
The state of the query after the current batch.
Only COUNT(*) aggregations are supported in the initial launch. Therefore,
expected result type is limited to NO_MORE_RESULTS
.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public AggregationResultBatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearReadTime()
public AggregationResultBatch.Builder clearReadTime()
Read timestamp this batch was returned from.
In a single transaction, subsequent query result batches for the same query
can have a greater timestamp. Each batch's read timestamp
is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3;
Returns
clone()
public AggregationResultBatch.Builder clone()
Returns
Overrides
getAggregationResults(int index)
public AggregationResult getAggregationResults(int index)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Parameter
Returns
getAggregationResultsBuilder(int index)
public AggregationResult.Builder getAggregationResultsBuilder(int index)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Parameter
Returns
getAggregationResultsBuilderList()
public List<AggregationResult.Builder> getAggregationResultsBuilderList()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Returns
getAggregationResultsCount()
public int getAggregationResultsCount()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Returns
getAggregationResultsList()
public List<AggregationResult> getAggregationResultsList()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Returns
getAggregationResultsOrBuilder(int index)
public AggregationResultOrBuilder getAggregationResultsOrBuilder(int index)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Parameter
Returns
getAggregationResultsOrBuilderList()
public List<? extends AggregationResultOrBuilder> getAggregationResultsOrBuilderList()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Returns
Type | Description |
List<? extends com.google.datastore.v1.AggregationResultOrBuilder> | |
getDefaultInstanceForType()
public AggregationResultBatch getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMoreResults()
public QueryResultBatch.MoreResultsType getMoreResults()
The state of the query after the current batch.
Only COUNT(*) aggregations are supported in the initial launch. Therefore,
expected result type is limited to NO_MORE_RESULTS
.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;
Returns
getMoreResultsValue()
public int getMoreResultsValue()
The state of the query after the current batch.
Only COUNT(*) aggregations are supported in the initial launch. Therefore,
expected result type is limited to NO_MORE_RESULTS
.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for moreResults.
|
getReadTime()
public Timestamp getReadTime()
Read timestamp this batch was returned from.
In a single transaction, subsequent query result batches for the same query
can have a greater timestamp. Each batch's read timestamp
is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3;
Returns
getReadTimeBuilder()
public Timestamp.Builder getReadTimeBuilder()
Read timestamp this batch was returned from.
In a single transaction, subsequent query result batches for the same query
can have a greater timestamp. Each batch's read timestamp
is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3;
Returns
getReadTimeOrBuilder()
public TimestampOrBuilder getReadTimeOrBuilder()
Read timestamp this batch was returned from.
In a single transaction, subsequent query result batches for the same query
can have a greater timestamp. Each batch's read timestamp
is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3;
Returns
hasReadTime()
public boolean hasReadTime()
Read timestamp this batch was returned from.
In a single transaction, subsequent query result batches for the same query
can have a greater timestamp. Each batch's read timestamp
is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3;
Returns
Type | Description |
boolean | Whether the readTime field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AggregationResultBatch other)
public AggregationResultBatch.Builder mergeFrom(AggregationResultBatch other)
Parameter
Returns
public AggregationResultBatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AggregationResultBatch.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeReadTime(Timestamp value)
public AggregationResultBatch.Builder mergeReadTime(Timestamp value)
Read timestamp this batch was returned from.
In a single transaction, subsequent query result batches for the same query
can have a greater timestamp. Each batch's read timestamp
is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AggregationResultBatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeAggregationResults(int index)
public AggregationResultBatch.Builder removeAggregationResults(int index)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Parameter
Returns
setAggregationResults(int index, AggregationResult value)
public AggregationResultBatch.Builder setAggregationResults(int index, AggregationResult value)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Parameters
Returns
setAggregationResults(int index, AggregationResult.Builder builderForValue)
public AggregationResultBatch.Builder setAggregationResults(int index, AggregationResult.Builder builderForValue)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AggregationResultBatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMoreResults(QueryResultBatch.MoreResultsType value)
public AggregationResultBatch.Builder setMoreResults(QueryResultBatch.MoreResultsType value)
The state of the query after the current batch.
Only COUNT(*) aggregations are supported in the initial launch. Therefore,
expected result type is limited to NO_MORE_RESULTS
.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;
Parameter
Returns
setMoreResultsValue(int value)
public AggregationResultBatch.Builder setMoreResultsValue(int value)
The state of the query after the current batch.
Only COUNT(*) aggregations are supported in the initial launch. Therefore,
expected result type is limited to NO_MORE_RESULTS
.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;
Parameter
Name | Description |
value | int
The enum numeric value on the wire for moreResults to set.
|
Returns
setReadTime(Timestamp value)
public AggregationResultBatch.Builder setReadTime(Timestamp value)
Read timestamp this batch was returned from.
In a single transaction, subsequent query result batches for the same query
can have a greater timestamp. Each batch's read timestamp
is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3;
Parameter
Returns
setReadTime(Timestamp.Builder builderForValue)
public AggregationResultBatch.Builder setReadTime(Timestamp.Builder builderForValue)
Read timestamp this batch was returned from.
In a single transaction, subsequent query result batches for the same query
can have a greater timestamp. Each batch's read timestamp
is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AggregationResultBatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AggregationResultBatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides