Google Cloud Storage Transfer V1 Client - Class ErrorSummary (1.2.0)

Reference documentation and code samples for the Google Cloud Storage Transfer V1 Client class ErrorSummary.

A summary of errors by error code, plus a count and sample error log entries.

Generated from protobuf message google.storagetransfer.v1.ErrorSummary

Namespace

Google \ Cloud \ StorageTransfer \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ error_code int

Required.

↳ error_count int|string

Required. Count of this type of error.

↳ error_log_entries array<Google\Cloud\StorageTransfer\V1\ErrorLogEntry>

Error samples. At most 5 error log entries are recorded for a given error code for a single transfer operation.

getErrorCode

Required.

Returns
TypeDescription
int

setErrorCode

Required.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getErrorCount

Required. Count of this type of error.

Returns
TypeDescription
int|string

setErrorCount

Required. Count of this type of error.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getErrorLogEntries

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setErrorLogEntries

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

Parameter
NameDescription
var array<Google\Cloud\StorageTransfer\V1\ErrorLogEntry>
Returns
TypeDescription
$this