Reference documentation and code samples for the Google Cloud Storage Transfer V1 Client class StorageClass.
Options for handling Google Cloud Storage object storage class.
Protobuf type google.storagetransfer.v1.MetadataOptions.StorageClass
Namespace
Google \ Cloud \ StorageTransfer \ V1 \ MetadataOptions
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
STORAGE_CLASS_UNSPECIFIED
Value: 0
Storage class behavior is unspecified.
Generated from protobuf enum STORAGE_CLASS_UNSPECIFIED = 0;
STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT
Value: 1
Use the destination bucket's default storage class.
Generated from protobuf enum STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT = 1;
STORAGE_CLASS_PRESERVE
Value: 2
Preserve the object's original storage class. This is only supported for
transfers from Google Cloud Storage buckets. REGIONAL and MULTI_REGIONAL
storage classes will be mapped to STANDARD to ensure they can be written
to the destination bucket.
Generated from protobuf enum STORAGE_CLASS_PRESERVE = 2;
STORAGE_CLASS_STANDARD
Value: 3
Set the storage class to STANDARD.
Generated from protobuf enum STORAGE_CLASS_STANDARD = 3;
STORAGE_CLASS_NEARLINE
Value: 4
Set the storage class to NEARLINE.
Generated from protobuf enum STORAGE_CLASS_NEARLINE = 4;
STORAGE_CLASS_COLDLINE
Value: 5
Set the storage class to COLDLINE.
Generated from protobuf enum STORAGE_CLASS_COLDLINE = 5;
STORAGE_CLASS_ARCHIVE
Value: 6
Set the storage class to ARCHIVE.
Generated from protobuf enum STORAGE_CLASS_ARCHIVE = 6;
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Storage Transfer V1 Client - Class StorageClass (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-storage-transfer/latest/V1.MetadataOptions.StorageClass)\n- [2.2.0](/php/docs/reference/cloud-storage-transfer/2.2.0/V1.MetadataOptions.StorageClass)\n- [2.1.1](/php/docs/reference/cloud-storage-transfer/2.1.1/V1.MetadataOptions.StorageClass)\n- [2.0.2](/php/docs/reference/cloud-storage-transfer/2.0.2/V1.MetadataOptions.StorageClass)\n- [1.5.0](/php/docs/reference/cloud-storage-transfer/1.5.0/V1.MetadataOptions.StorageClass)\n- [1.4.5](/php/docs/reference/cloud-storage-transfer/1.4.5/V1.MetadataOptions.StorageClass)\n- [1.3.1](/php/docs/reference/cloud-storage-transfer/1.3.1/V1.MetadataOptions.StorageClass)\n- [1.2.0](/php/docs/reference/cloud-storage-transfer/1.2.0/V1.MetadataOptions.StorageClass)\n- [1.1.1](/php/docs/reference/cloud-storage-transfer/1.1.1/V1.MetadataOptions.StorageClass)\n- [1.0.6](/php/docs/reference/cloud-storage-transfer/1.0.6/V1.MetadataOptions.StorageClass) \nReference documentation and code samples for the Google Cloud Storage Transfer V1 Client class StorageClass.\n\nOptions for handling Google Cloud Storage object storage class.\n\nProtobuf type `google.storagetransfer.v1.MetadataOptions.StorageClass`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ StorageTransfer \\\\ V1 \\\\ MetadataOptions\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### STORAGE_CLASS_UNSPECIFIED\n\n Value: 0\n\nStorage class behavior is unspecified.\n\nGenerated from protobuf enum `STORAGE_CLASS_UNSPECIFIED = 0;`\n\n### STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT\n\n Value: 1\n\nUse the destination bucket's default storage class.\n\nGenerated from protobuf enum `STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT = 1;`\n\n### STORAGE_CLASS_PRESERVE\n\n Value: 2\n\nPreserve the object's original storage class. This is only supported for\ntransfers from Google Cloud Storage buckets. REGIONAL and MULTI_REGIONAL\nstorage classes will be mapped to STANDARD to ensure they can be written\nto the destination bucket.\n\nGenerated from protobuf enum `STORAGE_CLASS_PRESERVE = 2;`\n\n### STORAGE_CLASS_STANDARD\n\n Value: 3\n\nSet the storage class to STANDARD.\n\nGenerated from protobuf enum `STORAGE_CLASS_STANDARD = 3;`\n\n### STORAGE_CLASS_NEARLINE\n\n Value: 4\n\nSet the storage class to NEARLINE.\n\nGenerated from protobuf enum `STORAGE_CLASS_NEARLINE = 4;`\n\n### STORAGE_CLASS_COLDLINE\n\n Value: 5\n\nSet the storage class to COLDLINE.\n\nGenerated from protobuf enum `STORAGE_CLASS_COLDLINE = 5;`\n\n### STORAGE_CLASS_ARCHIVE\n\n Value: 6\n\nSet the storage class to ARCHIVE.\n\nGenerated from protobuf enum `STORAGE_CLASS_ARCHIVE = 6;`"]]