Reference documentation and code samples for the Cloud Firestore V1 API class Google::Cloud::Firestore::V1::StructuredQuery::Order.
An order on a field.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#direction
def direction() -> ::Google::Cloud::Firestore::V1::StructuredQuery::Direction
Returns
-
(::Google::Cloud::Firestore::V1::StructuredQuery::Direction) — The direction to order by. Defaults to
ASCENDING
.
#direction=
def direction=(value) -> ::Google::Cloud::Firestore::V1::StructuredQuery::Direction
Parameter
-
value (::Google::Cloud::Firestore::V1::StructuredQuery::Direction) — The direction to order by. Defaults to
ASCENDING
.
Returns
-
(::Google::Cloud::Firestore::V1::StructuredQuery::Direction) — The direction to order by. Defaults to
ASCENDING
.
#field
def field() -> ::Google::Cloud::Firestore::V1::StructuredQuery::FieldReference
Returns
- (::Google::Cloud::Firestore::V1::StructuredQuery::FieldReference) — The field to order by.
#field=
def field=(value) -> ::Google::Cloud::Firestore::V1::StructuredQuery::FieldReference
Parameter
- value (::Google::Cloud::Firestore::V1::StructuredQuery::FieldReference) — The field to order by.
Returns
- (::Google::Cloud::Firestore::V1::StructuredQuery::FieldReference) — The field to order by.