Reference documentation and code samples for the Google API Common Protos Client class PreconditionFailure.
Describes what preconditions have failed.
For example, if an RPC failed because it required the Terms of Service to be
acknowledged, it could list the terms of service violation in the
PreconditionFailure message.
Generated from protobuf messagegoogle.rpc.PreconditionFailure
[[["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,["# Google API Common Protos Client - Class PreconditionFailure (4.12.3)\n\nVersion latestkeyboard_arrow_down\n\n- [4.12.3 (latest)](/php/docs/reference/common-protos/latest/Rpc.PreconditionFailure)\n- [4.12.2](/php/docs/reference/common-protos/4.12.2/Rpc.PreconditionFailure)\n- [4.11.0](/php/docs/reference/common-protos/4.11.0/Rpc.PreconditionFailure)\n- [4.10.0](/php/docs/reference/common-protos/4.10.0/Rpc.PreconditionFailure)\n- [4.9.0](/php/docs/reference/common-protos/4.9.0/Rpc.PreconditionFailure)\n- [4.8.3](/php/docs/reference/common-protos/4.8.3/Rpc.PreconditionFailure) \nReference documentation and code samples for the Google API Common Protos Client class PreconditionFailure.\n\nDescribes what preconditions have failed.\n\nFor example, if an RPC failed because it required the Terms of Service to be\nacknowledged, it could list the terms of service violation in the\nPreconditionFailure message.\n\nGenerated from protobuf message `google.rpc.PreconditionFailure`\n\nNamespace\n---------\n\nGoogle \\\\ Rpc\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getViolations\n\nDescribes all precondition violations.\n\n### setViolations\n\nDescribes all precondition violations."]]