Reference documentation and code samples for the Google Cloud Service Control V1 Client class Code.
Error codes related to project config validations are deprecated since the
quota controller methods do not perform these validations. Instead services
have to call the Check method, without quota_properties field, to perform
these validations before calling the quota controller methods. These
methods check only for project deletion to be wipe out compliant.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Service Control V1 Client - Class Code (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-service-control/latest/V1.QuotaError.Code)\n- [2.0.3](/php/docs/reference/cloud-service-control/2.0.3/V1.QuotaError.Code)\n- [1.4.4](/php/docs/reference/cloud-service-control/1.4.4/V1.QuotaError.Code)\n- [1.3.0](/php/docs/reference/cloud-service-control/1.3.0/V1.QuotaError.Code)\n- [1.2.1](/php/docs/reference/cloud-service-control/1.2.1/V1.QuotaError.Code)\n- [1.1.1](/php/docs/reference/cloud-service-control/1.1.1/V1.QuotaError.Code)\n- [1.0.6](/php/docs/reference/cloud-service-control/1.0.6/V1.QuotaError.Code) \nReference documentation and code samples for the Google Cloud Service Control V1 Client class Code.\n\nError codes related to project config validations are deprecated since the\nquota controller methods do not perform these validations. Instead services\nhave to call the Check method, without quota_properties field, to perform\nthese validations before calling the quota controller methods. These\nmethods check only for project deletion to be wipe out compliant.\n\nProtobuf type `google.api.servicecontrol.v1.QuotaError.Code`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ServiceControl \\\\ V1 \\\\ QuotaError\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### UNSPECIFIED\n\n Value: 0\n\nThis is never used.\n\nGenerated from protobuf enum `UNSPECIFIED = 0;`\n\n### RESOURCE_EXHAUSTED\n\n Value: 8\n\nQuota allocation failed.\n\nSame as [google.rpc.Code.RESOURCE_EXHAUSTED](https://cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Code.html#_Google_Rpc_Code__RESOURCE_EXHAUSTED).\n\nGenerated from protobuf enum `RESOURCE_EXHAUSTED = 8;`\n\n### BILLING_NOT_ACTIVE\n\n Value: 107\n\nConsumer cannot access the service because the service requires active\nbilling.\n\nGenerated from protobuf enum `BILLING_NOT_ACTIVE = 107;`\n\n### PROJECT_DELETED\n\n Value: 108\n\nConsumer's project has been marked as deleted (soft deletion).\n\nGenerated from protobuf enum `PROJECT_DELETED = 108;`\n\n### API_KEY_INVALID\n\n Value: 105\n\nSpecified API key is invalid.\n\nGenerated from protobuf enum `API_KEY_INVALID = 105;`\n\n### API_KEY_EXPIRED\n\n Value: 112\n\nSpecified API Key has expired.\n\nGenerated from protobuf enum `API_KEY_EXPIRED = 112;`"]]