public sealed class DownloadObjectOptions
Options for DownloadObject
operations.
Namespace
Google.Cloud.Storage.V1Assembly
Google.Cloud.Storage.V1.dll
Properties
ChunkSize
public int? ChunkSize { get; set; }
The chunk size to use for each request.
Type | Description |
Nullable<Int32> |
DownloadValidationMode
public DownloadValidationMode? DownloadValidationMode { get; set; }
Specifies whether or not the object's hash should be validated. If this property is null, the hash will always be validated.
Type | Description |
Nullable<DownloadValidationMode> |
This is effectively an escape hatch for situations where hash validation fails. See https://github.com/googleapis/google-cloud-dotnet/issues/1641 for background on this option. It is recommended that you leave this option unset unless you are knowingly downloading data for an object where hashing will fail.
EncryptionKey
public EncryptionKey EncryptionKey { get; set; }
The encryption key to use for this operation. If this property is null, the EncryptionKey will be used instead. Use None to remove encryption headers from this request.
Type | Description |
EncryptionKey |
Generation
public long? Generation { get; set; }
The generation to download. When not specified, the latest version is always downloaded.
Type | Description |
Nullable<Int64> |
IfGenerationMatch
public long? IfGenerationMatch { get; set; }
Precondition for download: the object is only downloaded if its generation matches the given value.
Type | Description |
Nullable<Int64> |
IfGenerationNotMatch
public long? IfGenerationNotMatch { get; set; }
Precondition for download: the object is only downloaded if its generation does not match the given value.
Type | Description |
Nullable<Int64> |
IfMetagenerationMatch
public long? IfMetagenerationMatch { get; set; }
Precondition for download: the object is only downloaded if its meta-generation matches the given value.
Type | Description |
Nullable<Int64> |
IfMetagenerationNotMatch
public long? IfMetagenerationNotMatch { get; set; }
Precondition for download: the object is only downloaded if its meta-generation does not match the given value.
Type | Description |
Nullable<Int64> |
Range
public RangeHeaderValue Range { get; set; }
If non-null, limits the range of bytes of the object to download.
Type | Description |
RangeHeaderValue |
UserProject
public string UserProject { get; set; }
If set, this is the ID of the project which will be billed for the request. The caller must have suitable permissions for the project being billed.
Type | Description |
String |