# Google Cloud Certificate Manager V1 Client - Class CreateTrustConfigRequest (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 CreateTrustConfigRequest.

Request for the `CreateTrustConfig` method.

Generated from protobuf message `google.cloud.certificatemanager.v1.CreateTrustConfigRequest`

## Namespace

Google \\ Cloud \\ CertificateManager \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getParent

Required. The parent resource of the TrustConfig. Must be in the format
`projects/*/locations/*`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setParent

Required. The parent resource of the TrustConfig. Must be in the format
`projects/*/locations/*`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getTrustConfigId

Required. A user-provided name of the TrustConfig. Must match the regexp
`[a-z0-9-]{1,63}`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setTrustConfigId

Required. A user-provided name of the TrustConfig. Must match the regexp
`[a-z0-9-]{1,63}`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getTrustConfig

Required. A definition of the TrustConfig to create.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.TrustConfig|null` |   |

### hasTrustConfig

### clearTrustConfig

### setTrustConfig

Required. A definition of the TrustConfig to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource of the TrustConfig. Must be in the format `projects/*/locations/*`. Please see CertificateManagerClient::locationName() for help formatting this field. |
| `trustConfig` | `https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.TrustConfig` Required. A definition of the TrustConfig to create. |
| `trustConfigId` | `string` Required. A user-provided name of the TrustConfig. Must match the regexp `[a-z0-9-]{1,63}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.CreateTrustConfigRequest` |   |