# Class ResumableUploadOptions (1.73.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.73.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Upload.ResumableUploadOptions)
- [1.69.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.69.0/Google.Apis.Upload.ResumableUploadOptions)
- [1.68.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.68.0/Google.Apis.Upload.ResumableUploadOptions)
- [1.60.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.60.0/Google.Apis.Upload.ResumableUploadOptions)
- [1.59.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.59.0/Google.Apis.Upload.ResumableUploadOptions)
- [1.55.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.55.0/Google.Apis.Upload.ResumableUploadOptions)
- [1.50.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.50.0/Google.Apis.Upload.ResumableUploadOptions)

    public sealed class ResumableUploadOptions

Options for [ResumableUpload](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Upload.ResumableUpload) operations.

## Inheritance

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

## Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Apis.Upload](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Upload)

## Assembly

Google.Apis.dll

## Properties

### HttpClient

    public HttpClient HttpClient { get; set; }

Gets or sets the HTTP client to use when starting the upload sessions and uploading data.

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

### ModifySessionInitiationRequest

    public Action<HttpRequestMessage> ModifySessionInitiationRequest { get; set; }

Gets or sets the callback for modifying the session initiation request.
See <https://cloud.google.com/storage/docs/json_api/v1/how-tos/resumable-upload#start-resumable> for more information.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.action-1https://learn.microsoft.com/dotnet/api/system.net.http.httprequestmessage` |   |

**Remarks** Note: If these options are used with a [ResumableUpload](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Upload.ResumableUpload) created using [CreateFromUploadUri(Uri, Stream, ResumableUploadOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Upload.ResumableUpload#Google_Apis_Upload_ResumableUpload_CreateFromUploadUri_System_Uri_System_IO_Stream_Google_Apis_Upload_ResumableUploadOptions_),
this property will be ignored as the session has already been initiated.

### Serializer

    public ISerializer Serializer { get; set; }

Gets or sets the serializer to use when parsing error responses.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.ISerializer` |   |

### ServiceName

    public string ServiceName { get; set; }

Gets or sets the name of the service performing the upload.

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

**Remarks** This will be used to set the [ServiceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.GoogleApiException#Google_GoogleApiException_ServiceName) in the event of an error.

## Extension Method

[Utilities.ThrowIfNull\<T\>(T, string)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Util.Utilities#Google_Apis_Util_Utilities_ThrowIfNull__1___0_System_String_)