NAME

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

SYNOPSIS

use Google::Firestore::V1::QueryProfile;

my $msg = Google::Firestore::V1::QueryProfile::ExplainOptions->new({
    analyze => $analyze,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/firestore/v1/query_profile.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::QueryProfile::ExplainOptions

Explain options for the query.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Optional. Whether to execute this query.

    When false (the default), the query will be planned, returning only metrics from the planning stages.

    When true, the query will be planned and executed, returning the full query results along with both planning and execution stage metrics.

Google::Firestore::V1::QueryProfile::ExplainMetrics

Explain metrics for the query.

Inherits from Protobuf::Message.

Accessors

Google::Firestore::V1::QueryProfile::PlanSummary

Planning phase information for the query.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Struct::Struct)

    The indexes selected for the query. For example: [ {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"}, {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"} ]

Google::Firestore::V1::QueryProfile::ExecutionStats

Execution statistics for the query.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int64

    Total number of results returned, including documents, projections, aggregation results, keys.

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

    Type: Message (Google::Protobuf::Duration::Duration)

    Total time to execute the query in the backend.

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

    Type: Int64

    Total billable read operations.

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

    Type: Message (Google::Protobuf::Struct::Struct)

    Debugging statistics from the execution of the query. Note that the debugging stats are subject to change as Firestore evolves. It could include: { "indexes_entries_scanned": "1000", "documents_scanned": "20", "billing_details" : { "documents_billable": "20", "index_entries_billable": "1000", "min_query_cost": "0" } }

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.