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

Defines a certificate map entry.

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

## Namespace

Google \\ Cloud \\ CertificateManager \\ V1

## Methods

### __construct

Constructor.

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

### getName

A user-defined name of the Certificate Map Entry. Certificate Map Entry
names must be unique globally and match pattern
`projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.

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

### setName

A user-defined name of the Certificate Map Entry. Certificate Map Entry
names must be unique globally and match pattern
`projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.

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

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

### getDescription

One or more paragraphs of text description of a certificate map entry.

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

### setDescription

One or more paragraphs of text description of a certificate map entry.

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

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

### getCreateTime

Output only. The creation timestamp of a Certificate Map Entry.

| **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 Map Entry.

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

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

### getUpdateTime

Output only. The update timestamp of a Certificate Map Entry.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The update timestamp of a Certificate Map Entry.

| **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 Map Entry.

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

### setLabels

Set of labels associated with a Certificate Map Entry.

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

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

### getHostname

A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression
(`*.example.com`) for a set of hostnames with common suffix. Used as
Server Name Indication (SNI) for selecting a proper certificate.

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

### hasHostname

### setHostname

A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression
(`*.example.com`) for a set of hostnames with common suffix. Used as
Server Name Indication (SNI) for selecting a proper certificate.

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

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

### getMatcher

A predefined matcher for particular cases, other than SNI selection.

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

### hasMatcher

### setMatcher

A predefined matcher for particular cases, other than SNI selection.

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

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

### getCertificates

A set of Certificates defines for the given `hostname`. There can be
defined up to four certificates in each Certificate Map Entry. Each
certificate must match pattern `projects/*/locations/*/certificates/*`.

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

### setCertificates

A set of Certificates defines for the given `hostname`. There can be
defined up to four certificates in each Certificate Map Entry. Each
certificate must match pattern `projects/*/locations/*/certificates/*`.

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

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

### getState

Output only. A serving state of this Certificate Map Entry.

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

### setState

Output only. A serving state of this Certificate Map Entry.

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

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

### getMatch

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