Data Loss Prevention V2 Client - Class Error (1.11.0)

Reference documentation and code samples for the Data Loss Prevention V2 Client class Error.

Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.

Generated from protobuf message google.privacy.dlp.v2.Error

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ details Google\Rpc\Status

Detailed error codes and messages.

↳ timestamps array<Google\Protobuf\Timestamp>

The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.

getDetails

Detailed error codes and messages.

Returns
TypeDescription
Google\Rpc\Status|null

hasDetails

clearDetails

setDetails

Detailed error codes and messages.

Parameter
NameDescription
var Google\Rpc\Status
Returns
TypeDescription
$this

getTimestamps

The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTimestamps

The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.

Parameter
NameDescription
var array<Google\Protobuf\Timestamp>
Returns
TypeDescription
$this