# Google Cloud Storage Batch Operations V1 Client - Class ObjectCustomContextPayload (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 ObjectCustomContextPayload.

Describes the payload of a user defined object custom context.

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

## Namespace

Google \\ Cloud \\ StorageBatchOperations \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ value` | `string` The value of the object custom context. If set, `value` must NOT be an empty string since it is a required field in custom context. If unset, `value` will be ignored and no changes will be made to the `value` field of the custom context payload. |

### getValue

The value of the object custom context.

If set, `value` must NOT be an empty string since it is a required field in
custom context. If unset, `value` will be ignored and no changes will be
made to the `value` field of the custom context payload.

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

### hasValue

### clearValue

### setValue

The value of the object custom context.

If set, `value` must NOT be an empty string since it is a required field in
custom context. If unset, `value` will be ignored and no changes will be
made to the `value` field of the custom context payload.

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

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