NAME
Google::Firestore::V1beta1::Query - Compiled Protocol Buffers messages for google/firestore/v1beta1/query.proto
SYNOPSIS
use Google::Firestore::V1beta1::Query;
my $msg = Google::Firestore::V1beta1::Query::StructuredQuery->new({
select => $select,
from => $from,
where => $where,
order_by => $order_by,
});
# Read or update a field
my $val = $msg->select();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Firestore::V1beta1::Query::StructuredQuery->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/firestore/v1beta1/query.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::V1beta1::Query::StructuredQuery
A Firestore query.
Inherits from Protobuf::Message.
Accessors
$msg->select()/$msg->select($value)Type:
Message(Google::Firestore::V1beta1::Query::StructuredQuery::Projection)The projection to return.
$msg->from()/$msg->from($value)Type:
Message(Google::Firestore::V1beta1::Query::StructuredQuery::CollectionSelector)The collections to query.
$msg->where()/$msg->where($value)Type:
Message(Google::Firestore::V1beta1::Query::StructuredQuery::Filter)The filter to apply.
$msg->order_by()/$msg->order_by($value)Type:
Message(Google::Firestore::V1beta1::Query::StructuredQuery::Order)The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already specified in `order_by`, is appended to the order in field name order by default. * If an order on `__name__` is not specified, it is appended by default.Fields are appended with the same sort direction as the last order specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes `SELECT * FROM Foo ORDER BY A, __name__` * `SELECT * FROM Foo ORDER BY A DESC` becomes `SELECT * FROM Foo ORDER BY A DESC, __name__ DESC` * `SELECT * FROM Foo WHERE A > 1` becomes `SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`$msg->start_at()/$msg->start_at($value)Type:
Message(Google::Firestore::V1beta1::Query::Cursor)A starting point for the query results.
$msg->end_at()/$msg->end_at($value)Type:
Message(Google::Firestore::V1beta1::Query::Cursor)A end point for the query results.
$msg->offset()/$msg->offset($value)Type:
Int32The number of results to skip.
Applies before limit, but after all other constraints. Must be >= 0 if specified.
$msg->limit()/$msg->limit($value)Type:
Message(Google::Protobuf::Wrappers::Int32Value)The maximum number of results to return.
Applies after all other constraints. Must be >= 0 if specified.
Enum: StructuredQuery::Direction
DIRECTION_UNSPECIFIED=>0ASCENDING=>1DESCENDING=>2
Google::Firestore::V1beta1::Query::Cursor
A position in a query result set.
Inherits from Protobuf::Message.
Accessors
$msg->values()/$msg->values($value)Type:
Message(Google::Firestore::V1beta1::Document::Value)The values that represent a position, in the order they appear in the order by clause of a query.
Can contain fewer values than specified in the order by clause.
$msg->before()/$msg->before($value)Type:
BoolIf the position is just before or just after the given values, relative to the sort order defined by the query.
SEE ALSO
Protobuf, Protobuf::Message, Google::Firestore::V1beta1::Query::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.