Ydb.Export.ExportProgress.Progress */ class Progress { /** * Generated from protobuf enum PROGRESS_UNSPECIFIED = 0; */ const PROGRESS_UNSPECIFIED = 0; /** * Generated from protobuf enum PROGRESS_PREPARING = 1; */ const PROGRESS_PREPARING = 1; /** * Generated from protobuf enum PROGRESS_TRANSFER_DATA = 2; */ const PROGRESS_TRANSFER_DATA = 2; /** * Generated from protobuf enum PROGRESS_DONE = 3; */ const PROGRESS_DONE = 3; /** * Generated from protobuf enum PROGRESS_CANCELLATION = 4; */ const PROGRESS_CANCELLATION = 4; /** * Generated from protobuf enum PROGRESS_CANCELLED = 5; */ const PROGRESS_CANCELLED = 5; private static $valueToName = [ self::PROGRESS_UNSPECIFIED => 'PROGRESS_UNSPECIFIED', self::PROGRESS_PREPARING => 'PROGRESS_PREPARING', self::PROGRESS_TRANSFER_DATA => 'PROGRESS_TRANSFER_DATA', self::PROGRESS_DONE => 'PROGRESS_DONE', self::PROGRESS_CANCELLATION => 'PROGRESS_CANCELLATION', self::PROGRESS_CANCELLED => 'PROGRESS_CANCELLED', ]; 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(Progress::class, \Ydb\Export\ExportProgress_Progress::class);