Documentation

PreconditionFailure extends Message
in package

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

Table of Contents

Properties

$violations  : mixed
Describes all precondition violations.

Methods

__construct()  : mixed
Constructor.
getViolations()  : RepeatedField
Describes all precondition violations.
setViolations()  : $this
Describes all precondition violations.

Properties

$violations

Describes all precondition violations.

private mixed $violations

Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"];

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
$data : array<string|int, mixed> = NULL

{ Optional. Data for populating the Message object.

@type array<\Google\Rpc\PreconditionFailure\Violation>|\Google\Protobuf\Internal\RepeatedField $violations
      Describes all precondition violations.

}

getViolations()

Describes all precondition violations.

public getViolations() : RepeatedField

Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"];

Return values
RepeatedField

setViolations()

Describes all precondition violations.

public setViolations(array<string|int, Violation>|RepeatedField $var) : $this

Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"];

Parameters
$var : array<string|int, Violation>|RepeatedField
Return values
$this

        
On this page

Search results