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

Describes a revoked
[Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate).

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

## Namespace

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

## Methods

### __construct

Constructor.

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

### getCertificate

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

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

### setCertificate

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

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

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

### getHexSerialNumber

The serial number of the
[Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate).

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

### setHexSerialNumber

The serial number of the
[Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate).

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

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

### getRevocationReason

The reason the
[Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) was
revoked.

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

### setRevocationReason

The reason the
[Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) was
revoked.

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

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