Ydb.Table.ChangefeedMode.Mode
*/
class Mode
{
/**
* Generated from protobuf enum MODE_UNSPECIFIED = 0;
*/
const MODE_UNSPECIFIED = 0;
/**
* Only the key component of the modified row
*
* Generated from protobuf enum MODE_KEYS_ONLY = 1;
*/
const MODE_KEYS_ONLY = 1;
/**
* Updated columns
*
* Generated from protobuf enum MODE_UPDATES = 2;
*/
const MODE_UPDATES = 2;
/**
* The entire row, as it appears after it was modified
*
* Generated from protobuf enum MODE_NEW_IMAGE = 3;
*/
const MODE_NEW_IMAGE = 3;
/**
* The entire row, as it appeared before it was modified
*
* Generated from protobuf enum MODE_OLD_IMAGE = 4;
*/
const MODE_OLD_IMAGE = 4;
/**
* Both new and old images of the row
*
* Generated from protobuf enum MODE_NEW_AND_OLD_IMAGES = 5;
*/
const MODE_NEW_AND_OLD_IMAGES = 5;
private static $valueToName = [
self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED',
self::MODE_KEYS_ONLY => 'MODE_KEYS_ONLY',
self::MODE_UPDATES => 'MODE_UPDATES',
self::MODE_NEW_IMAGE => 'MODE_NEW_IMAGE',
self::MODE_OLD_IMAGE => 'MODE_OLD_IMAGE',
self::MODE_NEW_AND_OLD_IMAGES => 'MODE_NEW_AND_OLD_IMAGES',
];
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(Mode::class, \Ydb\Table\ChangefeedMode_Mode::class);