# Google Certificate Authority Service V1 Client - Class CertificateRevocationList (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 CertificateRevocationList.

A
[CertificateRevocationList](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateRevocationList)
corresponds to a signed X.509 certificate Revocation List (CRL). A CRL
contains the serial numbers of certificates that should no longer be trusted.

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

## Namespace

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

## Methods

### __construct

Constructor.

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

### getName

Identifier. The resource name for this
[CertificateRevocationList](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateRevocationList)
in the format `projects/*/locations/*/caPools/*certificateAuthorities/*/
certificateRevocationLists/*`.

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

### setName

Identifier. The resource name for this
[CertificateRevocationList](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateRevocationList)
in the format `projects/*/locations/*/caPools/*certificateAuthorities/*/
certificateRevocationLists/*`.

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

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

### getSequenceNumber

Output only. The CRL sequence number that appears in pem_crl.

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

### setSequenceNumber

Output only. The CRL sequence number that appears in pem_crl.

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

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

### getRevokedCertificates

Output only. The revoked serial numbers that appear in pem_crl.

| **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.CertificateRevocationList.RevokedCertificate>` |   |

### setRevokedCertificates

Output only. The revoked serial numbers that appear in pem_crl.

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

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

### getPemCrl

Output only. The PEM-encoded X.509 CRL.

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

### setPemCrl

Output only. The PEM-encoded X.509 CRL.

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

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

### getAccessUrl

Output only. The location where 'pem_crl' can be accessed.

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

### setAccessUrl

Output only. The location where 'pem_crl' can be accessed.

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

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

### getState

Output only. The
[State](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateRevocationList.State)
for this
[CertificateRevocationList](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateRevocationList).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateRevocationList.State). |

### setState

Output only. The
[State](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateRevocationList.State)
for this
[CertificateRevocationList](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateRevocationList).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateRevocationList.State). |

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

### getCreateTime

Output only. The time at which this
[CertificateRevocationList](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateRevocationList)
was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time at which this
[CertificateRevocationList](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateRevocationList)
was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. The time at which this
[CertificateRevocationList](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateRevocationList)
was updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time at which this
[CertificateRevocationList](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateRevocationList)
was updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getRevisionId

Output only. The revision ID of this
[CertificateRevocationList](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateRevocationList).

A new revision is committed whenever a new CRL is published. The format is
an 8-character hexadecimal string.

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

### setRevisionId

Output only. The revision ID of this
[CertificateRevocationList](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateRevocationList).

A new revision is committed whenever a new CRL is published. The format is
an 8-character hexadecimal string.

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

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

### getLabels

Optional. Labels with user-defined metadata.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Optional. Labels with user-defined metadata.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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