| Current Path : /var/www/homesaver/www/bitrix/modules/pull/vendor/Google/Protobuf/FieldOptions/ |
| Current File : /var/www/homesaver/www/bitrix/modules/pull/vendor/Google/Protobuf/FieldOptions/JSType.php |
<?php
/**
* Generated by Protobuf protoc plugin.
*
* File descriptor : descriptor.proto
*/
namespace google\protobuf\FieldOptions;
/**
* Protobuf enum : google.protobuf.FieldOptions.JSType
*/
class JSType extends \Protobuf\Enum
{
/**
* JS_NORMAL = 0
*/
const JS_NORMAL_VALUE = 0;
/**
* JS_STRING = 1
*/
const JS_STRING_VALUE = 1;
/**
* JS_NUMBER = 2
*/
const JS_NUMBER_VALUE = 2;
/**
* @var \google\protobuf\FieldOptions\JSType
*/
protected static $JS_NORMAL = null;
/**
* @var \google\protobuf\FieldOptions\JSType
*/
protected static $JS_STRING = null;
/**
* @var \google\protobuf\FieldOptions\JSType
*/
protected static $JS_NUMBER = null;
/**
* @return \google\protobuf\FieldOptions\JSType
*/
public static function JS_NORMAL()
{
if (self::$JS_NORMAL !== null) {
return self::$JS_NORMAL;
}
return self::$JS_NORMAL = new self('JS_NORMAL', self::JS_NORMAL_VALUE);
}
/**
* @return \google\protobuf\FieldOptions\JSType
*/
public static function JS_STRING()
{
if (self::$JS_STRING !== null) {
return self::$JS_STRING;
}
return self::$JS_STRING = new self('JS_STRING', self::JS_STRING_VALUE);
}
/**
* @return \google\protobuf\FieldOptions\JSType
*/
public static function JS_NUMBER()
{
if (self::$JS_NUMBER !== null) {
return self::$JS_NUMBER;
}
return self::$JS_NUMBER = new self('JS_NUMBER', self::JS_NUMBER_VALUE);
}
/**
* @param int $value
* @return \google\protobuf\FieldOptions\JSType
*/
public static function valueOf($value)
{
switch ($value) {
case 0: return self::JS_NORMAL();
case 1: return self::JS_STRING();
case 2: return self::JS_NUMBER();
default: return null;
}
}
}