# Google Certificate Authority Service V1 Client - Class CertificateExtensionConstraints (2.4.0)

2.4.0 (latest) 2.3.0 2.2.2 2.1.1 2.0.3 1.7.3 1.5.0 1.4.2 1.3.1 1.2.2 1.1.0 1.0.3 Reference documentation and code samples for the Google Certificate Authority Service V1 Client class CertificateExtensionConstraints.

Describes a set of X.509 extensions that may be part of some certificate
issuance controls.

Generated from protobuf message `google.cloud.security.privateca.v1.CertificateExtensionConstraints`

## Namespace

Google \\ Cloud \\ Security \\ PrivateCA \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ known_extensions` | `int[]` Optional. A set of named X.509 extensions. Will be combined with [additional_extensions](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateExtensionConstraints#_Google_Cloud_Security_PrivateCA_V1_CertificateExtensionConstraints__getAdditionalExtensions__) to determine the full set of X.509 extensions. |
| `↳ additional_extensions` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.ObjectId>` Optional. A set of [ObjectIds](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.ObjectId) identifying custom X.509 extensions. Will be combined with [known_extensions](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateExtensionConstraints#_Google_Cloud_Security_PrivateCA_V1_CertificateExtensionConstraints__getKnownExtensions__) to determine the full set of X.509 extensions. |

### getKnownExtensions

Optional. A set of named X.509 extensions. Will be combined with
[additional_extensions](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateExtensionConstraints#_Google_Cloud_Security_PrivateCA_V1_CertificateExtensionConstraints__getAdditionalExtensions__)
to determine the full set of X.509 extensions.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>` |   |

### setKnownExtensions

Optional. A set of named X.509 extensions. Will be combined with
[additional_extensions](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateExtensionConstraints#_Google_Cloud_Security_PrivateCA_V1_CertificateExtensionConstraints__getAdditionalExtensions__)
to determine the full set of X.509 extensions.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]` |

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

### getAdditionalExtensions

Optional. A set of [ObjectIds](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.ObjectId)
identifying custom X.509 extensions. Will be combined with
[known_extensions](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateExtensionConstraints#_Google_Cloud_Security_PrivateCA_V1_CertificateExtensionConstraints__getKnownExtensions__)
to determine the full set of X.509 extensions.

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

### setAdditionalExtensions

Optional. A set of [ObjectIds](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.ObjectId)
identifying custom X.509 extensions. Will be combined with
[known_extensions](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateExtensionConstraints#_Google_Cloud_Security_PrivateCA_V1_CertificateExtensionConstraints__getKnownExtensions__)
to determine the full set of X.509 extensions.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.ObjectId>` |

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