# Google Cloud Commerce Consumer Procurement V1 Client - Class LicensedUser (1.3.3)

1.3.3 (latest) 1.3.2 1.2.2 1.1.3 1.0.0 0.2.5 0.1.1 Reference documentation and code samples for the Google Cloud Commerce Consumer Procurement V1 Client class LicensedUser.

A licensed user.

Generated from protobuf message `google.cloud.commerce.consumer.procurement.v1.LicensedUser`

## Namespace

Google \\ Cloud \\ Commerce \\ Consumer \\ Procurement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ username` | `string` Username. Format: `name\@domain.com`. |
| `↳ assign_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp when the license was assigned. |
| `↳ recent_usage_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp when the license was recently used. This may not be the most recent usage time, and will be updated regularly (within 24 hours). |

### getUsername

Username.

Format: `name\@domain.com`.

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

### setUsername

Username.

Format: `name\@domain.com`.

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

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

### getAssignTime

Output only. Timestamp when the license was assigned.

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

### hasAssignTime

### clearAssignTime

### setAssignTime

Output only. Timestamp when the license was assigned.

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

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

### getRecentUsageTime

Output only. Timestamp when the license was recently used. This may not be
the most recent usage time, and will be updated regularly (within 24
hours).

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

### hasRecentUsageTime

### clearRecentUsageTime

### setRecentUsageTime

Output only. Timestamp when the license was recently used. This may not be
the most recent usage time, and will be updated regularly (within 24
hours).

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

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