Google Cloud Service Control V1 Client - Class QuotaError (1.4.2)

Reference documentation and code samples for the Google Cloud Service Control V1 Client class QuotaError.

Represents error information for QuotaOperation.

Generated from protobuf message google.api.servicecontrol.v1.QuotaError

Namespace

Google \ Cloud \ ServiceControl \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ code int

Error code.

↳ subject string

Subject to whom this error applies. See the specific enum for more details on this field. For example, "clientip:

↳ description string

Free-form text that provides details on the cause of the error.

↳ status Google\Rpc\Status

Contains additional information about the quota error. If available, status.code will be non zero.

getCode

Error code.

Returns
TypeDescription
int

setCode

Error code.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getSubject

Subject to whom this error applies. See the specific enum for more details on this field. For example, "clientip:

Returns
TypeDescription
string

setSubject

Subject to whom this error applies. See the specific enum for more details on this field. For example, "clientip:

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

Free-form text that provides details on the cause of the error.

Returns
TypeDescription
string

setDescription

Free-form text that provides details on the cause of the error.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStatus

Contains additional information about the quota error.

If available, status.code will be non zero.

Returns
TypeDescription
Google\Rpc\Status|null

hasStatus

clearStatus

setStatus

Contains additional information about the quota error.

If available, status.code will be non zero.

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