openstatus.monitor.v1.StringComparator */ class StringComparator { /** * Generated from protobuf enum STRING_COMPARATOR_UNSPECIFIED = 0; */ const STRING_COMPARATOR_UNSPECIFIED = 0; /** * Generated from protobuf enum STRING_COMPARATOR_CONTAINS = 1; */ const STRING_COMPARATOR_CONTAINS = 1; /** * Generated from protobuf enum STRING_COMPARATOR_NOT_CONTAINS = 2; */ const STRING_COMPARATOR_NOT_CONTAINS = 2; /** * Generated from protobuf enum STRING_COMPARATOR_EQUAL = 3; */ const STRING_COMPARATOR_EQUAL = 3; /** * Generated from protobuf enum STRING_COMPARATOR_NOT_EQUAL = 4; */ const STRING_COMPARATOR_NOT_EQUAL = 4; /** * Generated from protobuf enum STRING_COMPARATOR_EMPTY = 5; */ const STRING_COMPARATOR_EMPTY = 5; /** * Generated from protobuf enum STRING_COMPARATOR_NOT_EMPTY = 6; */ const STRING_COMPARATOR_NOT_EMPTY = 6; /** * Generated from protobuf enum STRING_COMPARATOR_GREATER_THAN = 7; */ const STRING_COMPARATOR_GREATER_THAN = 7; /** * Generated from protobuf enum STRING_COMPARATOR_GREATER_THAN_OR_EQUAL = 8; */ const STRING_COMPARATOR_GREATER_THAN_OR_EQUAL = 8; /** * Generated from protobuf enum STRING_COMPARATOR_LESS_THAN = 9; */ const STRING_COMPARATOR_LESS_THAN = 9; /** * Generated from protobuf enum STRING_COMPARATOR_LESS_THAN_OR_EQUAL = 10; */ const STRING_COMPARATOR_LESS_THAN_OR_EQUAL = 10; private static $valueToName = [ self::STRING_COMPARATOR_UNSPECIFIED => 'STRING_COMPARATOR_UNSPECIFIED', self::STRING_COMPARATOR_CONTAINS => 'STRING_COMPARATOR_CONTAINS', self::STRING_COMPARATOR_NOT_CONTAINS => 'STRING_COMPARATOR_NOT_CONTAINS', self::STRING_COMPARATOR_EQUAL => 'STRING_COMPARATOR_EQUAL', self::STRING_COMPARATOR_NOT_EQUAL => 'STRING_COMPARATOR_NOT_EQUAL', self::STRING_COMPARATOR_EMPTY => 'STRING_COMPARATOR_EMPTY', self::STRING_COMPARATOR_NOT_EMPTY => 'STRING_COMPARATOR_NOT_EMPTY', self::STRING_COMPARATOR_GREATER_THAN => 'STRING_COMPARATOR_GREATER_THAN', self::STRING_COMPARATOR_GREATER_THAN_OR_EQUAL => 'STRING_COMPARATOR_GREATER_THAN_OR_EQUAL', self::STRING_COMPARATOR_LESS_THAN => 'STRING_COMPARATOR_LESS_THAN', self::STRING_COMPARATOR_LESS_THAN_OR_EQUAL => 'STRING_COMPARATOR_LESS_THAN_OR_EQUAL', ]; 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); } }