Google \ Cloud \ Firestore \ Admin \ V1 \ Field \ TtlConfig
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
STATE_UNSPECIFIED
Value: 0
The state is unspecified or unknown.
Generated from protobuf enumSTATE_UNSPECIFIED = 0;
CREATING
Value: 1
The TTL is being applied. There is an active long-running operation to
track the change. Newly written documents will have TTLs applied as
requested. Requested TTLs on existing documents are still being
processed. When TTLs on all existing documents have been processed, the
state will move to 'ACTIVE'.
Generated from protobuf enumCREATING = 1;
ACTIVE
Value: 2
The TTL is active for all documents.
Generated from protobuf enumACTIVE = 2;
NEEDS_REPAIR
Value: 3
The TTL configuration could not be enabled for all existing documents.
Newly written documents will continue to have their TTL applied.
The LRO returned when last attempting to enable TTL for thisFieldhas failed, and may have more details.
[[["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 V1 Client - Class State (1.53.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.53.0 (latest)](/php/docs/reference/cloud-firestore/latest/Admin.V1.Field.TtlConfig.State)\n- [1.52.0](/php/docs/reference/cloud-firestore/1.52.0/Admin.V1.Field.TtlConfig.State)\n- [1.51.0](/php/docs/reference/cloud-firestore/1.51.0/Admin.V1.Field.TtlConfig.State)\n- [1.50.0](/php/docs/reference/cloud-firestore/1.50.0/Admin.V1.Field.TtlConfig.State)\n- [1.48.1](/php/docs/reference/cloud-firestore/1.48.1/Admin.V1.Field.TtlConfig.State)\n- [1.47.3](/php/docs/reference/cloud-firestore/1.47.3/Admin.V1.Field.TtlConfig.State)\n- [1.46.0](/php/docs/reference/cloud-firestore/1.46.0/Admin.V1.Field.TtlConfig.State)\n- [1.45.2](/php/docs/reference/cloud-firestore/1.45.2/Admin.V1.Field.TtlConfig.State)\n- [1.44.1](/php/docs/reference/cloud-firestore/1.44.1/Admin.V1.Field.TtlConfig.State)\n- [1.43.3](/php/docs/reference/cloud-firestore/1.43.3/Admin.V1.Field.TtlConfig.State)\n- [1.40.0](/php/docs/reference/cloud-firestore/1.40.0/Admin.V1.Field.TtlConfig.State)\n- [1.39.0](/php/docs/reference/cloud-firestore/1.39.0/Admin.V1.Field.TtlConfig.State)\n- [1.38.0](/php/docs/reference/cloud-firestore/1.38.0/Admin.V1.Field.TtlConfig.State)\n- [1.37.7](/php/docs/reference/cloud-firestore/1.37.7/Admin.V1.Field.TtlConfig.State)\n- [1.36.1](/php/docs/reference/cloud-firestore/1.36.1/Admin.V1.Field.TtlConfig.State)\n- [1.35.0](/php/docs/reference/cloud-firestore/1.35.0/Admin.V1.Field.TtlConfig.State)\n- [1.34.0](/php/docs/reference/cloud-firestore/1.34.0/Admin.V1.Field.TtlConfig.State)\n- [1.33.0](/php/docs/reference/cloud-firestore/1.33.0/Admin.V1.Field.TtlConfig.State)\n- [1.32.0](/php/docs/reference/cloud-firestore/1.32.0/Admin.V1.Field.TtlConfig.State)\n- [1.31.0](/php/docs/reference/cloud-firestore/1.31.0/Admin.V1.Field.TtlConfig.State)\n- [1.30.0](/php/docs/reference/cloud-firestore/1.30.0/Admin.V1.Field.TtlConfig.State)\n- [1.28.0](/php/docs/reference/cloud-firestore/1.28.0/Admin.V1.Field.TtlConfig.State)\n- [1.27.3](/php/docs/reference/cloud-firestore/1.27.3/Admin.V1.Field.TtlConfig.State) \nReference documentation and code samples for the Cloud Firestore V1 Client class State.\n\nThe state of applying the TTL configuration to all documents.\n\nProtobuf type `google.firestore.admin.v1.Field.TtlConfig.State`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Firestore \\\\ Admin \\\\ V1 \\\\ Field \\\\ TtlConfig\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### STATE_UNSPECIFIED\n\n Value: 0\n\nThe state is unspecified or unknown.\n\nGenerated from protobuf enum `STATE_UNSPECIFIED = 0;`\n\n### CREATING\n\n Value: 1\n\nThe TTL is being applied. There is an active long-running operation to\ntrack the change. Newly written documents will have TTLs applied as\nrequested. Requested TTLs on existing documents are still being\nprocessed. When TTLs on all existing documents have been processed, the\nstate will move to 'ACTIVE'.\n\nGenerated from protobuf enum `CREATING = 1;`\n\n### ACTIVE\n\n Value: 2\n\nThe TTL is active for all documents.\n\nGenerated from protobuf enum `ACTIVE = 2;`\n\n### NEEDS_REPAIR\n\n Value: 3\n\nThe TTL configuration could not be enabled for all existing documents.\n\nNewly written documents will continue to have their TTL applied.\nThe LRO returned when last attempting to enable TTL for this `Field`\nhas failed, and may have more details.\n\nGenerated from protobuf enum `NEEDS_REPAIR = 3;`"]]