1.2.3 (latest) 1.1.2 1.0.5 0.4.5 0.3.3 0.2.2 0.1.7 Reference documentation and code samples for the Google Cloud Api Keys V2 Client class AndroidKeyRestrictions.

The Android apps that are allowed to use the key.

Generated from protobuf message `google.api.apikeys.v2.AndroidKeyRestrictions`

## Namespace

Google \\ Cloud \\ ApiKeys \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ allowed_applications` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-api-keys/latest/V2.AndroidApplication>` A list of Android applications that are allowed to make API calls with this key. |

### getAllowedApplications

A list of Android applications that are allowed to make API calls with
this key.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-api-keys/latest/V2.AndroidApplication>` |   |

### setAllowedApplications

A list of Android applications that are allowed to make API calls with
this key.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-api-keys/latest/V2.AndroidApplication>` |

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