# Google Analytics Data V1beta Client - Class PropertyQuota (0.24.0)

0.24.0 (latest) 0.23.3 0.22.3 0.21.1 0.20.1 0.19.0 0.18.0 0.17.1 0.16.4 0.14.0 0.13.0 0.12.0 0.11.2 0.10.1 0.9.5

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Analytics Data V1beta Client class PropertyQuota.

Current state of all quotas for this Analytics Property. If any quota for a
property is exhausted, all requests to that property will return Resource
Exhausted errors.

Generated from protobuf message `google.analytics.data.v1beta.PropertyQuota`

## Namespace

Google \\ Analytics \\ Data \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ tokens_per_day` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus` Standard Analytics Properties can use up to 200,000 tokens per day; Analytics 360 Properties can use 2,000,000 tokens per day. Most requests consume fewer than 10 tokens. |
| `↳ tokens_per_hour` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus` Standard Analytics Properties can use up to 40,000 tokens per hour; Analytics 360 Properties can use 400,000 tokens per hour. An API request consumes a single number of tokens, and that number is deducted from all of the hourly, daily, and per project hourly quotas. |
| `↳ concurrent_requests` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus` Standard Analytics Properties can send up to 10 concurrent requests; Analytics 360 Properties can use up to 50 concurrent requests. |
| `↳ server_errors_per_project_per_hour` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus` Standard Analytics Properties and cloud project pairs can have up to 10 server errors per hour; Analytics 360 Properties and cloud project pairs can have up to 50 server errors per hour. |
| `↳ potentially_thresholded_requests_per_hour` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus` Analytics Properties can send up to 120 requests with potentially thresholded dimensions per hour. In a batch request, each report request is individually counted for this quota if the request contains potentially thresholded dimensions. |
| `↳ tokens_per_project_per_hour` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus` Analytics Properties can use up to 35% of their tokens per project per hour. This amounts to standard Analytics Properties can use up to 14,000 tokens per project per hour, and Analytics 360 Properties can use 140,000 tokens per project per hour. An API request consumes a single number of tokens, and that number is deducted from all of the hourly, daily, and per project hourly quotas. |

### getTokensPerDay

Standard Analytics Properties can use up to 200,000 tokens per day;
Analytics 360 Properties can use 2,000,000 tokens per day. Most requests
consume fewer than 10 tokens.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus|null` |   |

### hasTokensPerDay

### clearTokensPerDay

### setTokensPerDay

Standard Analytics Properties can use up to 200,000 tokens per day;
Analytics 360 Properties can use 2,000,000 tokens per day. Most requests
consume fewer than 10 tokens.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTokensPerHour

Standard Analytics Properties can use up to 40,000 tokens per hour;
Analytics 360 Properties can use 400,000 tokens per hour. An API request
consumes a single number of tokens, and that number is deducted from all of
the hourly, daily, and per project hourly quotas.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus|null` |   |

### hasTokensPerHour

### clearTokensPerHour

### setTokensPerHour

Standard Analytics Properties can use up to 40,000 tokens per hour;
Analytics 360 Properties can use 400,000 tokens per hour. An API request
consumes a single number of tokens, and that number is deducted from all of
the hourly, daily, and per project hourly quotas.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getConcurrentRequests

Standard Analytics Properties can send up to 10 concurrent requests;
Analytics 360 Properties can use up to 50 concurrent requests.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus|null` |   |

### hasConcurrentRequests

### clearConcurrentRequests

### setConcurrentRequests

Standard Analytics Properties can send up to 10 concurrent requests;
Analytics 360 Properties can use up to 50 concurrent requests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServerErrorsPerProjectPerHour

Standard Analytics Properties and cloud project pairs can have up to 10
server errors per hour; Analytics 360 Properties and cloud project pairs
can have up to 50 server errors per hour.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus|null` |   |

### hasServerErrorsPerProjectPerHour

### clearServerErrorsPerProjectPerHour

### setServerErrorsPerProjectPerHour

Standard Analytics Properties and cloud project pairs can have up to 10
server errors per hour; Analytics 360 Properties and cloud project pairs
can have up to 50 server errors per hour.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPotentiallyThresholdedRequestsPerHour

Analytics Properties can send up to 120 requests with potentially
thresholded dimensions per hour. In a batch request, each report request
is individually counted for this quota if the request contains potentially
thresholded dimensions.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus|null` |   |

### hasPotentiallyThresholdedRequestsPerHour

### clearPotentiallyThresholdedRequestsPerHour

### setPotentiallyThresholdedRequestsPerHour

Analytics Properties can send up to 120 requests with potentially
thresholded dimensions per hour. In a batch request, each report request
is individually counted for this quota if the request contains potentially
thresholded dimensions.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTokensPerProjectPerHour

Analytics Properties can use up to 35% of their tokens per project per
hour. This amounts to standard Analytics Properties can use up to 14,000
tokens per project per hour, and Analytics 360 Properties can use 140,000
tokens per project per hour. An API request consumes a single number of
tokens, and that number is deducted from all of the hourly, daily, and per
project hourly quotas.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus|null` |   |

### hasTokensPerProjectPerHour

### clearTokensPerProjectPerHour

### setTokensPerProjectPerHour

Analytics Properties can use up to 35% of their tokens per project per
hour. This amounts to standard Analytics Properties can use up to 14,000
tokens per project per hour, and Analytics 360 Properties can use 140,000
tokens per project per hour. An API request consumes a single number of
tokens, and that number is deducted from all of the hourly, daily, and per
project hourly quotas.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QuotaStatus` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |