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

Defines TLS certificate.

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

## Namespace

Google \\ Cloud \\ CertificateManager \\ V1

## Methods

### __construct

Constructor.

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

### getName

A user-defined name of the certificate. Certificate names must be unique
globally and match pattern `projects/*/locations/*/certificates/*`.

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

### setName

A user-defined name of the certificate. Certificate names must be unique
globally and match pattern `projects/*/locations/*/certificates/*`.

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

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

### getDescription

One or more paragraphs of text description of a certificate.

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

### setDescription

One or more paragraphs of text description of a certificate.

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

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

### getCreateTime

Output only. The creation timestamp of a Certificate.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The creation timestamp of a Certificate.

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

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

### getUpdateTime

Output only. The last update timestamp of a Certificate.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The last update timestamp of a Certificate.

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

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

### getLabels

Set of labels associated with a Certificate.

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

### setLabels

Set of labels associated with a Certificate.

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

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

### getSelfManaged

If set, defines data of a self-managed certificate.

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

### hasSelfManaged

### setSelfManaged

If set, defines data of a self-managed certificate.

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

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

### getManaged

If set, contains configuration and state of a managed certificate.

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

### hasManaged

### setManaged

If set, contains configuration and state of a managed certificate.

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

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

### getSanDnsnames

Output only. The list of Subject Alternative Names of dnsName type defined
in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
haven't been provisioned yet have this field populated with a value of the
managed.domains field.

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

### setSanDnsnames

Output only. The list of Subject Alternative Names of dnsName type defined
in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
haven't been provisioned yet have this field populated with a value of the
managed.domains field.

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

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

### getPemCertificate

Output only. The PEM-encoded certificate chain.

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

### setPemCertificate

Output only. The PEM-encoded certificate chain.

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

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

### getExpireTime

Output only. The expiry timestamp of a Certificate.

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

### hasExpireTime

### clearExpireTime

### setExpireTime

Output only. The expiry timestamp of a Certificate.

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

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

### getScope

Immutable. The scope of the certificate.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Scope](https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.Certificate.Scope). |

### setScope

Immutable. The scope of the certificate.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Scope](https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.Certificate.Scope). |

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

### getType

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