# Google Cloud Managed Kafka V1 Client - Class ConnectAccessConfig (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 ConnectAccessConfig.

The configuration of access to the Kafka Connect cluster.

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

## 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.ConnectNetworkConfig>` Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka Connect 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 Connect 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.ConnectNetworkConfig>` |   |

### setNetworkConfigs

Required.

Virtual Private Cloud (VPC) networks that must be granted direct access to
the Kafka Connect 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.ConnectNetworkConfig>` |

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