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()
Methods
addAggregationResults(AggregationResult value)
public AggregationResultBatch.Builder addAggregationResults(AggregationResult value)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
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;
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;
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;
addAggregationResultsBuilder()
public AggregationResult.Builder addAggregationResultsBuilder()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
addAggregationResultsBuilder(int index)
public AggregationResult.Builder addAggregationResultsBuilder(int index)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Parameter |
---|
Name | Description |
index | int
|
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AggregationResultBatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AggregationResultBatch build()
buildPartial()
public AggregationResultBatch buildPartial()
clear()
public AggregationResultBatch.Builder clear()
Overrides
clearAggregationResults()
public AggregationResultBatch.Builder clearAggregationResults()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
clearField(Descriptors.FieldDescriptor field)
public AggregationResultBatch.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public AggregationResultBatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public AggregationResultBatch.Builder clone()
Overrides
getAggregationResults(int index)
public AggregationResult getAggregationResults(int index)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Parameter |
---|
Name | Description |
index | int
|
getAggregationResultsBuilder(int index)
public AggregationResult.Builder getAggregationResultsBuilder(int index)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Parameter |
---|
Name | Description |
index | int
|
getAggregationResultsBuilderList()
public List<AggregationResult.Builder> getAggregationResultsBuilderList()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
getAggregationResultsCount()
public int getAggregationResultsCount()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Returns |
---|
Type | Description |
int | |
getAggregationResultsList()
public List<AggregationResult> getAggregationResultsList()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
getAggregationResultsOrBuilder(int index)
public AggregationResultOrBuilder getAggregationResultsOrBuilder(int index)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Parameter |
---|
Name | Description |
index | int
|
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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;
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;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AggregationResultBatch other)
public AggregationResultBatch.Builder mergeFrom(AggregationResultBatch other)
public AggregationResultBatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AggregationResultBatch.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AggregationResultBatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
---|
Name | Description |
index | int
|
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public AggregationResultBatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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.
|
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;
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
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AggregationResultBatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AggregationResultBatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides