public sealed class PutMetadata : IMessage<PutMetadata>, IEquatable<PutMetadata>, IDeepCloneable<PutMetadata>, IBufferMessage, IMessage
Reference documentation and code samples for the Storage Batch Operations v1 API class PutMetadata.
Describes options for object metadata update.
Implements
IMessagePutMetadata, IEquatablePutMetadata, IDeepCloneablePutMetadata, IBufferMessage, IMessageNamespace
Google.Cloud.StorageBatchOperations.V1Assembly
Google.Cloud.StorageBatchOperations.V1.dll
Constructors
PutMetadata()
public PutMetadata()
PutMetadata(PutMetadata)
public PutMetadata(PutMetadata other)
Parameter | |
---|---|
Name | Description |
other |
PutMetadata |
Properties
CacheControl
public string CacheControl { get; set; }
Optional. Updates objects Cache-Control fixed metadata. Unset values will be ignored. Set empty values to clear the metadata. Additionally, the value for Custom-Time cannot decrease. Refer to documentation in https://cloud.google.com/storage/docs/metadata#caching_data.
Property Value | |
---|---|
Type | Description |
string |
ContentDisposition
public string ContentDisposition { get; set; }
Optional. Updates objects Content-Disposition fixed metadata. Unset values will be ignored. Set empty values to clear the metadata. Refer https://cloud.google.com/storage/docs/metadata#content-disposition for additional documentation.
Property Value | |
---|---|
Type | Description |
string |
ContentEncoding
public string ContentEncoding { get; set; }
Optional. Updates objects Content-Encoding fixed metadata. Unset values will be ignored. Set empty values to clear the metadata. Refer to documentation in https://cloud.google.com/storage/docs/metadata#content-encoding.
Property Value | |
---|---|
Type | Description |
string |
ContentLanguage
public string ContentLanguage { get; set; }
Optional. Updates objects Content-Language fixed metadata. Refer to ISO 639-1 language codes for typical values of this metadata. Max length 100 characters. Unset values will be ignored. Set empty values to clear the metadata. Refer to documentation in https://cloud.google.com/storage/docs/metadata#content-language.
Property Value | |
---|---|
Type | Description |
string |
ContentType
public string ContentType { get; set; }
Optional. Updates objects Content-Type fixed metadata. Unset values will be ignored. Set empty values to clear the metadata. Refer to documentation in https://cloud.google.com/storage/docs/metadata#content-type
Property Value | |
---|---|
Type | Description |
string |
CustomMetadata
public MapField<string, string> CustomMetadata { get; }
Optional. Updates objects custom metadata. Adds or sets individual custom metadata key value pairs on objects. Keys that are set with empty custom metadata values will have its value cleared. Existing custom metadata not specified with this flag is not changed. Refer to documentation in https://cloud.google.com/storage/docs/metadata#custom-metadata
Property Value | |
---|---|
Type | Description |
MapFieldstringstring |
CustomTime
public string CustomTime { get; set; }
Optional. Updates objects Custom-Time fixed metadata. Unset values will be ignored. Set empty values to clear the metadata. Refer to documentation in https://cloud.google.com/storage/docs/metadata#custom-time.
Property Value | |
---|---|
Type | Description |
string |
HasCacheControl
public bool HasCacheControl { get; }
Gets whether the "cache_control" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasContentDisposition
public bool HasContentDisposition { get; }
Gets whether the "content_disposition" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasContentEncoding
public bool HasContentEncoding { get; }
Gets whether the "content_encoding" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasContentLanguage
public bool HasContentLanguage { get; }
Gets whether the "content_language" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasContentType
public bool HasContentType { get; }
Gets whether the "content_type" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasCustomTime
public bool HasCustomTime { get; }
Gets whether the "custom_time" field is set
Property Value | |
---|---|
Type | Description |
bool |