# Stackdriver Logging V2 Client - Class CopyLogEntriesMetadata (2.1.0)

2.1.0 (latest) 2.0.0 1.34.5 1.33.0 1.32.3 1.31.3 1.30.3 1.29.0 1.28.5 1.27.1 1.26.0 1.25.5 1.24.10 Reference documentation and code samples for the Stackdriver Logging V2 Client class CopyLogEntriesMetadata.

Metadata for CopyLogEntries long running operations.

Generated from protobuf message `google.logging.v2.CopyLogEntriesMetadata`

## Namespace

Google \\ Cloud \\ Logging \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The create time of an operation. |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The end time of an operation. |
| `↳ state` | `int` State of an operation. |
| `↳ cancellation_requested` | `bool` Identifies whether the user has requested cancellation of the operation. |
| `↳ request` | `https://docs.cloud.google.com/php/docs/reference/cloud-logging/latest/V2.CopyLogEntriesRequest` CopyLogEntries RPC request. |
| `↳ progress` | `int` Estimated progress of the operation (0 - 100%). |
| `↳ writer_identity` | `string` The IAM identity of a service account that must be granted access to the destination. If the service account is not granted permission to the destination within an hour, the operation will be cancelled. For example: `"serviceAccount:foo\@bar.com"` |

### getStartTime

The create time of an operation.

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

### hasStartTime

### clearStartTime

### setStartTime

The create time of an operation.

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

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

### getEndTime

The end time of an operation.

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

### hasEndTime

### clearEndTime

### setEndTime

The end time of an operation.

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

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

### getState

State of an operation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [OperationState](https://docs.cloud.google.com/php/docs/reference/cloud-logging/latest/V2.OperationState). |

### setState

State of an operation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [OperationState](https://docs.cloud.google.com/php/docs/reference/cloud-logging/latest/V2.OperationState). |

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

### getCancellationRequested

Identifies whether the user has requested cancellation of the operation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setCancellationRequested

Identifies whether the user has requested cancellation of the operation.

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

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

### getRequest

CopyLogEntries RPC request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-logging/latest/V2.CopyLogEntriesRequest|null` |   |

### hasRequest

### clearRequest

### setRequest

CopyLogEntries RPC request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-logging/latest/V2.CopyLogEntriesRequest` |

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

### getProgress

Estimated progress of the operation (0 - 100%).

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

### setProgress

Estimated progress of the operation (0 - 100%).

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

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

### getWriterIdentity

The IAM identity of a service account that must be granted access to the
destination.

If the service account is not granted permission to the destination within
an hour, the operation will be cancelled.
For example: `"serviceAccount:foo\@bar.com"`

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

### setWriterIdentity

The IAM identity of a service account that must be granted access to the
destination.

If the service account is not granted permission to the destination within
an hour, the operation will be cancelled.
For example: `"serviceAccount:foo\@bar.com"`

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

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