-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathInstituteType.php
More file actions
61 lines (53 loc) · 1.58 KB
/
InstituteType.php
File metadata and controls
61 lines (53 loc) · 1.58 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
<?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;
/**
* Enum to specify the institute type.
*
* Protobuf type <code>google.cloud.channel.v1.EduData.InstituteType</code>
*/
class InstituteType
{
/**
* Not used.
*
* Generated from protobuf enum <code>INSTITUTE_TYPE_UNSPECIFIED = 0;</code>
*/
const INSTITUTE_TYPE_UNSPECIFIED = 0;
/**
* Elementary/Secondary Schools & Districts
*
* Generated from protobuf enum <code>K12 = 1;</code>
*/
const K12 = 1;
/**
* Higher Education Universities & Colleges
*
* Generated from protobuf enum <code>UNIVERSITY = 2;</code>
*/
const UNIVERSITY = 2;
private static $valueToName = [
self::INSTITUTE_TYPE_UNSPECIFIED => 'INSTITUTE_TYPE_UNSPECIFIED',
self::K12 => 'K12',
self::UNIVERSITY => 'UNIVERSITY',
];
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);
}
}