> Documentation index: https://firebase.google.com/docs/reference/cpp/namespace/firebase/llms.txt

# firebase::firestore

Cloud [Firestore](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/firestore.md.txt#classfirebase_1_1firestore_1_1_firestore) API.

## Summary

Cloud [Firestore](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/firestore.md.txt#classfirebase_1_1firestore_1_1_firestore) is a flexible, scalable database for mobile, web, and server development from Firebase and Google Cloud Platform.

| ### Enumerations ||
|---|---|
| `AggregateSource{ kServer }` | enumThe sources from which [AggregateQuery::Get](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/aggregate-query.md.txt#classfirebase_1_1firestore_1_1_aggregate_query_1a27c07d290606716096491dd95eb40bb5) can retrieve its results. |
| `Error{ kErrorOk = 0, kErrorCancelled = 1, kErrorUnknown = 2, kErrorInvalidArgument = 3, kErrorDeadlineExceeded = 4, kErrorNotFound = 5, kErrorAlreadyExists = 6, kErrorPermissionDenied = 7, kErrorResourceExhausted = 8, kErrorFailedPrecondition = 9, kErrorAborted = 10, kErrorOutOfRange = 11, kErrorUnimplemented = 12, kErrorInternal = 13, kErrorUnavailable = 14, kErrorDataLoss = 15, kErrorUnauthenticated = 16 }` | enumError codes used by Cloud [Firestore](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/firestore.md.txt#classfirebase_1_1firestore_1_1_firestore). |
| `MetadataChanges{ kExclude, kInclude }` | enumIndicates whether metadata-only changes (that is, [DocumentSnapshot::metadata()](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/document-snapshot.md.txt#classfirebase_1_1firestore_1_1_document_snapshot_1a6e8881817cf1fdd48fe5603c74fe9aae) or [QuerySnapshot::metadata()](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/query-snapshot.md.txt#classfirebase_1_1firestore_1_1_query_snapshot_1a5dd7c1215e4f11ef4a560190843786cc) changed) should trigger snapshot events. |
| `Source{ kDefault, kServer, kCache }` | enumConfigures the behavior of [DocumentReference::Get()](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/document-reference.md.txt#classfirebase_1_1firestore_1_1_document_reference_1a7c1711d91dd8e025642bb1bc793dc6c8) and [Query::Get()](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/query.md.txt#classfirebase_1_1firestore_1_1_query_1a3bf794938d8680d31b799c3f58664375). |

| ### Typedefs ||
|---|---|
| `MapFieldPathValue` | using `std::unordered_map< FieldPath, FieldValue >` A map of `FieldValue`s indexed by field paths. |
| `MapFieldValue` | using `std::unordered_map< std::string, FieldValue >` A map of `FieldValue`s indexed by stringified field paths. |

| ### Functions ||
|---|---|
| `operator!=(const SnapshotMetadata & lhs, const SnapshotMetadata & rhs)` | `bool` Checks `lhs` and `rhs` for inequality. |
| `operator!=(const QuerySnapshot & lhs, const QuerySnapshot & rhs)` | `bool` Checks `lhs` and `rhs` for inequality. |
| `operator!=(const Filter & lhs, const Filter & rhs)` | `bool` Checks `lhs` and `rhs` for inequality. |
| `operator!=(const TransactionOptions & lhs, const TransactionOptions & rhs)` | `bool` Compares two `TransactionOptions` objects for inequality. |
| `operator!=(const SetOptions & lhs, const SetOptions & rhs)` | `bool` Checks `lhs` and `rhs` for inequality. |
| `operator!=(const Settings & lhs, const Settings & rhs)` | `bool` Checks `lhs` and `rhs` for inequality. |
| `operator!=(const AggregateQuerySnapshot & lhs, const AggregateQuerySnapshot & rhs)` | `bool` Checks `lhs` and `rhs` for inequality. |
| `operator!=(const FieldValue & lhs, const FieldValue & rhs)` | `bool` Checks `lhs` and `rhs` for inequality. |
| `operator!=(const DocumentSnapshot & lhs, const DocumentSnapshot & rhs)` | `bool` Checks `lhs` and `rhs` for inequality. |
| `operator!=(const DocumentReference & lhs, const DocumentReference & rhs)` | `bool` Checks `lhs` and `rhs` for inequality. |
| `operator!=(const LoadBundleTaskProgress & lhs, const LoadBundleTaskProgress & rhs)` | `bool` [LoadBundleTaskProgress](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/load-bundle-task-progress.md.txt#classfirebase_1_1firestore_1_1_load_bundle_task_progress) != comparison operator. |
| `operator!=(const GeoPoint & lhs, const GeoPoint & rhs)` | `bool` Checks `lhs` and `rhs` for inequality. |
| `operator!=(const AggregateQuery & lhs, const AggregateQuery & rhs)` | `bool` Checks `lhs` and `rhs` for inequality. |
| `operator!=(const Query & lhs, const Query & rhs)` | `bool` Checks `lhs` and `rhs` for inequality. |
| `operator!=(const DocumentChange & lhs, const DocumentChange & rhs)` | `bool` Checks `lhs` and `rhs` for inequality. |
| `operator<(const GeoPoint & lhs, const GeoPoint & rhs)` | `bool` Checks whether `lhs` and `rhs` are in ascending order. |
| `operator<=(const GeoPoint & lhs, const GeoPoint & rhs)` | `bool` Checks whether `lhs` and `rhs` are in non-descending order. |
| `operator==(const SnapshotMetadata & lhs, const SnapshotMetadata & rhs)` | `bool` Checks `lhs` and `rhs` for equality. |
| `operator==(const QuerySnapshot & lhs, const QuerySnapshot & rhs)` | `bool` Checks `lhs` and `rhs` for equality. |
| `operator==(const Filter & lhs, const Filter & rhs)` | `bool` Checks `lhs` and `rhs` for equality. |
| `operator==(const TransactionOptions &, const TransactionOptions &)` | `bool` Compares two `TransactionOptions` objects for equality. |
| `operator==(const SetOptions & lhs, const SetOptions & rhs)` | `bool` Checks `lhs` and `rhs` for equality. |
| `operator==(const Settings & lhs, const Settings & rhs)` | `bool` Checks `lhs` and `rhs` for equality. |
| `operator==(const AggregateQuerySnapshot & lhs, const AggregateQuerySnapshot & rhs)` | `bool` Checks `lhs` and `rhs` for equality. |
| `operator==(const FieldValue & lhs, const FieldValue & rhs)` | `bool` Checks `lhs` and `rhs` for equality. |
| `operator==(const DocumentSnapshot & lhs, const DocumentSnapshot & rhs)` | `bool` Checks `lhs` and `rhs` for equality. |
| `operator==(const DocumentReference & lhs, const DocumentReference & rhs)` | `bool` Checks `lhs` and `rhs` for equality. |
| `operator==(const LoadBundleTaskProgress & lhs, const LoadBundleTaskProgress & rhs)` | `bool` [LoadBundleTaskProgress](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/load-bundle-task-progress.md.txt#classfirebase_1_1firestore_1_1_load_bundle_task_progress) == comparison operator. |
| `operator==(const GeoPoint & lhs, const GeoPoint & rhs)` | `bool` Checks `lhs` and `rhs` for equality. |
| `operator==(const AggregateQuery & lhs, const AggregateQuery & rhs)` | `bool` Checks `lhs` and `rhs` for equality. |
| `operator==(const Query & lhs, const Query & rhs)` | `bool` Checks `lhs` and `rhs` for equality. |
| `operator==(const DocumentChange & lhs, const DocumentChange & rhs)` | `bool` Checks `lhs` and `rhs` for equality. |
| `operator>(const GeoPoint & lhs, const GeoPoint & rhs)` | `bool` Checks whether `lhs` and `rhs` are in descending order. |
| `operator>=(const GeoPoint & lhs, const GeoPoint & rhs)` | `bool` Checks whether `lhs` and `rhs` are in non-ascending order. |

| ### Classes ||
|---|---|
| [firebase::firestore::AggregateQuery](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/aggregate-query.md.txt) | A query that calculates aggregations over an underlying query. |
| [firebase::firestore::AggregateQuerySnapshot](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/aggregate-query-snapshot.md.txt) | The results of executing an [AggregateQuery](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/aggregate-query.md.txt#classfirebase_1_1firestore_1_1_aggregate_query). |
| [firebase::firestore::CollectionReference](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/collection-reference.md.txt) | A [CollectionReference](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/collection-reference.md.txt#classfirebase_1_1firestore_1_1_collection_reference) can be used for adding documents, getting document references, and querying for documents (using the methods inherited from `Query`). |
| [firebase::firestore::DocumentChange](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/document-change.md.txt) | A [DocumentChange](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/document-change.md.txt#classfirebase_1_1firestore_1_1_document_change) represents a change to the documents matching a query. |
| [firebase::firestore::DocumentReference](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/document-reference.md.txt) | A [DocumentReference](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/document-reference.md.txt#classfirebase_1_1firestore_1_1_document_reference) refers to a document location in a [Firestore](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/firestore.md.txt#classfirebase_1_1firestore_1_1_firestore) database and can be used to write, read, or listen to the location. |
| [firebase::firestore::DocumentSnapshot](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/document-snapshot.md.txt) | A [DocumentSnapshot](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/document-snapshot.md.txt#classfirebase_1_1firestore_1_1_document_snapshot) contains data read from a document in your [Firestore](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/firestore.md.txt#classfirebase_1_1firestore_1_1_firestore) database. |
| [firebase::firestore::FieldPath](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/field-path.md.txt) | A [FieldPath](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/field-path.md.txt#classfirebase_1_1firestore_1_1_field_path) refers to a field in a document. |
| [firebase::firestore::FieldValue](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/field-value.md.txt) | A field value represents variant datatypes as stored by [Firestore](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/firestore.md.txt#classfirebase_1_1firestore_1_1_firestore). |
| [firebase::firestore::Filter](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/filter.md.txt) | A [Filter](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/filter.md.txt#classfirebase_1_1firestore_1_1_filter) represents a restriction on one or more field values and can be used to refine the results of a [Query](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/query.md.txt#classfirebase_1_1firestore_1_1_query). |
| [firebase::firestore::Firestore](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/firestore.md.txt) | Entry point for the Firebase [Firestore](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/firestore.md.txt#classfirebase_1_1firestore_1_1_firestore) C++ SDK. |
| [firebase::firestore::GeoPoint](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/geo-point.md.txt) | An immutable object representing a geographical point in [Firestore](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/firestore.md.txt#classfirebase_1_1firestore_1_1_firestore). |
| [firebase::firestore::ListenerRegistration](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/listener-registration.md.txt) | Represents a listener that can be removed by calling [Remove()](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/listener-registration.md.txt#classfirebase_1_1firestore_1_1_listener_registration_1acb1a46cf74c63cd376252babe8dcc018). |
| [firebase::firestore::LoadBundleTaskProgress](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/load-bundle-task-progress.md.txt) | Represents a progress update or the final state from loading bundles. |
| [firebase::firestore::Query](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/query.md.txt) | A [Query](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/query.md.txt#classfirebase_1_1firestore_1_1_query) which you can read or listen to. |
| [firebase::firestore::QuerySnapshot](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/query-snapshot.md.txt) | A [QuerySnapshot](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/query-snapshot.md.txt#classfirebase_1_1firestore_1_1_query_snapshot) contains zero or more [DocumentSnapshot](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/document-snapshot.md.txt#classfirebase_1_1firestore_1_1_document_snapshot) objects. |
| [firebase::firestore::SetOptions](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/set-options.md.txt) | An options object that configures the behavior of Set() calls. |
| [firebase::firestore::Settings](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/settings.md.txt) | [Settings](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/settings.md.txt#classfirebase_1_1firestore_1_1_settings) used to configure a [Firestore](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/firestore.md.txt#classfirebase_1_1firestore_1_1_firestore) instance. |
| [firebase::firestore::SnapshotMetadata](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/snapshot-metadata.md.txt) | Metadata about a snapshot, describing the state of the snapshot. |
| [firebase::firestore::Transaction](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/transaction.md.txt) | [Transaction](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/transaction.md.txt#classfirebase_1_1firestore_1_1_transaction) provides methods to read and write data within a transaction. |
| [firebase::firestore::TransactionOptions](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/transaction-options.md.txt) | Options to customize transaction behavior for `Firestore.runTransaction()`. |
| [firebase::firestore::WriteBatch](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/write-batch.md.txt) | A write batch is used to perform multiple writes as a single atomic unit. |

| ### Namespaces ||
|---|---|
| [firebase::firestore::csharp](https://firebase.google.com/docs/reference/cpp/namespace/firebase/firestore/csharp) |   |
| [firebase::firestore::model](https://firebase.google.com/docs/reference/cpp/namespace/firebase/firestore/model) |   |
| [firebase::firestore::util](https://firebase.google.com/docs/reference/cpp/namespace/firebase/firestore/util) |   |

## Enumerations

### AggregateSource

```c++
 AggregateSource
```
The sources from which [AggregateQuery::Get](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/aggregate-query.md.txt#classfirebase_1_1firestore_1_1_aggregate_query_1a27c07d290606716096491dd95eb40bb5) can retrieve its results.

| Properties ||
|---|---|
| `kServer` | Perform the aggregation on the server and download the result. The result received from the server is presented, unaltered, without considering any local state. That is, documents in the local cache are not taken into consideration, neither are local modifications not yet synchronized with the server. Previously-downloaded results, if any, are not used. Every request using this source necessarily involves a round trip to the server. The [AggregateQuery](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/aggregate-query.md.txt#classfirebase_1_1firestore_1_1_aggregate_query) will fail if the server cannot be reached, such as if the client is offline. |

### Error

```c++
 Error
```
Error codes used by Cloud [Firestore](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/firestore.md.txt#classfirebase_1_1firestore_1_1_firestore).

The codes are in sync across [Firestore](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/firestore.md.txt#classfirebase_1_1firestore_1_1_firestore) SDKs on various platforms.

| Properties ||
|---|---|
| `kErrorAborted` | The operation was aborted, typically due to a concurrency issue like transaction aborts, etc. |
| `kErrorAlreadyExists` | Some document that we attempted to create already exists. |
| `kErrorCancelled` | The operation was cancelled (typically by the caller). |
| `kErrorDataLoss` | Unrecoverable data loss or corruption. |
| `kErrorDeadlineExceeded` | Deadline expired before operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire. |
| `kErrorFailedPrecondition` | Operation was rejected because the system is not in a state required for the operation's execution. |
| `kErrorInternal` | Internal errors. Means some invariants expected by underlying system has been broken. If you see one of these errors, something is very broken. |
| `kErrorInvalidArgument` | Client specified an invalid argument. Note that this differs from FailedPrecondition. InvalidArgument indicates arguments that are problematic regardless of the state of the system (e.g., an invalid field name). |
| `kErrorNotFound` | Some requested document was not found. |
| `kErrorOk` | The operation completed successfully. |
| `kErrorOutOfRange` | Operation was attempted past the valid range. |
| `kErrorPermissionDenied` | The caller does not have permission to execute the specified operation. |
| `kErrorResourceExhausted` | Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. |
| `kErrorUnauthenticated` | The request does not have valid authentication credentials for the operation. |
| `kErrorUnavailable` | The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff. |
| `kErrorUnimplemented` | Operation is not implemented or not supported/enabled. |
| `kErrorUnknown` | Unknown error or an error from a different error domain. |

### MetadataChanges

```c++
 MetadataChanges
```
Indicates whether metadata-only changes (that is, [DocumentSnapshot::metadata()](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/document-snapshot.md.txt#classfirebase_1_1firestore_1_1_document_snapshot_1a6e8881817cf1fdd48fe5603c74fe9aae) or [QuerySnapshot::metadata()](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/query-snapshot.md.txt#classfirebase_1_1firestore_1_1_query_snapshot_1a5dd7c1215e4f11ef4a560190843786cc) changed) should trigger snapshot events.

| Properties ||
|---|---|
| `kExclude` | Snapshot events will not be triggered by metadata-only changes. |
| `kInclude` | Snapshot events will be triggered by any changes, including metadata-only changes. |

### Source

```c++
 Source
```
Configures the behavior of [DocumentReference::Get()](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/document-reference.md.txt#classfirebase_1_1firestore_1_1_document_reference_1a7c1711d91dd8e025642bb1bc793dc6c8) and [Query::Get()](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/query.md.txt#classfirebase_1_1firestore_1_1_query_1a3bf794938d8680d31b799c3f58664375).

By providing a Source value, these methods can be configured to fetch results only from the server, only from the local cache, or attempt to fetch results from the server and fall back to the cache (which is the default).

| Properties ||
|---|---|
| `kCache` | Causes [Firestore](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/firestore.md.txt#classfirebase_1_1firestore_1_1_firestore) to immediately return a value from the cache, ignoring the server completely (implying that the returned value may be stale with respect to the value on the server). If there is no data in the cache to satisfy the [DocumentReference::Get()](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/document-reference.md.txt#classfirebase_1_1firestore_1_1_document_reference_1a7c1711d91dd8e025642bb1bc793dc6c8) call will return an error and [Query::Get()](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/query.md.txt#classfirebase_1_1firestore_1_1_query_1a3bf794938d8680d31b799c3f58664375) will return an empty [QuerySnapshot](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/query-snapshot.md.txt#classfirebase_1_1firestore_1_1_query_snapshot) with no documents. |
| `kDefault` | Causes [Firestore](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/firestore.md.txt#classfirebase_1_1firestore_1_1_firestore) to try to retrieve an up-to-date (server-retrieved) snapshot, but fall back to returning cached data if the server can't be reached. |
| `kServer` | Causes [Firestore](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/firestore.md.txt#classfirebase_1_1firestore_1_1_firestore) to avoid the cache, generating an error if the server cannot be reached. Note that the cache will still be updated if the server request succeeds. Also note that latency-compensation still takes effect, so any pending write operations will be visible in the returned data (merged into the server-provided data). |

## Typedefs

### MapFieldPathValue

```c++
std::unordered_map< FieldPath, FieldValue > MapFieldPathValue
```
A map of `FieldValue`s indexed by field paths.

### MapFieldValue

```c++
std::unordered_map< std::string, FieldValue > MapFieldValue
```
A map of `FieldValue`s indexed by stringified field paths.

## Functions

### operator!=

```c++
bool operator!=(
  const SnapshotMetadata & lhs,
  const SnapshotMetadata & rhs
)
```
Checks `lhs` and `rhs` for inequality.

### operator!=

```c++
bool operator!=(
  const QuerySnapshot & lhs,
  const QuerySnapshot & rhs
)
```
Checks `lhs` and `rhs` for inequality.

### operator!=

```c++
bool operator!=(
  const Filter & lhs,
  const Filter & rhs
)
```
Checks `lhs` and `rhs` for inequality.

### operator!=

```c++
bool operator!=(
  const TransactionOptions & lhs,
  const TransactionOptions & rhs
)
```
Compares two `TransactionOptions` objects for inequality.

### operator!=

```c++
bool operator!=(
  const SetOptions & lhs,
  const SetOptions & rhs
)
```
Checks `lhs` and `rhs` for inequality.

### operator!=

```c++
bool operator!=(
  const Settings & lhs,
  const Settings & rhs
)
```
Checks `lhs` and `rhs` for inequality.

### operator!=

```c++
bool operator!=(
  const AggregateQuerySnapshot & lhs,
  const AggregateQuerySnapshot & rhs
)
```
Checks `lhs` and `rhs` for inequality.

### operator!=

```c++
bool operator!=(
  const FieldValue & lhs,
  const FieldValue & rhs
)
```
Checks `lhs` and `rhs` for inequality.

### operator!=

```c++
bool operator!=(
  const DocumentSnapshot & lhs,
  const DocumentSnapshot & rhs
)
```
Checks `lhs` and `rhs` for inequality.

### operator!=

```c++
bool operator!=(
  const DocumentReference & lhs,
  const DocumentReference & rhs
)
```
Checks `lhs` and `rhs` for inequality.

### operator!=

```c++
bool operator!=(
  const LoadBundleTaskProgress & lhs,
  const LoadBundleTaskProgress & rhs
)
```
[LoadBundleTaskProgress](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/load-bundle-task-progress.md.txt#classfirebase_1_1firestore_1_1_load_bundle_task_progress) != comparison operator.

### operator!=

```c++
bool operator!=(
  const GeoPoint & lhs,
  const GeoPoint & rhs
)
```
Checks `lhs` and `rhs` for inequality.

### operator!=

```c++
bool operator!=(
  const AggregateQuery & lhs,
  const AggregateQuery & rhs
)
```
Checks `lhs` and `rhs` for inequality.

### operator!=

```c++
bool operator!=(
  const Query & lhs,
  const Query & rhs
)
```
Checks `lhs` and `rhs` for inequality.

### operator!=

```c++
bool operator!=(
  const DocumentChange & lhs,
  const DocumentChange & rhs
)
```
Checks `lhs` and `rhs` for inequality.

### operator\<

```c++
bool operator<(
  const GeoPoint & lhs,
  const GeoPoint & rhs
)
```
Checks whether `lhs` and `rhs` are in ascending order.

### operator\<=

```c++
bool operator<=(
  const GeoPoint & lhs,
  const GeoPoint & rhs
)
```
Checks whether `lhs` and `rhs` are in non-descending order.

### operator==

```c++
bool operator==(
  const SnapshotMetadata & lhs,
  const SnapshotMetadata & rhs
)
```
Checks `lhs` and `rhs` for equality.

### operator==

```c++
bool operator==(
  const QuerySnapshot & lhs,
  const QuerySnapshot & rhs
)
```
Checks `lhs` and `rhs` for equality.

### operator==

```c++
bool operator==(
  const Filter & lhs,
  const Filter & rhs
)
```
Checks `lhs` and `rhs` for equality.

### operator==

```c++
bool operator==(
  const TransactionOptions &,
  const TransactionOptions &
)
```
Compares two `TransactionOptions` objects for equality.

### operator==

```c++
bool operator==(
  const SetOptions & lhs,
  const SetOptions & rhs
)
```
Checks `lhs` and `rhs` for equality.

### operator==

```c++
bool operator==(
  const Settings & lhs,
  const Settings & rhs
)
```
Checks `lhs` and `rhs` for equality.

### operator==

```c++
bool operator==(
  const AggregateQuerySnapshot & lhs,
  const AggregateQuerySnapshot & rhs
)
```
Checks `lhs` and `rhs` for equality.

### operator==

```c++
bool operator==(
  const FieldValue & lhs,
  const FieldValue & rhs
)
```
Checks `lhs` and `rhs` for equality.

### operator==

```c++
bool operator==(
  const DocumentSnapshot & lhs,
  const DocumentSnapshot & rhs
)
```
Checks `lhs` and `rhs` for equality.

### operator==

```c++
bool operator==(
  const DocumentReference & lhs,
  const DocumentReference & rhs
)
```
Checks `lhs` and `rhs` for equality.

### operator==

```c++
bool operator==(
  const LoadBundleTaskProgress & lhs,
  const LoadBundleTaskProgress & rhs
)
```
[LoadBundleTaskProgress](https://firebase.google.com/docs/reference/cpp/class/firebase/firestore/load-bundle-task-progress.md.txt#classfirebase_1_1firestore_1_1_load_bundle_task_progress) == comparison operator.

### operator==

```c++
bool operator==(
  const GeoPoint & lhs,
  const GeoPoint & rhs
)
```
Checks `lhs` and `rhs` for equality.

### operator==

```c++
bool operator==(
  const AggregateQuery & lhs,
  const AggregateQuery & rhs
)
```
Checks `lhs` and `rhs` for equality.

### operator==

```c++
bool operator==(
  const Query & lhs,
  const Query & rhs
)
```
Checks `lhs` and `rhs` for equality.

### operator==

```c++
bool operator==(
  const DocumentChange & lhs,
  const DocumentChange & rhs
)
```
Checks `lhs` and `rhs` for equality.

### operator\>

```c++
bool operator>(
  const GeoPoint & lhs,
  const GeoPoint & rhs
)
```
Checks whether `lhs` and `rhs` are in descending order.

### operator\>=

```c++
bool operator>=(
  const GeoPoint & lhs,
  const GeoPoint & rhs
)
```
Checks whether `lhs` and `rhs` are in non-ascending order.