# Google Cloud Managed Kafka V1 Client - Class AccessConfig (0.8.0)

0.8.0 (latest) 0.7.2 0.6.1 0.5.0 0.4.1 0.3.1 0.2.3 0.1.3 Reference documentation and code samples for the Google Cloud Managed Kafka V1 Client class AccessConfig.

The configuration of access to the Kafka cluster.

Generated from protobuf message `google.cloud.managedkafka.v1.AccessConfig`

## Namespace

Google \\ Cloud \\ ManagedKafka \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ network_configs` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-managedkafka/latest/V1.NetworkConfig>` Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified. |

### getNetworkConfigs

Required. Virtual Private Cloud (VPC) networks that must be granted direct
access to the Kafka cluster. Minimum of 1 network is required. Maximum 10
networks can be specified.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-managedkafka/latest/V1.NetworkConfig>` |   |

### setNetworkConfigs

Required. Virtual Private Cloud (VPC) networks that must be granted direct
access to the Kafka cluster. Minimum of 1 network is required. Maximum 10
networks can be specified.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-managedkafka/latest/V1.NetworkConfig>` |

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