-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathManagingSystem.php
More file actions
62 lines (54 loc) · 1.71 KB
/
ManagingSystem.php
File metadata and controls
62 lines (54 loc) · 1.71 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
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/datacatalog/v1/common.proto
namespace Google\Cloud\DataCatalog\V1;
use UnexpectedValueException;
/**
* This enum describes all the systems that manage
* Taxonomy and PolicyTag resources in DataCatalog.
*
* Protobuf type <code>google.cloud.datacatalog.v1.ManagingSystem</code>
*/
class ManagingSystem
{
/**
* Default value
*
* Generated from protobuf enum <code>MANAGING_SYSTEM_UNSPECIFIED = 0;</code>
*/
const MANAGING_SYSTEM_UNSPECIFIED = 0;
/**
* Dataplex.
*
* Generated from protobuf enum <code>MANAGING_SYSTEM_DATAPLEX = 1;</code>
*/
const MANAGING_SYSTEM_DATAPLEX = 1;
/**
* Other
*
* Generated from protobuf enum <code>MANAGING_SYSTEM_OTHER = 2;</code>
*/
const MANAGING_SYSTEM_OTHER = 2;
private static $valueToName = [
self::MANAGING_SYSTEM_UNSPECIFIED => 'MANAGING_SYSTEM_UNSPECIFIED',
self::MANAGING_SYSTEM_DATAPLEX => 'MANAGING_SYSTEM_DATAPLEX',
self::MANAGING_SYSTEM_OTHER => 'MANAGING_SYSTEM_OTHER',
];
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);
}
}