Reference documentation and code samples for the Google API Common Protos Client class Violation.
A message type used to describe a single precondition failure.
Generated from protobuf message google.rpc.PreconditionFailure.Violation
Namespace
Google \ Rpc \ PreconditionFailureMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ type
string
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".
↳ subject
string
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.
↳ description
string
A description of how the precondition failed. Developers can use this description to understand how to fix the failure. For example: "Terms of service not accepted".
getType
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".
string
setType
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".
var
string
$this
getSubject
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.
string
setSubject
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.
var
string
$this
getDescription
A description of how the precondition failed. Developers can use this description to understand how to fix the failure.
For example: "Terms of service not accepted".
string
setDescription
A description of how the precondition failed. Developers can use this description to understand how to fix the failure.
For example: "Terms of service not accepted".
var
string
$this