The total count of documents that match
target_id.
If different from the count of documents in the client that match, the
client must manually determine which documents no longer match the target.
The client can use the unchanged_names bloom filter to assist with
this determination by testing ALL the document names against the filter;
if the document name is NOT in the filter, it means the document no
longer matches the target.
A bloom filter that, despite its name, contains the UTF-8 byte encodings of
the resource names of ALL the documents that match
target_id, in the form
projects/{project_id}/databases/{database_id}/documents/{document_path}.
This bloom filter may be omitted at the server's discretion, such as if it
is deemed that the client will not make use of it or if it is too
computationally expensive to calculate or transmit. Clients must gracefully
handle this field being absent by falling back to the logic used before
this field existed; that is, re-add the target without a resume token to
figure out which documents in the client's cache are out of sync.
A bloom filter that, despite its name, contains the UTF-8 byte encodings of
the resource names of ALL the documents that match
target_id, in the form
projects/{project_id}/databases/{database_id}/documents/{document_path}.
This bloom filter may be omitted at the server's discretion, such as if it
is deemed that the client will not make use of it or if it is too
computationally expensive to calculate or transmit. Clients must gracefully
handle this field being absent by falling back to the logic used before
this field existed; that is, re-add the target without a resume token to
figure out which documents in the client's cache are out of sync.
A bloom filter that, despite its name, contains the UTF-8 byte encodings of
the resource names of ALL the documents that match
target_id, in the form
projects/{project_id}/databases/{database_id}/documents/{document_path}.
This bloom filter may be omitted at the server's discretion, such as if it
is deemed that the client will not make use of it or if it is too
computationally expensive to calculate or transmit. Clients must gracefully
handle this field being absent by falling back to the logic used before
this field existed; that is, re-add the target without a resume token to
figure out which documents in the client's cache are out of sync.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Interface ExistenceFilterOrBuilder (3.32.1)\n\nVersion latestkeyboard_arrow_down\n\n- [3.32.1 (latest)](/java/docs/reference/google-cloud-firestore/latest/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.32.0](/java/docs/reference/google-cloud-firestore/3.32.0/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.31.9](/java/docs/reference/google-cloud-firestore/3.31.9/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.30.11](/java/docs/reference/google-cloud-firestore/3.30.11/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.28.0](/java/docs/reference/google-cloud-firestore/3.28.0/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.27.2](/java/docs/reference/google-cloud-firestore/3.27.2/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.26.5](/java/docs/reference/google-cloud-firestore/3.26.5/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.25.1](/java/docs/reference/google-cloud-firestore/3.25.1/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.24.3](/java/docs/reference/google-cloud-firestore/3.24.3/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.22.0](/java/docs/reference/google-cloud-firestore/3.22.0/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.21.4](/java/docs/reference/google-cloud-firestore/3.21.4/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.20.0](/java/docs/reference/google-cloud-firestore/3.20.0/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.17.0](/java/docs/reference/google-cloud-firestore/3.17.0/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.16.3](/java/docs/reference/google-cloud-firestore/3.16.3/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.15.7](/java/docs/reference/google-cloud-firestore/3.15.7/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.14.4](/java/docs/reference/google-cloud-firestore/3.14.4/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.13.2](/java/docs/reference/google-cloud-firestore/3.13.2/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.12.1](/java/docs/reference/google-cloud-firestore/3.12.1/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.11.0](/java/docs/reference/google-cloud-firestore/3.11.0/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.10.0](/java/docs/reference/google-cloud-firestore/3.10.0/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.9.6](/java/docs/reference/google-cloud-firestore/3.9.6/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.8.2](/java/docs/reference/google-cloud-firestore/3.8.2/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.7.10](/java/docs/reference/google-cloud-firestore/3.7.10/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.6.0](/java/docs/reference/google-cloud-firestore/3.6.0/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.5.0](/java/docs/reference/google-cloud-firestore/3.5.0/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.4.2](/java/docs/reference/google-cloud-firestore/3.4.2/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.3.0](/java/docs/reference/google-cloud-firestore/3.3.0/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.2.0](/java/docs/reference/google-cloud-firestore/3.2.0/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.1.0](/java/docs/reference/google-cloud-firestore/3.1.0/com.google.firestore.v1.ExistenceFilterOrBuilder)\n- [3.0.21](/java/docs/reference/google-cloud-firestore/3.0.21/com.google.firestore.v1.ExistenceFilterOrBuilder) \n\n public interface ExistenceFilterOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getCount()\n\n public abstract int getCount()\n\nThe total count of documents that match\ntarget_id.\n\nIf different from the count of documents in the client that match, the\nclient must manually determine which documents no longer match the target.\n\nThe client can use the `unchanged_names` bloom filter to assist with\nthis determination by testing ALL the document names against the filter;\nif the document name is NOT in the filter, it means the document no\nlonger matches the target.\n\n`int32 count = 2;`\n\n### getTargetId()\n\n public abstract int getTargetId()\n\nThe target ID to which this filter applies.\n\n`int32 target_id = 1;`\n\n### getUnchangedNames()\n\n public abstract BloomFilter getUnchangedNames()\n\nA bloom filter that, despite its name, contains the UTF-8 byte encodings of\nthe resource names of ALL the documents that match\ntarget_id, in the form\n`projects/{project_id}/databases/{database_id}/documents/{document_path}`.\n\nThis bloom filter may be omitted at the server's discretion, such as if it\nis deemed that the client will not make use of it or if it is too\ncomputationally expensive to calculate or transmit. Clients must gracefully\nhandle this field being absent by falling back to the logic used before\nthis field existed; that is, re-add the target without a resume token to\nfigure out which documents in the client's cache are out of sync.\n\n`.google.firestore.v1.BloomFilter unchanged_names = 3;`\n\n### getUnchangedNamesOrBuilder()\n\n public abstract BloomFilterOrBuilder getUnchangedNamesOrBuilder()\n\nA bloom filter that, despite its name, contains the UTF-8 byte encodings of\nthe resource names of ALL the documents that match\ntarget_id, in the form\n`projects/{project_id}/databases/{database_id}/documents/{document_path}`.\n\nThis bloom filter may be omitted at the server's discretion, such as if it\nis deemed that the client will not make use of it or if it is too\ncomputationally expensive to calculate or transmit. Clients must gracefully\nhandle this field being absent by falling back to the logic used before\nthis field existed; that is, re-add the target without a resume token to\nfigure out which documents in the client's cache are out of sync.\n\n`.google.firestore.v1.BloomFilter unchanged_names = 3;`\n\n### hasUnchangedNames()\n\n public abstract boolean hasUnchangedNames()\n\nA bloom filter that, despite its name, contains the UTF-8 byte encodings of\nthe resource names of ALL the documents that match\ntarget_id, in the form\n`projects/{project_id}/databases/{database_id}/documents/{document_path}`.\n\nThis bloom filter may be omitted at the server's discretion, such as if it\nis deemed that the client will not make use of it or if it is too\ncomputationally expensive to calculate or transmit. Clients must gracefully\nhandle this field being absent by falling back to the logic used before\nthis field existed; that is, re-add the target without a resume token to\nfigure out which documents in the client's cache are out of sync.\n\n`.google.firestore.v1.BloomFilter unchanged_names = 3;`"]]