NAME
Google::Datastore::V1::AggregationResult - Compiled Protocol Buffers messages for google/datastore/v1/aggregation_result.proto
SYNOPSIS
use Google::Datastore::V1::AggregationResult;
my $msg = Google::Datastore::V1::AggregationResult::AggregationResult->new({
aggregate_properties => $aggregate_properties,
});
# Read or update a field
my $val = $msg->aggregate_properties();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Datastore::V1::AggregationResult::AggregationResult->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/datastore/v1/aggregation_result.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Datastore::V1::AggregationResult::AggregationResult
The result of a single bucket from a Datastore aggregation query.
The keys of `aggregate_properties` are the same for all results in an aggregation query, unlike entity queries which can have different fields present for each result.
Inherits from Protobuf::Message.
Accessors
$msg->aggregate_properties()/$msg->aggregate_properties($value)Type:
Message(Google::Datastore::V1::AggregationResult::AggregationResult::AggregatePropertiesEntry)The result of the aggregation functions, ex: `COUNT(*) AS total_entities`.
The key is the [alias][google.datastore.v1.AggregationQuery.Aggregation.alias] assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.
Google::Datastore::V1::AggregationResult::AggregationResultBatch
A batch of aggregation results produced by an aggregation query.
Inherits from Protobuf::Message.
Accessors
$msg->aggregation_results()/$msg->aggregation_results($value)Type:
Message(Google::Datastore::V1::AggregationResult::AggregationResult)The aggregation results for this batch.
$msg->more_results()/$msg->more_results($value)Type:
Enum(Google::Datastore::V1::QueryResultBatch::MoreResultsType)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`.
$msg->read_time()/$msg->read_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)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.
SEE ALSO
Protobuf, Protobuf::Message, Google::Datastore::V1::AggregationResult::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.