1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_export.proto
- namespace Ydb\Export\ExportToS3Settings;
- use UnexpectedValueException;
- /**
- * Protobuf type <code>Ydb.Export.ExportToS3Settings.StorageClass</code>
- */
- class StorageClass
- {
- /**
- * Generated from protobuf enum <code>STORAGE_CLASS_UNSPECIFIED = 0;</code>
- */
- const STORAGE_CLASS_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum <code>STANDARD = 1;</code>
- */
- const STANDARD = 1;
- /**
- * Generated from protobuf enum <code>REDUCED_REDUNDANCY = 2;</code>
- */
- const REDUCED_REDUNDANCY = 2;
- /**
- * Generated from protobuf enum <code>STANDARD_IA = 3;</code>
- */
- const STANDARD_IA = 3;
- /**
- * Generated from protobuf enum <code>ONEZONE_IA = 4;</code>
- */
- const ONEZONE_IA = 4;
- /**
- * Generated from protobuf enum <code>INTELLIGENT_TIERING = 5;</code>
- */
- const INTELLIGENT_TIERING = 5;
- /**
- * Generated from protobuf enum <code>GLACIER = 6;</code>
- */
- const GLACIER = 6;
- /**
- * Generated from protobuf enum <code>DEEP_ARCHIVE = 7;</code>
- */
- const DEEP_ARCHIVE = 7;
- /**
- * Generated from protobuf enum <code>OUTPOSTS = 8;</code>
- */
- 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);
|