class PreconditionFailure extends Message

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

Methods

__construct(array $data = NULL)

Constructor.

RepeatedField
getViolations()

Describes all precondition violations.

$this
setViolations(Violation[]|RepeatedField $var)

Describes all precondition violations.

Details

at line 38
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type \Google\Rpc\PreconditionFailure\Violation[]|\Google\Protobuf\Internal\RepeatedField $violations
      Describes all precondition violations.

}

at line 49
RepeatedField getViolations()

Describes all precondition violations.

Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1;

Return Value

RepeatedField

at line 61
$this setViolations(Violation[]|RepeatedField $var)

Describes all precondition violations.

Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1;

Parameters

Violation[]|RepeatedField $var

Return Value

$this