|
| ObjectMetadata ()=default |
|
std::vector< ObjectAccessControl > const & | acl () const |
| The access control list for this object. More...
|
|
std::vector< ObjectAccessControl > & | mutable_acl () |
| The access control list for this object. More...
|
|
ObjectMetadata & | set_acl (std::vector< ObjectAccessControl > acl) |
| Change the access control list. More...
|
|
std::string const & | bucket () const |
| The name of the bucket containing this object. More...
|
|
ObjectMetadata & | set_bucket (std::string v) |
|
std::string const & | cache_control () const |
| The cacheControl attribute. More...
|
|
ObjectMetadata & | set_cache_control (std::string cache_control) |
| Set the cacheControl attribute. More...
|
|
std::int32_t | component_count () const |
| The number of components, for objects built using ComposeObject() . More...
|
|
ObjectMetadata & | set_component_count (std::int32_t v) |
|
std::string | content_disposition () const |
| The contentDisposition attribute. More...
|
|
ObjectMetadata & | set_content_disposition (std::string value) |
| Change the contentDisposition attribute. More...
|
|
std::string | content_encoding () const |
| The contentEncoding attribute. More...
|
|
ObjectMetadata & | set_content_encoding (std::string value) |
| Change the contentEncoding attribute. More...
|
|
std::string | content_language () const |
| The contentLanguage attribute. More...
|
|
ObjectMetadata & | set_content_language (std::string value) |
| Change the contentLanguage attribute. More...
|
|
std::string | content_type () const |
| The contentType attribute. More...
|
|
ObjectMetadata & | set_content_type (std::string value) |
| Change the contentLanguage attribute. More...
|
|
std::string const & | crc32c () const |
| The CRC32C checksum for the object contents. More...
|
|
ObjectMetadata & | set_crc32c (std::string v) |
|
bool | has_custom_time () const |
| Returns true if the object has a customTime attribute. More...
|
|
std::chrono::system_clock::time_point | custom_time () const |
| Returns the object's customTime or the system clock's epoch. More...
|
|
ObjectMetadata & | set_custom_time (std::chrono::system_clock::time_point v) |
| Changes the customTime attribute. More...
|
|
ObjectMetadata & | reset_custom_time () |
| Reset (clears) the customTime attribute. More...
|
|
bool | has_customer_encryption () const |
| Returns true if the object uses CSEK (Customer-Supplied Encryption Keys). More...
|
|
CustomerEncryption const & | customer_encryption () const |
| Returns the CSEK metadata (algorithm and key SHA256). More...
|
|
ObjectMetadata & | set_customer_encryption (CustomerEncryption v) |
|
ObjectMetadata & | reset_customer_encryption () |
|
std::string const & | etag () const |
| The Etag attribute. More...
|
|
ObjectMetadata & | set_etag (std::string v) |
|
bool | event_based_hold () const |
| The eventBasedHold attribute. More...
|
|
ObjectMetadata & | set_event_based_hold (bool v) |
| Changes the eventBasedHold attribute. More...
|
|
std::int64_t | generation () const |
| The object generation. More...
|
|
ObjectMetadata & | set_generation (std::int64_t v) |
|
std::string const & | id () const |
| The id attribute (the object name) More...
|
|
ObjectMetadata & | set_id (std::string v) |
|
std::string const & | kind () const |
| The kind attribute, that is, storage#object . More...
|
|
ObjectMetadata & | set_kind (std::string v) |
|
std::string const & | kms_key_name () const |
| The name of the KMS (Key Management Service) key used in this object. More...
|
|
ObjectMetadata & | set_kms_key_name (std::string v) |
|
std::string const & | md5_hash () const |
| The MD5 hash of the object contents. Can be empty. More...
|
|
ObjectMetadata & | set_md5_hash (std::string v) |
|
std::string const & | media_link () const |
| The HTTPS link to access the object contents. More...
|
|
ObjectMetadata & | set_media_link (std::string v) |
|
std::int64_t | metageneration () const |
| The generation of the object metadata. More...
|
|
ObjectMetadata & | set_metageneration (std::int64_t v) |
|
std::string const & | name () const |
| The object name, including bucket and generation. More...
|
|
ObjectMetadata & | set_name (std::string v) |
|
bool | has_owner () const |
| Returns true if the object has an owner attribute. More...
|
|
Owner const & | owner () const |
| The object's owner attribute. More...
|
|
ObjectMetadata & | set_owner (Owner v) |
|
ObjectMetadata & | reset_owner () |
|
std::chrono::system_clock::time_point | retention_expiration_time () const |
| The retention expiration time, or the system clock's epoch, if not set. More...
|
|
ObjectMetadata & | set_retention_expiration_time (std::chrono::system_clock::time_point v) |
|
std::string const & | self_link () const |
| An HTTPS link to the object metadata. More...
|
|
ObjectMetadata & | set_self_link (std::string v) |
|
std::uint64_t | size () const |
| The size of the object's data. More...
|
|
ObjectMetadata & | set_size (std::uint64_t v) |
|
std::string const & | storage_class () const |
| The storageClass attribute. More...
|
|
ObjectMetadata & | set_storage_class (std::string v) |
| Changes the storageClass attribute. More...
|
|
bool | temporary_hold () const |
| The temporaryHold attribute. More...
|
|
ObjectMetadata & | set_temporary_hold (bool v) |
| Changes the temporaryHold attribute. More...
|
|
std::chrono::system_clock::time_point | time_created () const |
| The object creation timestamp. More...
|
|
ObjectMetadata & | set_time_created (std::chrono::system_clock::time_point v) |
|
std::chrono::system_clock::time_point | time_deleted () const |
| The object's deletion timestamp. More...
|
|
ObjectMetadata & | set_time_deleted (std::chrono::system_clock::time_point v) |
|
std::chrono::system_clock::time_point | time_storage_class_updated () const |
| The timestamp for the last storage class change. More...
|
|
ObjectMetadata & | set_time_storage_class_updated (std::chrono::system_clock::time_point v) |
|
std::chrono::system_clock::time_point | updated () const |
| The timestamp for the last object metadata update. More...
|
|
ObjectMetadata & | set_updated (std::chrono::system_clock::time_point v) |
|
|
The object metadata contains a user-defined set of key , value pairs, which are also called "metadata".
Applications can use these fields to add custom annotations to each object.
|
bool | has_metadata (std::string const &key) const |
|
std::string const & | metadata (std::string const &key) const |
| Returns the value of key in the Object's metadata entries. More...
|
|
ObjectMetadata & | delete_metadata (std::string const &key) |
| Delete a metadata entry. This is a no-op if the key does not exist. More...
|
|
ObjectMetadata & | upsert_metadata (std::string key, std::string value) |
| Insert or update the metadata entry. More...
|
|
std::map< std::string, std::string > const & | metadata () const |
| Returns all the Object's metadata entries. More...
|
|
std::map< std::string, std::string > & | mutable_metadata () |
| Returns all the Object's metadata entries. More...
|
|
Represents the metadata for a Google Cloud Storage Object.
Note that all modifiers just change the local representation of the Object's metadata. Applications should use Client::PatchObject()
, or a similar operation, to actually modify the metadata stored by GCS.
- See also
- https://cloud.google.com/storage/docs/json_api/v1/objects for a more detailed description of each attribute and their effects.