# Google Cloud Storage Batch Operations V1 Client - Class GetBucketOperationRequest (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.1 0.2.1 0.1.2 Reference documentation and code samples for the Google Cloud Storage Batch Operations V1 Client class GetBucketOperationRequest.

Message for getting a BucketOperation.

Generated from protobuf message `google.cloud.storagebatchoperations.v1.GetBucketOperationRequest`

## Namespace

Google \\ Cloud \\ StorageBatchOperations \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. `name` of the bucket operation to retrieve. Format: projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}. |

### getName

Required. `name` of the bucket operation to retrieve.

Format:
projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}.

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

### setName

Required. `name` of the bucket operation to retrieve.

Format:
projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. `name` of the bucket operation to retrieve. Format: projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}. Please see StorageBatchOperationsClient::bucketOperationName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.GetBucketOperationRequest` |   |