Output only. The trace id that the Google Cloud uses to provision the requested quota. This trace id may be used by the client to contact Cloud support to track the state of a quota preference request. The trace id is only produced for increase requests and is unique for each request. The quota decrease requests do not have a trace id.
Optional. The annotations map for clients to store small amounts of arbitrary data. Do not put PII or other sensitive information here. Seehttps://google.aip.dev/128#annotations
↳ request_origin
int
Output only. The origin of the quota preference request.
getPreferredValue
Required. The preferred value. Must be greater than or equal to -1. If set
to -1, it means the value is "unlimited".
Returns
Type
Description
int|string
setPreferredValue
Required. The preferred value. Must be greater than or equal to -1. If set
to -1, it means the value is "unlimited".
Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
getStateDetail
Output only. Optional details about the state of this quota preference.
Returns
Type
Description
string
setStateDetail
Output only. Optional details about the state of this quota preference.
Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object.
Output only. Granted quota value.
Parameter
Name
Description
var
int|string|null
Returns
Type
Description
$this
getTraceId
Output only. The trace id that the Google Cloud uses to provision the
requested quota. This trace id may be used by the client to contact Cloud
support to track the state of a quota preference request. The trace id is
only produced for increase requests and is unique for each request. The
quota decrease requests do not have a trace id.
Returns
Type
Description
string
setTraceId
Output only. The trace id that the Google Cloud uses to provision the
requested quota. This trace id may be used by the client to contact Cloud
support to track the state of a quota preference request. The trace id is
only produced for increase requests and is unique for each request. The
quota decrease requests do not have a trace id.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getAnnotations
Optional. The annotations map for clients to store small amounts of
arbitrary data. Do not put PII or other sensitive information here. Seehttps://google.aip.dev/128#annotations
Optional. The annotations map for clients to store small amounts of
arbitrary data. Do not put PII or other sensitive information here. Seehttps://google.aip.dev/128#annotations
[[["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 Quotas V1beta Client - Class QuotaConfig (1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/php/docs/reference/cloud-quotas/latest/V1beta.QuotaConfig)\n- [1.4.0](/php/docs/reference/cloud-quotas/1.4.0/V1beta.QuotaConfig)\n- [1.3.1](/php/docs/reference/cloud-quotas/1.3.1/V1beta.QuotaConfig)\n- [1.2.1](/php/docs/reference/cloud-quotas/1.2.1/V1beta.QuotaConfig)\n- [1.1.1](/php/docs/reference/cloud-quotas/1.1.1/V1beta.QuotaConfig)\n- [1.0.1](/php/docs/reference/cloud-quotas/1.0.1/V1beta.QuotaConfig)\n- [0.2.3](/php/docs/reference/cloud-quotas/0.2.3/V1beta.QuotaConfig)\n- [0.1.0](/php/docs/reference/cloud-quotas/0.1.0/V1beta.QuotaConfig) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Cloud Quotas V1beta Client class QuotaConfig.\n\nThe preferred quota configuration.\n\nGenerated from protobuf message `google.api.cloudquotas.v1beta.QuotaConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ CloudQuotas \\\\ V1beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPreferredValue\n\nRequired. The preferred value. Must be greater than or equal to -1. If set\nto -1, it means the value is \"unlimited\".\n\n### setPreferredValue\n\nRequired. The preferred value. Must be greater than or equal to -1. If set\nto -1, it means the value is \"unlimited\".\n\n### getStateDetail\n\nOutput only. Optional details about the state of this quota preference.\n\n### setStateDetail\n\nOutput only. Optional details about the state of this quota preference.\n\n### getGrantedValue\n\nOutput only. Granted quota value.\n\n### hasGrantedValue\n\n### clearGrantedValue\n\n### getGrantedValueUnwrapped\n\nReturns the unboxed value from `getGrantedValue()`\n\nOutput only. Granted quota value.\n\n### setGrantedValue\n\nOutput only. Granted quota value.\n\n### setGrantedValueUnwrapped\n\nSets the field by wrapping a primitive type in a Google\\\\Protobuf\\\\Int64Value object.\n\nOutput only. Granted quota value.\n\n### getTraceId\n\nOutput only. The trace id that the Google Cloud uses to provision the\nrequested quota. This trace id may be used by the client to contact Cloud\nsupport to track the state of a quota preference request. The trace id is\nonly produced for increase requests and is unique for each request. The\nquota decrease requests do not have a trace id.\n\n### setTraceId\n\nOutput only. The trace id that the Google Cloud uses to provision the\nrequested quota. This trace id may be used by the client to contact Cloud\nsupport to track the state of a quota preference request. The trace id is\nonly produced for increase requests and is unique for each request. The\nquota decrease requests do not have a trace id.\n\n### getAnnotations\n\nOptional. The annotations map for clients to store small amounts of\narbitrary data. Do not put PII or other sensitive information here. See\n\u003chttps://google.aip.dev/128#annotations\u003e\n\n### setAnnotations\n\nOptional. The annotations map for clients to store small amounts of\narbitrary data. Do not put PII or other sensitive information here. See\n\u003chttps://google.aip.dev/128#annotations\u003e\n\n### getRequestOrigin\n\nOutput only. The origin of the quota preference request.\n\n### setRequestOrigin\n\nOutput only. The origin of the quota preference request."]]