5.0.0 (latest) 4.16.0 4.15.0 4.14.0 4.13.0 4.11.0 4.10.0 4.9.0 4.8.0 4.7.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.7.0 3.6.0 3.5.0 3.4.0

    public enum UploadValidationMode

Reference documentation and code samples for the Google Cloud Storage v1 API enum UploadValidationMode.

Describes the validation behavior when uploading data.

## Namespace

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

## Assembly

Google.Cloud.Storage.V1.dll

| ## Fields ||
|---|---|
| **Name** | **Description** |
| `DeleteAndThrow` | Obsolete. Use [RejectAndThrow](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UploadValidationMode#Google_Cloud_Storage_V1_UploadValidationMode_RejectAndThrow) instead. Previously, the object was uploaded and then deleted if the hash mismatched. The server now rejects mismatched objects automatically before creation. |
| `None` | The upload is not validated. |
| `RejectAndThrow` | The server validates the object hash during upload. If a hash mismatch is detected, the server rejects the upload entirely, preventing the object from being created. |