Ydb.Export.ExportToS3Settings.StorageClass */ class StorageClass { /** * Generated from protobuf enum STORAGE_CLASS_UNSPECIFIED = 0; */ const STORAGE_CLASS_UNSPECIFIED = 0; /** * Generated from protobuf enum STANDARD = 1; */ const STANDARD = 1; /** * Generated from protobuf enum REDUCED_REDUNDANCY = 2; */ const REDUCED_REDUNDANCY = 2; /** * Generated from protobuf enum STANDARD_IA = 3; */ const STANDARD_IA = 3; /** * Generated from protobuf enum ONEZONE_IA = 4; */ const ONEZONE_IA = 4; /** * Generated from protobuf enum INTELLIGENT_TIERING = 5; */ const INTELLIGENT_TIERING = 5; /** * Generated from protobuf enum GLACIER = 6; */ const GLACIER = 6; /** * Generated from protobuf enum DEEP_ARCHIVE = 7; */ const DEEP_ARCHIVE = 7; /** * Generated from protobuf enum OUTPOSTS = 8; */ const OUTPOSTS = 8; private static $valueToName = [ self::STORAGE_CLASS_UNSPECIFIED => 'STORAGE_CLASS_UNSPECIFIED', self::STANDARD => 'STANDARD', self::REDUCED_REDUNDANCY => 'REDUCED_REDUNDANCY', self::STANDARD_IA => 'STANDARD_IA', self::ONEZONE_IA => 'ONEZONE_IA', self::INTELLIGENT_TIERING => 'INTELLIGENT_TIERING', self::GLACIER => 'GLACIER', self::DEEP_ARCHIVE => 'DEEP_ARCHIVE', self::OUTPOSTS => 'OUTPOSTS', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(StorageClass::class, \Ydb\Export\ExportToS3Settings_StorageClass::class);