Class AggregationResultBatch.Builder (2.20.2)

publicstaticfinalclass AggregationResultBatch.BuilderextendsGeneratedMessageV3.Builder<AggregationResultBatch.Builder>implementsAggregationResultBatchOrBuilder

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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAggregationResults(AggregationResult value)

publicAggregationResultBatch.BuilderaddAggregationResults(AggregationResultvalue)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameter
Name Description
value AggregationResult
Returns
Type Description
AggregationResultBatch.Builder

addAggregationResults(AggregationResult.Builder builderForValue)

publicAggregationResultBatch.BuilderaddAggregationResults(AggregationResult.BuilderbuilderForValue)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameter
Name Description
builderForValue AggregationResult.Builder
Returns
Type Description
AggregationResultBatch.Builder

addAggregationResults(int index, AggregationResult value)

publicAggregationResultBatch.BuilderaddAggregationResults(intindex,AggregationResultvalue)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameters
Name Description
index int
value AggregationResult
Returns
Type Description
AggregationResultBatch.Builder

addAggregationResults(int index, AggregationResult.Builder builderForValue)

publicAggregationResultBatch.BuilderaddAggregationResults(intindex,AggregationResult.BuilderbuilderForValue)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameters
Name Description
index int
builderForValue AggregationResult.Builder
Returns
Type Description
AggregationResultBatch.Builder

addAggregationResultsBuilder()

publicAggregationResult.BuilderaddAggregationResultsBuilder()

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Returns
Type Description
AggregationResult.Builder

addAggregationResultsBuilder(int index)

publicAggregationResult.BuilderaddAggregationResultsBuilder(intindex)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AggregationResult.Builder

addAllAggregationResults(Iterable<? extends AggregationResult> values)

publicAggregationResultBatch.BuilderaddAllAggregationResults(Iterable<?extendsAggregationResult>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
Type Description
AggregationResultBatch.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicAggregationResultBatch.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AggregationResultBatch.Builder
Overrides

build()

publicAggregationResultBatchbuild()
Returns
Type Description
AggregationResultBatch

buildPartial()

publicAggregationResultBatchbuildPartial()
Returns
Type Description
AggregationResultBatch

clear()

publicAggregationResultBatch.Builderclear()
Returns
Type Description
AggregationResultBatch.Builder
Overrides

clearAggregationResults()

publicAggregationResultBatch.BuilderclearAggregationResults()

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Returns
Type Description
AggregationResultBatch.Builder

clearField(Descriptors.FieldDescriptor field)

publicAggregationResultBatch.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AggregationResultBatch.Builder
Overrides

clearMoreResults()

publicAggregationResultBatch.BuilderclearMoreResults()

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
AggregationResultBatch.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicAggregationResultBatch.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AggregationResultBatch.Builder
Overrides

clearReadTime()

publicAggregationResultBatch.BuilderclearReadTime()

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
AggregationResultBatch.Builder

clone()

publicAggregationResultBatch.Builderclone()
Returns
Type Description
AggregationResultBatch.Builder
Overrides

getAggregationResults(int index)

publicAggregationResultgetAggregationResults(intindex)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AggregationResult

getAggregationResultsBuilder(int index)

publicAggregationResult.BuildergetAggregationResultsBuilder(intindex)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AggregationResult.Builder

getAggregationResultsBuilderList()

publicList<AggregationResult.Builder>getAggregationResultsBuilderList()

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Returns
Type Description
List<Builder>

getAggregationResultsCount()

publicintgetAggregationResultsCount()

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Returns
Type Description
int

getAggregationResultsList()

publicList<AggregationResult>getAggregationResultsList()

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Returns
Type Description
List<AggregationResult>

getAggregationResultsOrBuilder(int index)

publicAggregationResultOrBuildergetAggregationResultsOrBuilder(intindex)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AggregationResultOrBuilder

getAggregationResultsOrBuilderList()

publicList<?extendsAggregationResultOrBuilder>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()

publicAggregationResultBatchgetDefaultInstanceForType()
Returns
Type Description
AggregationResultBatch

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMoreResults()

publicQueryResultBatch.MoreResultsTypegetMoreResults()

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
QueryResultBatch.MoreResultsType

The moreResults.

getMoreResultsValue()

publicintgetMoreResultsValue()

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()

publicTimestampgetReadTime()

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
Timestamp

The readTime.

getReadTimeBuilder()

publicTimestamp.BuildergetReadTimeBuilder()

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
Builder

getReadTimeOrBuilder()

publicTimestampOrBuildergetReadTimeOrBuilder()

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
TimestampOrBuilder

hasReadTime()

publicbooleanhasReadTime()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AggregationResultBatch other)

publicAggregationResultBatch.BuildermergeFrom(AggregationResultBatchother)
Parameter
Name Description
other AggregationResultBatch
Returns
Type Description
AggregationResultBatch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicAggregationResultBatch.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationResultBatch.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicAggregationResultBatch.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
AggregationResultBatch.Builder
Overrides

mergeReadTime(Timestamp value)

publicAggregationResultBatch.BuildermergeReadTime(Timestampvalue)

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
value Timestamp
Returns
Type Description
AggregationResultBatch.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalAggregationResultBatch.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AggregationResultBatch.Builder
Overrides

removeAggregationResults(int index)

publicAggregationResultBatch.BuilderremoveAggregationResults(intindex)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AggregationResultBatch.Builder

setAggregationResults(int index, AggregationResult value)

publicAggregationResultBatch.BuildersetAggregationResults(intindex,AggregationResultvalue)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameters
Name Description
index int
value AggregationResult
Returns
Type Description
AggregationResultBatch.Builder

setAggregationResults(int index, AggregationResult.Builder builderForValue)

publicAggregationResultBatch.BuildersetAggregationResults(intindex,AggregationResult.BuilderbuilderForValue)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameters
Name Description
index int
builderForValue AggregationResult.Builder
Returns
Type Description
AggregationResultBatch.Builder

setField(Descriptors.FieldDescriptor field, Object value)

publicAggregationResultBatch.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AggregationResultBatch.Builder
Overrides

setMoreResults(QueryResultBatch.MoreResultsType value)

publicAggregationResultBatch.BuildersetMoreResults(QueryResultBatch.MoreResultsTypevalue)

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 QueryResultBatch.MoreResultsType

The moreResults to set.

Returns
Type Description
AggregationResultBatch.Builder

This builder for chaining.

setMoreResultsValue(int value)

publicAggregationResultBatch.BuildersetMoreResultsValue(intvalue)

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
Type Description
AggregationResultBatch.Builder

This builder for chaining.

setReadTime(Timestamp value)

publicAggregationResultBatch.BuildersetReadTime(Timestampvalue)

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
value Timestamp
Returns
Type Description
AggregationResultBatch.Builder

setReadTime(Timestamp.Builder builderForValue)

publicAggregationResultBatch.BuildersetReadTime(Timestamp.BuilderbuilderForValue)

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
Type Description
AggregationResultBatch.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicAggregationResultBatch.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AggregationResultBatch.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalAggregationResultBatch.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AggregationResultBatch.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.