Reference documentation and code samples for the Cloud Firestore V1beta1 Client class TargetChangeType.
The type of change.
Protobuf type google.firestore.v1beta1.TargetChange.TargetChangeType
Namespace
Google \ Cloud \ Firestore \ V1beta1 \ TargetChange
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
NO_CHANGE
Value: 0
No change has occurred. Used only to send an updated resume_token.
Generated from protobuf enum NO_CHANGE = 0;
ADD
Value: 1
The targets have been added.
Generated from protobuf enum ADD = 1;
REMOVE
Value: 2
The targets have been removed.
Generated from protobuf enum REMOVE = 2;
CURRENT
Value: 3
The targets reflect all changes committed before the targets were added
to the stream.
This will be sent after or with a read_time that is greater than or
equal to the time at which the targets were added.
Listeners can wait for this change if read-after-write semantics
are desired.
Generated from protobuf enum CURRENT = 3;
RESET
Value: 4
The targets have been reset, and a new initial state for the targets
will be returned in subsequent changes.
After the initial state is complete, CURRENT will be returned even
if the target was previously indicated to be CURRENT.
[[["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,["# Cloud Firestore V1beta1 Client - Class TargetChangeType (1.53.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.53.0 (latest)](/php/docs/reference/cloud-firestore/latest/V1beta1.TargetChange.TargetChangeType)\n- [1.52.0](/php/docs/reference/cloud-firestore/1.52.0/V1beta1.TargetChange.TargetChangeType)\n- [1.51.0](/php/docs/reference/cloud-firestore/1.51.0/V1beta1.TargetChange.TargetChangeType)\n- [1.50.0](/php/docs/reference/cloud-firestore/1.50.0/V1beta1.TargetChange.TargetChangeType)\n- [1.48.1](/php/docs/reference/cloud-firestore/1.48.1/V1beta1.TargetChange.TargetChangeType)\n- [1.47.3](/php/docs/reference/cloud-firestore/1.47.3/V1beta1.TargetChange.TargetChangeType)\n- [1.46.0](/php/docs/reference/cloud-firestore/1.46.0/V1beta1.TargetChange.TargetChangeType)\n- [1.45.2](/php/docs/reference/cloud-firestore/1.45.2/V1beta1.TargetChange.TargetChangeType)\n- [1.44.1](/php/docs/reference/cloud-firestore/1.44.1/V1beta1.TargetChange.TargetChangeType)\n- [1.43.3](/php/docs/reference/cloud-firestore/1.43.3/V1beta1.TargetChange.TargetChangeType)\n- [1.40.0](/php/docs/reference/cloud-firestore/1.40.0/V1beta1.TargetChange.TargetChangeType)\n- [1.39.0](/php/docs/reference/cloud-firestore/1.39.0/V1beta1.TargetChange.TargetChangeType)\n- [1.38.0](/php/docs/reference/cloud-firestore/1.38.0/V1beta1.TargetChange.TargetChangeType)\n- [1.37.7](/php/docs/reference/cloud-firestore/1.37.7/V1beta1.TargetChange.TargetChangeType)\n- [1.36.1](/php/docs/reference/cloud-firestore/1.36.1/V1beta1.TargetChange.TargetChangeType)\n- [1.35.0](/php/docs/reference/cloud-firestore/1.35.0/V1beta1.TargetChange.TargetChangeType)\n- [1.34.0](/php/docs/reference/cloud-firestore/1.34.0/V1beta1.TargetChange.TargetChangeType)\n- [1.33.0](/php/docs/reference/cloud-firestore/1.33.0/V1beta1.TargetChange.TargetChangeType)\n- [1.32.0](/php/docs/reference/cloud-firestore/1.32.0/V1beta1.TargetChange.TargetChangeType)\n- [1.31.0](/php/docs/reference/cloud-firestore/1.31.0/V1beta1.TargetChange.TargetChangeType)\n- [1.30.0](/php/docs/reference/cloud-firestore/1.30.0/V1beta1.TargetChange.TargetChangeType)\n- [1.28.0](/php/docs/reference/cloud-firestore/1.28.0/V1beta1.TargetChange.TargetChangeType)\n- [1.27.3](/php/docs/reference/cloud-firestore/1.27.3/V1beta1.TargetChange.TargetChangeType) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Cloud Firestore V1beta1 Client class TargetChangeType.\n\nThe type of change.\n\nProtobuf type `google.firestore.v1beta1.TargetChange.TargetChangeType`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Firestore \\\\ V1beta1 \\\\ TargetChange\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### NO_CHANGE\n\n Value: 0\n\nNo change has occurred. Used only to send an updated `resume_token`.\n\nGenerated from protobuf enum `NO_CHANGE = 0;`\n\n### ADD\n\n Value: 1\n\nThe targets have been added.\n\nGenerated from protobuf enum `ADD = 1;`\n\n### REMOVE\n\n Value: 2\n\nThe targets have been removed.\n\nGenerated from protobuf enum `REMOVE = 2;`\n\n### CURRENT\n\n Value: 3\n\nThe targets reflect all changes committed before the targets were added\nto the stream.\n\nThis will be sent after or with a `read_time` that is greater than or\nequal to the time at which the targets were added.\nListeners can wait for this change if read-after-write semantics\nare desired.\n\nGenerated from protobuf enum `CURRENT = 3;`\n\n### RESET\n\n Value: 4\n\nThe targets have been reset, and a new initial state for the targets\nwill be returned in subsequent changes.\n\nAfter the initial state is complete, `CURRENT` will be returned even\nif the target was previously indicated to be `CURRENT`.\n\nGenerated from protobuf enum `RESET = 4;`"]]