NAME

Google::Firestore::V1::AggregationResult - Compiled Protocol Buffers messages for google/firestore/v1/aggregation_result.proto

SYNOPSIS

use Google::Firestore::V1::AggregationResult;

my $msg = Google::Firestore::V1::AggregationResult::AggregationResult->new({
    aggregate_fields => $aggregate_fields,
});

# Read or update a field
my $val = $msg->aggregate_fields();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Firestore::V1::AggregationResult::AggregationResult->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/firestore/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::Firestore::V1::AggregationResult::AggregationResult

The result of a single bucket from a Firestore aggregation query.

The keys of `aggregate_fields` are the same for all results in an aggregation query, unlike document queries which can have different fields present for each result.

Inherits from Protobuf::Message.

Accessors

  • $msg->aggregate_fields() / $msg->aggregate_fields($value)

    Type: Message (Google::Firestore::V1::AggregationResult::AggregationResult::AggregateFieldsEntry)

    The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.

    The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias] assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.

SEE ALSO

Protobuf, Protobuf::Message, Google::Firestore::V1::AggregationResult::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.