1.0.0 (latest) 1.0.0-beta06

    public sealed class ObjectCustomContextPayload : IMessage<ObjectCustomContextPayload>, IEquatable<ObjectCustomContextPayload>, IDeepCloneable<ObjectCustomContextPayload>, IBufferMessage, IMessage

Reference documentation and code samples for the Storage Batch Operations v1 API class ObjectCustomContextPayload.

Describes the payload of a user defined object custom context.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ObjectCustomContextPayload

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ObjectCustomContextPayload](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageBatchOperations.V1/latest/Google.Cloud.StorageBatchOperations.V1.ObjectCustomContextPayload), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ObjectCustomContextPayload](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageBatchOperations.V1/latest/Google.Cloud.StorageBatchOperations.V1.ObjectCustomContextPayload), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ObjectCustomContextPayload](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageBatchOperations.V1/latest/Google.Cloud.StorageBatchOperations.V1.ObjectCustomContextPayload), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.StorageBatchOperations.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageBatchOperations.V1/latest/Google.Cloud.StorageBatchOperations.V1)

## Assembly

Google.Cloud.StorageBatchOperations.V1.dll

## Constructors

### ObjectCustomContextPayload()

    public ObjectCustomContextPayload()

### ObjectCustomContextPayload(ObjectCustomContextPayload)

    public ObjectCustomContextPayload(ObjectCustomContextPayload other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageBatchOperations.V1/latest/Google.Cloud.StorageBatchOperations.V1.ObjectCustomContextPayload` |

## Properties

### HasValue

    public bool HasValue { get; }

Gets whether the "value" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### Value

    public string Value { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |