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

Sources of CA certificates to install in the broker's truststore.

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

## Namespace

Google \\ Cloud \\ ManagedKafka \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cas_configs` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-managedkafka/latest/V1.TrustConfig.CertificateAuthorityServiceConfig>` Optional. Configuration for the Google Certificate Authority Service. Maximum 10. |

### getCasConfigs

Optional. Configuration for the Google Certificate Authority Service.

Maximum 10.

| **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.TrustConfig.CertificateAuthorityServiceConfig>` |   |

### setCasConfigs

Optional. Configuration for the Google Certificate Authority Service.

Maximum 10.

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

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