# Google Cloud Retail V2 Client - Class PurgeProductsMetadata (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.1 2.1.3 2.0.0 1.7.0 1.6.4 1.5.0 1.4.2 1.3.1 1.2.1 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Retail V2 Client class PurgeProductsMetadata.

Metadata related to the progress of the PurgeProducts operation.

This will be returned by the google.longrunning.Operation.metadata field.

Generated from protobuf message `google.cloud.retail.v2.PurgeProductsMetadata`

## Namespace

Google \\ Cloud \\ Retail \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Operation create time. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Operation last update time. If the operation is done, this is also the finish time. |
| `↳ success_count` | `int|string` Count of entries that were deleted successfully. |
| `↳ failure_count` | `int|string` Count of entries that encountered errors while processing. |

### getCreateTime

Operation create time.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Operation create time.

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

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

### getUpdateTime

Operation last update time. If the operation is done, this is also the
finish time.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Operation last update time. If the operation is done, this is also the
finish time.

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

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

### getSuccessCount

Count of entries that were deleted successfully.

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

### setSuccessCount

Count of entries that were deleted successfully.

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

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

### getFailureCount

Count of entries that encountered errors while processing.

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

### setFailureCount

Count of entries that encountered errors while processing.

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

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