Properties | |
---|---|
HasPendingWrites | bool true if the snapshot contains the result of local writes (e.g. |
IsFromCache | bool true if the snapshot was created from cached data rather than guaranteed up-to-date server data. |
Public functions | |
---|---|
Equals(object obj) | override bool |
Equals(SnapshotMetadata other) | bool Compares this snapshot metadata with another for equality. |
GetHashCode() | override int |
boolHasPendingWrites
true
if the snapshot contains the result of local writes (e.g.
SetAsync
or UpdateAsync
calls) that have not yet been committed to the backend. If your listener has opted into metadata updates (via MetadataChanges.Include
) you will receive another snapshot with HasPendingWrites
equal to false
once the writes have been committed to the backend.
boolIsFromCache
true
if the snapshot was created from cached data rather than guaranteed up-to-date server data.
If your listener has opted into metadata updates (via MetadataChanges.Include
) you will receive another snapshot with IsFromCache
equal to false
once the client has received up-to-date data from the backend.
overrideboolEquals(objectobj)
boolEquals(SnapshotMetadataother)
Compares this snapshot metadata with another for equality.
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | true if this snapshot metadata is equal to other ; false otherwise. |
overrideintGetHashCode()
SnapshotMetadata(boolhasPendingWrites,boolisFromCache)
Creates a new instance of the class.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-09-08 UTC.