# Cloud Quotas V1 API - Class Google::Cloud::CloudQuotas::V1::QuotaConfig (v2.4.0)

2.4.0 (latest) 2.3.0 2.2.2 2.1.0 2.0.1 1.3.0 1.2.0 1.1.0 1.0.1 0.3.3 0.2.2 0.1.0 Reference documentation and code samples for the Cloud Quotas V1 API class Google::Cloud::CloudQuotas::V1::QuotaConfig.

The preferred quota configuration.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #annotations

    def annotations() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. The annotations map for clients to store small amounts of arbitrary data. Do not put PII or other sensitive information here. See https://google.aip.dev/128#annotations

### #annotations=

    def annotations=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. The annotations map for clients to store small amounts of arbitrary data. Do not put PII or other sensitive information here. See https://google.aip.dev/128#annotations
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. The annotations map for clients to store small amounts of arbitrary data. Do not put PII or other sensitive information here. See https://google.aip.dev/128#annotations

### #granted_value

    def granted_value() -> ::Google::Protobuf::Int64Value

**Returns**

- ([::Google::Protobuf::Int64Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1/latest/Google-Protobuf-Int64Value)) --- Output only. Granted quota value.

### #preferred_value

    def preferred_value() -> ::Integer

**Returns**

- (::Integer) --- Required. The preferred value. Must be greater than or equal to -1. If set to -1, it means the value is "unlimited".

### #preferred_value=

    def preferred_value=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Required. The preferred value. Must be greater than or equal to -1. If set to -1, it means the value is "unlimited".
**Returns**

- (::Integer) --- Required. The preferred value. Must be greater than or equal to -1. If set to -1, it means the value is "unlimited".

### #request_origin

    def request_origin() -> ::Google::Cloud::CloudQuotas::V1::QuotaConfig::Origin

**Returns**

- ([::Google::Cloud::CloudQuotas::V1::QuotaConfig::Origin](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1/latest/Google-Cloud-CloudQuotas-V1-QuotaConfig-Origin)) --- Output only. The origin of the quota preference request.

### #state_detail

    def state_detail() -> ::String

**Returns**

- (::String) --- Output only. Optional details about the state of this quota preference.

### #trace_id

    def trace_id() -> ::String

**Returns**

- (::String) --- 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.