<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/channel/v1/common.proto

namespace Google\Cloud\Channel\V1\EduData;

use UnexpectedValueException;

/**
 * Number of students and staff the institute has.
 *
 * Protobuf type <code>google.cloud.channel.v1.EduData.InstituteSize</code>
 */
class InstituteSize
{
    /**
     * Not used.
     *
     * Generated from protobuf enum <code>INSTITUTE_SIZE_UNSPECIFIED = 0;</code>
     */
    const INSTITUTE_SIZE_UNSPECIFIED = 0;
    /**
     * 1 - 100
     *
     * Generated from protobuf enum <code>SIZE_1_100 = 1;</code>
     */
    const SIZE_1_100 = 1;
    /**
     * 101 - 500
     *
     * Generated from protobuf enum <code>SIZE_101_500 = 2;</code>
     */
    const SIZE_101_500 = 2;
    /**
     * 501 - 1,000
     *
     * Generated from protobuf enum <code>SIZE_501_1000 = 3;</code>
     */
    const SIZE_501_1000 = 3;
    /**
     * 1,001 - 2,000
     *
     * Generated from protobuf enum <code>SIZE_1001_2000 = 4;</code>
     */
    const SIZE_1001_2000 = 4;
    /**
     * 2,001 - 5,000
     *
     * Generated from protobuf enum <code>SIZE_2001_5000 = 5;</code>
     */
    const SIZE_2001_5000 = 5;
    /**
     * 5,001 - 10,000
     *
     * Generated from protobuf enum <code>SIZE_5001_10000 = 6;</code>
     */
    const SIZE_5001_10000 = 6;
    /**
     * 10,001 +
     *
     * Generated from protobuf enum <code>SIZE_10001_OR_MORE = 7;</code>
     */
    const SIZE_10001_OR_MORE = 7;

    private static $valueToName = [
        self::INSTITUTE_SIZE_UNSPECIFIED => 'INSTITUTE_SIZE_UNSPECIFIED',
        self::SIZE_1_100 => 'SIZE_1_100',
        self::SIZE_101_500 => 'SIZE_101_500',
        self::SIZE_501_1000 => 'SIZE_501_1000',
        self::SIZE_1001_2000 => 'SIZE_1001_2000',
        self::SIZE_2001_5000 => 'SIZE_2001_5000',
        self::SIZE_5001_10000 => 'SIZE_5001_10000',
        self::SIZE_10001_OR_MORE => 'SIZE_10001_OR_MORE',
    ];

    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);
    }
}


