# Stackdriver Logging V2 Client - Class BucketMetadata (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 BucketMetadata.

Metadata for LongRunningUpdateBucket Operations.

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

## 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. |
| `↳ create_bucket_request` | `https://docs.cloud.google.com/php/docs/reference/cloud-logging/latest/V2.CreateBucketRequest` LongRunningCreateBucket RPC request. |
| `↳ update_bucket_request` | `https://docs.cloud.google.com/php/docs/reference/cloud-logging/latest/V2.UpdateBucketRequest` LongRunningUpdateBucket RPC request. |

### 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` |   |

### getCreateBucketRequest

LongRunningCreateBucket RPC request.

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

### hasCreateBucketRequest

### setCreateBucketRequest

LongRunningCreateBucket RPC request.

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

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

### getUpdateBucketRequest

LongRunningUpdateBucket RPC request.

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

### hasUpdateBucketRequest

### setUpdateBucketRequest

LongRunningUpdateBucket RPC request.

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

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

### getRequest

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