# Google Cloud Redis V1 Client - Class TlsCertificate (2.2.3)

2.2.3 (latest) 2.2.2 2.1.6 2.0.0 1.9.5 1.8.4 1.7.0 1.6.12 Reference documentation and code samples for the Google Cloud Redis V1 Client class TlsCertificate.

TlsCertificate Resource

Generated from protobuf message `google.cloud.redis.v1.TlsCertificate`

## Namespace

Google \\ Cloud \\ Redis \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ serial_number` | `string` Serial number, as extracted from the certificate. |
| `↳ cert` | `string` PEM representation. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`. |
| `↳ expire_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`. |
| `↳ sha1_fingerprint` | `string` Sha1 Fingerprint of the certificate. |

### getSerialNumber

Serial number, as extracted from the certificate.

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

### setSerialNumber

Serial number, as extracted from the certificate.

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

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

### getCert

PEM representation.

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

### setCert

PEM representation.

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

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

### getCreateTime

Output only. The time when the certificate was created in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example
`2020-05-18T00:00:00.094Z`.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time when the certificate was created in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example
`2020-05-18T00:00:00.094Z`.

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

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

### getExpireTime

Output only. The time when the certificate expires in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example
`2020-05-18T00:00:00.094Z`.

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

### hasExpireTime

### clearExpireTime

### setExpireTime

Output only. The time when the certificate expires in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example
`2020-05-18T00:00:00.094Z`.

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

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

### getSha1Fingerprint

Sha1 Fingerprint of the certificate.

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

### setSha1Fingerprint

Sha1 Fingerprint of the certificate.

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

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