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 message google.rpc.PreconditionFailure
Namespace
Google \ RpcMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ violations |
array<PreconditionFailure\Violation>
Describes all precondition violations. |
getViolations
Describes all precondition violations.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setViolations
Describes all precondition violations.
Parameter | |
---|---|
Name | Description |
var |
array<PreconditionFailure\Violation>
|
Returns | |
---|---|
Type | Description |
$this |