-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathInstituteSize.php
More file actions
96 lines (88 loc) · 2.52 KB
/
InstituteSize.php
File metadata and controls
96 lines (88 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?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);
}
}