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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
string |
setOperationId
The same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAllocateErrors
Indicates the decision of the allocate.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setAllocateErrors
Indicates the decision of the allocate.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\ServiceControl\V1\QuotaError>
|
Returns | |
---|---|
Type | Description |
$this |
getQuotaMetrics
Quota metrics to indicate the result of allocation. Depending on the request, one or more of the following metrics will be included:
- 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"
- The quota limit reached condition will be specified using the following boolean metric : "serviceruntime.googleapis.com/quota/exceeded"
Returns | |
---|---|
Type | Description |
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:
- 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"
- The quota limit reached condition will be specified using the following boolean metric : "serviceruntime.googleapis.com/quota/exceeded"
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\ServiceControl\V1\MetricValueSet>
|
Returns | |
---|---|
Type | Description |
$this |
getServiceConfigId
ID of the actual config used to process the request.
Returns | |
---|---|
Type | Description |
string |
setServiceConfigId
ID of the actual config used to process the request.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |