public sealed class PreconditionFailure : IMessage<PreconditionFailure>, IEquatable<PreconditionFailure>, IDeepCloneable<PreconditionFailure>, IBufferMessage, IMessage
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.
[[["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-05-02 UTC."],[[["The `PreconditionFailure` class describes the failure of one or more preconditions, often used in RPC (Remote Procedure Call) scenarios, like the requirement to accept Terms of Service."],["This class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, indicating its capabilities for message handling, equality checks, deep cloning, and buffered operations."],["The `PreconditionFailure` class contains a `Violations` property, which is a `RepeatedField` used to list specific precondition violations, and it has a related `ViolationsFieldNumber` field."],["The class provides methods for calculating message size (`CalculateSize`), deep cloning (`Clone`), merging data from other objects or streams (`MergeFrom`), and writing data to streams (`WriteTo`), among other utility methods."],["The latest version of the class is `2.15.0` and is available as part of the `Google.Rpc` namespace within the `Google.Api.CommonProtos.dll` assembly."]]],[]]