Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/sdk-php. php sdk for openstatus www.openstatus.dev
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/monitor/v1/assertions.proto
namespace Openstatus\Monitor\V1;
use UnexpectedValueException;
/** * StringComparator defines comparison operations for string values. * * Protobuf type <code>openstatus.monitor.v1.StringComparator</code> */class StringComparator{ /** * Generated from protobuf enum <code>STRING_COMPARATOR_UNSPECIFIED = 0;</code> */ const STRING_COMPARATOR_UNSPECIFIED = 0; /** * Generated from protobuf enum <code>STRING_COMPARATOR_CONTAINS = 1;</code> */ const STRING_COMPARATOR_CONTAINS = 1; /** * Generated from protobuf enum <code>STRING_COMPARATOR_NOT_CONTAINS = 2;</code> */ const STRING_COMPARATOR_NOT_CONTAINS = 2; /** * Generated from protobuf enum <code>STRING_COMPARATOR_EQUAL = 3;</code> */ const STRING_COMPARATOR_EQUAL = 3; /** * Generated from protobuf enum <code>STRING_COMPARATOR_NOT_EQUAL = 4;</code> */ const STRING_COMPARATOR_NOT_EQUAL = 4; /** * Generated from protobuf enum <code>STRING_COMPARATOR_EMPTY = 5;</code> */ const STRING_COMPARATOR_EMPTY = 5; /** * Generated from protobuf enum <code>STRING_COMPARATOR_NOT_EMPTY = 6;</code> */ const STRING_COMPARATOR_NOT_EMPTY = 6; /** * Generated from protobuf enum <code>STRING_COMPARATOR_GREATER_THAN = 7;</code> */ const STRING_COMPARATOR_GREATER_THAN = 7; /** * Generated from protobuf enum <code>STRING_COMPARATOR_GREATER_THAN_OR_EQUAL = 8;</code> */ const STRING_COMPARATOR_GREATER_THAN_OR_EQUAL = 8; /** * Generated from protobuf enum <code>STRING_COMPARATOR_LESS_THAN = 9;</code> */ const STRING_COMPARATOR_LESS_THAN = 9; /** * Generated from protobuf enum <code>STRING_COMPARATOR_LESS_THAN_OR_EQUAL = 10;</code> */ 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); }}