class Violation extends Message

A message type used to describe a single quota violation. For example, a daily quota or a custom quota that was exceeded.

Generated from protobuf message google.rpc.QuotaFailure.Violation

Methods

__construct(array $data = NULL)

Constructor.

string
getSubject()

The subject on which the quota check failed.

$this
setSubject(string $var)

The subject on which the quota check failed.

string
getDescription()

A description of how the quota check failed. Clients can use this description to find more about the quota configuration in the service's public documentation, or find the relevant quota limit to adjust through developer console.

$this
setDescription(string $var)

A description of how the quota check failed. Clients can use this description to find more about the quota configuration in the service's public documentation, or find the relevant quota limit to adjust through developer console.

Details

at line 58
__construct(array $data = NULL)

Constructor.

Parameters

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

@type string $subject
      The subject on which the quota check failed.
      For example, "clientip:<ip address of client>" or "project:<Google
      developer project id>".
@type string $description
      A description of how the quota check failed. Clients can use this
      description to find more about the quota configuration in the service's
      public documentation, or find the relevant quota limit to adjust through
      developer console.
      For example: "Service disabled" or "Daily Limit for read operations
      exceeded".

}

at line 71
string getSubject()

The subject on which the quota check failed.

For example, "clientip:" or "project:".

Generated from protobuf field string subject = 1;

Return Value

string

at line 85
$this setSubject(string $var)

The subject on which the quota check failed.

For example, "clientip:" or "project:".

Generated from protobuf field string subject = 1;

Parameters

string $var

Return Value

$this

at line 104
string getDescription()

A description of how the quota check failed. Clients can use this description to find more about the quota configuration in the service's public documentation, or find the relevant quota limit to adjust through developer console.

For example: "Service disabled" or "Daily Limit for read operations exceeded".

Generated from protobuf field string description = 2;

Return Value

string

at line 121
$this setDescription(string $var)

A description of how the quota check failed. Clients can use this description to find more about the quota configuration in the service's public documentation, or find the relevant quota limit to adjust through developer console.

For example: "Service disabled" or "Daily Limit for read operations exceeded".

Generated from protobuf field string description = 2;

Parameters

string $var

Return Value

$this