# Stackdriver Monitoring V3 Client - Class GetNotificationChannelVerificationCodeResponse (2.2.2)

2.2.2 (latest) 2.2.1 2.1.2 2.0.1 1.12.1 1.11.1 1.10.3 1.9.0 1.8.0 1.7.1 1.6.0 1.5.1 1.4.0 1.3.2 1.2.2 Reference documentation and code samples for the Stackdriver Monitoring V3 Client class GetNotificationChannelVerificationCodeResponse.

The `GetNotificationChannelVerificationCode` request.

Generated from protobuf message `google.monitoring.v3.GetNotificationChannelVerificationCodeResponse`

## Namespace

Google \\ Cloud \\ Monitoring \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ code` | `string` The verification code, which may be used to verify other channels that have an equivalent identity (i.e. other channels of the same type with the same fingerprint such as other email channels with the same email address or other sms channels with the same number). |
| `↳ expire_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The expiration time associated with the code that was returned. If an expiration was provided in the request, this is the minimum of the requested expiration in the request and the max permitted expiration. |

### getCode

The verification code, which may be used to verify other channels
that have an equivalent identity (i.e. other channels of the same
type with the same fingerprint such as other email channels with
the same email address or other sms channels with the same number).

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

### setCode

The verification code, which may be used to verify other channels
that have an equivalent identity (i.e. other channels of the same
type with the same fingerprint such as other email channels with
the same email address or other sms channels with the same number).

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

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

### getExpireTime

The expiration time associated with the code that was returned. If
an expiration was provided in the request, this is the minimum of the
requested expiration in the request and the max permitted expiration.

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

### hasExpireTime

### clearExpireTime

### setExpireTime

The expiration time associated with the code that was returned. If
an expiration was provided in the request, this is the minimum of the
requested expiration in the request and the max permitted expiration.

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

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