Class AggregationResultBatch (2.19.0)

public final class AggregationResultBatch extends GeneratedMessageV3 implements AggregationResultBatchOrBuilder

A batch of aggregation results produced by an aggregation query.

Protobuf type google.datastore.v1.AggregationResultBatch

Static Fields

AGGREGATION_RESULTS_FIELD_NUMBER

public static final int AGGREGATION_RESULTS_FIELD_NUMBER
Field Value
TypeDescription
int

MORE_RESULTS_FIELD_NUMBER

public static final int MORE_RESULTS_FIELD_NUMBER
Field Value
TypeDescription
int

READ_TIME_FIELD_NUMBER

public static final int READ_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AggregationResultBatch getDefaultInstance()
Returns
TypeDescription
AggregationResultBatch

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AggregationResultBatch.Builder newBuilder()
Returns
TypeDescription
AggregationResultBatch.Builder

newBuilder(AggregationResultBatch prototype)

public static AggregationResultBatch.Builder newBuilder(AggregationResultBatch prototype)
Parameter
NameDescription
prototypeAggregationResultBatch
Returns
TypeDescription
AggregationResultBatch.Builder

parseDelimitedFrom(InputStream input)

public static AggregationResultBatch parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AggregationResultBatch
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AggregationResultBatch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AggregationResultBatch
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AggregationResultBatch parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AggregationResultBatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AggregationResultBatch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AggregationResultBatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AggregationResultBatch parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AggregationResultBatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AggregationResultBatch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AggregationResultBatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AggregationResultBatch parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AggregationResultBatch
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AggregationResultBatch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AggregationResultBatch
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AggregationResultBatch parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AggregationResultBatch
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AggregationResultBatch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AggregationResultBatch
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AggregationResultBatch parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AggregationResultBatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AggregationResultBatch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AggregationResultBatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AggregationResultBatch> parser()
Returns
TypeDescription
Parser<AggregationResultBatch>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAggregationResults(int index)

public AggregationResult getAggregationResults(int index)

The aggregation results for this batch.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AggregationResult

getAggregationResultsCount()

public int getAggregationResultsCount()

The aggregation results for this batch.

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

Returns
TypeDescription
int

getAggregationResultsList()

public List<AggregationResult> getAggregationResultsList()

The aggregation results for this batch.

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

Returns
TypeDescription
List<AggregationResult>

getAggregationResultsOrBuilder(int index)

public AggregationResultOrBuilder getAggregationResultsOrBuilder(int index)

The aggregation results for this batch.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AggregationResultOrBuilder

getAggregationResultsOrBuilderList()

public List<? extends AggregationResultOrBuilder> getAggregationResultsOrBuilderList()

The aggregation results for this batch.

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

Returns
TypeDescription
List<? extends com.google.datastore.v1.AggregationResultOrBuilder>

getDefaultInstanceForType()

public AggregationResultBatch getDefaultInstanceForType()
Returns
TypeDescription
AggregationResultBatch

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

The moreResults.

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
TypeDescription
int

The enum numeric value on the wire for moreResults.

getParserForType()

public Parser<AggregationResultBatch> getParserForType()
Returns
TypeDescription
Parser<AggregationResultBatch>
Overrides

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
TypeDescription
Timestamp

The readTime.

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
TypeDescription
TimestampOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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
TypeDescription
boolean

Whether the readTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AggregationResultBatch.Builder newBuilderForType()
Returns
TypeDescription
AggregationResultBatch.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AggregationResultBatch.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AggregationResultBatch.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AggregationResultBatch.Builder toBuilder()
Returns
TypeDescription
AggregationResultBatch.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException