Class AggregationResultBatch (2.19.2)

publicfinalclass AggregationResultBatchextendsGeneratedMessageV3implementsAggregationResultBatchOrBuilder

A batch of aggregation results produced by an aggregation query.

Protobuf type google.datastore.v1.AggregationResultBatch

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

AGGREGATION_RESULTS_FIELD_NUMBER

publicstaticfinalintAGGREGATION_RESULTS_FIELD_NUMBER
Field Value
Type Description
int

MORE_RESULTS_FIELD_NUMBER

publicstaticfinalintMORE_RESULTS_FIELD_NUMBER
Field Value
Type Description
int

READ_TIME_FIELD_NUMBER

publicstaticfinalintREAD_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticAggregationResultBatchgetDefaultInstance()
Returns
Type Description
AggregationResultBatch

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticAggregationResultBatch.BuildernewBuilder()
Returns
Type Description
AggregationResultBatch.Builder

newBuilder(AggregationResultBatch prototype)

publicstaticAggregationResultBatch.BuildernewBuilder(AggregationResultBatchprototype)
Parameter
Name Description
prototype AggregationResultBatch
Returns
Type Description
AggregationResultBatch.Builder

parseDelimitedFrom(InputStream input)

publicstaticAggregationResultBatchparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
AggregationResultBatch
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAggregationResultBatchparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationResultBatch
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticAggregationResultBatchparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
AggregationResultBatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticAggregationResultBatchparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationResultBatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticAggregationResultBatchparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
AggregationResultBatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticAggregationResultBatchparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationResultBatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticAggregationResultBatchparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AggregationResultBatch
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAggregationResultBatchparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationResultBatch
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticAggregationResultBatchparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
AggregationResultBatch
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAggregationResultBatchparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationResultBatch
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticAggregationResultBatchparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AggregationResultBatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticAggregationResultBatchparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationResultBatch
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<AggregationResultBatch>parser()
Returns
Type Description
Parser<AggregationResultBatch>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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

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.

getParserForType()

publicParser<AggregationResultBatch>getParserForType()
Returns
Type Description
Parser<AggregationResultBatch>
Overrides

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.

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

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicAggregationResultBatch.BuildernewBuilderForType()
Returns
Type Description
AggregationResultBatch.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedAggregationResultBatch.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AggregationResultBatch.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicAggregationResultBatch.BuildertoBuilder()
Returns
Type Description
AggregationResultBatch.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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.