# Google Cloud Certificate Manager V1 Client - Class TrustStore (1.1.2)

1.1.2 (latest) 1.1.1 1.0.4 0.7.3 0.6.0 0.5.2 0.4.2 0.3.7 Reference documentation and code samples for the Google Cloud Certificate Manager V1 Client class TrustStore.

Defines a trust store.

Generated from protobuf message `google.cloud.certificatemanager.v1.TrustConfig.TrustStore`

## Namespace

Google \\ Cloud \\ CertificateManager \\ V1 \\ TrustConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ trust_anchors` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.TrustConfig.TrustAnchor>` List of Trust Anchors to be used while performing validation against a given TrustStore. |
| `↳ intermediate_cas` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.TrustConfig.IntermediateCA>` Set of intermediate CA certificates used for the path building phase of chain validation. The field is currently not supported if TrustConfig is used for the workload certificate feature. |

### getTrustAnchors

List of Trust Anchors to be used while performing validation
against a given TrustStore.

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

### setTrustAnchors

List of Trust Anchors to be used while performing validation
against a given TrustStore.

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

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

### getIntermediateCas

Set of intermediate CA certificates used for the path building
phase of chain validation.

The field is currently not supported if TrustConfig is used for the
workload certificate feature.

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

### setIntermediateCas

Set of intermediate CA certificates used for the path building
phase of chain validation.

The field is currently not supported if TrustConfig is used for the
workload certificate feature.

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

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