public sealed class PreconditionFailure.Types.Violation : IMessage<PreconditionFailure.Types.Violation>, IEquatable<PreconditionFailure.Types.Violation>, IDeepCloneable<PreconditionFailure.Types.Violation>, IBufferMessage, IMessage
A message type used to describe a single precondition failure.
The subject, relative to the type, that failed.
For example, "google.com/cloud" relative to the "TOS" type would indicate
which terms of service is being referenced.
The type of PreconditionFailure. We recommend using a service-specific
enum type to define the supported precondition violation subjects. For
example, "TOS" for "Terms of Service violation".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["The `PreconditionFailure.Types.Violation` class is a message type designed to articulate a single precondition failure, inheriting from `object` and implementing several interfaces like `IMessage`, `IEquatable`, and `IDeepCloneable`."],["This class includes constructors, such as a default constructor and one that takes another `Violation` object as a parameter, allowing for easy initialization and duplication of instances."],["It defines three fields (`DescriptionFieldNumber`, `SubjectFieldNumber`, `TypeFieldNumber`) representing the description, subject, and type of the violation, all of which are of type `int`."],["The class also provides three properties (`Description`, `Subject`, `Type`) that allow for the retrieval and modification of these violation aspects, all of which are of type `string` and provide specific details on the precondition failure."],["Several methods, including `Clone()`, `Equals()`, `GetHashCode()`, and `MergeFrom()`, are implemented to manage object behavior and data integrity, as well as the common `ToString()` for simple string conversion."]]],[]]