Google Cloud Service Control V1 Client - Class AllocateQuotaResponse (1.3.0)

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

Response message for the AllocateQuota method.

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

Namespace

Google \ Cloud \ ServiceControl \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ operation_id string

The same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes.

↳ allocate_errors array<Google\Cloud\ServiceControl\V1\QuotaError>

Indicates the decision of the allocate.

↳ quota_metrics array<Google\Cloud\ServiceControl\V1\MetricValueSet>

Quota metrics to indicate the result of allocation. Depending on the request, one or more of the following metrics will be included: 1. Per quota group or per quota metric incremental usage will be specified using the following delta metric : "serviceruntime.googleapis.com/api/consumer/quota_used_count" 2. The quota limit reached condition will be specified using the following boolean metric : "serviceruntime.googleapis.com/quota/exceeded"

↳ service_config_id string

ID of the actual config used to process the request.

getOperationId

The same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes.

Returns
TypeDescription
string

setOperationId

The same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAllocateErrors

Indicates the decision of the allocate.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAllocateErrors

Indicates the decision of the allocate.

Parameter
NameDescription
var array<Google\Cloud\ServiceControl\V1\QuotaError>
Returns
TypeDescription
$this

getQuotaMetrics

Quota metrics to indicate the result of allocation. Depending on the request, one or more of the following metrics will be included:

  1. Per quota group or per quota metric incremental usage will be specified using the following delta metric : "serviceruntime.googleapis.com/api/consumer/quota_used_count"
  2. The quota limit reached condition will be specified using the following boolean metric : "serviceruntime.googleapis.com/quota/exceeded"
Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setQuotaMetrics

Quota metrics to indicate the result of allocation. Depending on the request, one or more of the following metrics will be included:

  1. Per quota group or per quota metric incremental usage will be specified using the following delta metric : "serviceruntime.googleapis.com/api/consumer/quota_used_count"
  2. The quota limit reached condition will be specified using the following boolean metric : "serviceruntime.googleapis.com/quota/exceeded"
Parameter
NameDescription
var array<Google\Cloud\ServiceControl\V1\MetricValueSet>
Returns
TypeDescription
$this

getServiceConfigId

ID of the actual config used to process the request.

Returns
TypeDescription
string

setServiceConfigId

ID of the actual config used to process the request.

Parameter
NameDescription
var string
Returns
TypeDescription
$this